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
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 1299, 1496 ] }
5,107
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 931, 1036 ] }
5,108
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
mint
function mint(address _to, uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); require((balanceOf(msg.sender) + _mintAmount) <= walletLimit, 'Wallet limit is...
// public
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 1052, 1964 ] }
5,109
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setCost
function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; }
// // ONLY THE OWNER CAN CALL THE FUNCTIONS BELOW. // // This sets the minting price of each NFT. // Example: If you pass in 0.1, then you will need to pay 0.1 ETH + gas to mint 1 NFT.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 2947, 3032 ] }
5,110
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setMaxMintAmount
function setMaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner() { maxMintAmount = _newmaxMintAmount; }
// This sets the amount users can mint at once. // Example: If you want your users to be able to mint 20 NFTs at once, // then you can set the setMaxMintAmount to 20. // // *THIS IS NOT A WALLET LIMIT. THERE IS ANOTHER FUNCTION FOR THAT BELOW*
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 3289, 3410 ] }
5,111
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setWalletLimit
function setWalletLimit(uint256 _newWalletLimit) public onlyOwner() { walletLimit = _newWalletLimit; }
// This sets the wallet limit. // Example: If you set the setWalletLimit function to 5, then users can have AT MOST 5 NFTs in their wallet. // You can change this to adjust the pre-mint wallet limit vs. the main minting phase's wallet limit.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 3663, 3776 ] }
5,112
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setMaxMintAmountAndWalletLimit
function setMaxMintAmountAndWalletLimit(uint256 _newmaxMintAmount, uint256 _newWalletLimit) public onlyOwner() { maxMintAmount = _newmaxMintAmount; walletLimit = _newWalletLimit; }
// If you want to save gas by setting the maxMintAmount and walletLimit // at the same time, you can use this function. // Simply pass in the new maxMintAmount first, and the newWalletLimit second. // Example: // If you want to set a pre-mint phase where users can only mint 3 NFTs at a time, // and have a wallet limit ...
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 4587, 4783 ] }
5,113
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setMaxSupply
function setMaxSupply(uint256 _newSupply) public onlyOwner() { maxSupply = _newSupply; }
// This sets the max supply. This will be set to 10,000 by default, although it is changable.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 4882, 4981 ] }
5,114
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setBaseURI
function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; }
// This changes the baseURI. // Example: If you pass in "https://google.com/", then every new NFT that is minted // will have a URI corresponding to the baseURI you passed in. // The first NFT you mint would have a URI of "https://google.com/1", // The second NFT you mint would have a URI of "https://google.com/2", etc...
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 5318, 5419 ] }
5,115
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
setBaseExtension
function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; }
// This sets the baseURI extension. // Example: If your database requires that the URI of each NFT // must have a .json at the end of the URI // (like https://google.com/1.json instead of just https://google.com/1) // then you can use this function to set the base extension. // For the above example, you would pass in...
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 5791, 5916 ] }
5,116
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
pause
function pause(bool _state) public onlyOwner { paused = _state; }
// This pauses or unpauses sales. // If paused, no NFTs can be minted, including by whitelisted users. // Must be set to false for NFTs to be minted.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 6075, 6151 ] }
5,117
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
activateWhitelist
function activateWhitelist(bool _state) public onlyOwner { whitelistOnly = _state; }
// This activates or deactivates the whitelist. // set to false = anyone can mint // set to true = only whitelisted users can mint
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 6292, 6387 ] }
5,118
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
whitelistUser
function whitelistUser(address[] memory _user) public onlyOwner { uint256 x = 0; for (x = 0; x < _user.length; x++) { whitelisted[_user[x]] = true; } }
// This whitelists users. // You MUST use an array for this function, and put quotes around the addresses you would like to whitelist. // Example: // If you want to whitelist 0x000000000000000000000000000000000000, // then pass in the argument: // ["0x000000000000000000000000000000000000"] // // If you want to whitelis...
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 6961, 7145 ] }
5,119
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
removeWhitelistUser
function removeWhitelistUser(address[] memory _user) public onlyOwner { uint256 x = 0; for (x = 0; x < _user.length; x++) { whitelisted[_user[x]] = false; } }
// This removes whitelisted users. // It's arguments are the same as for whitelisting users. // You MUST use an array, and put quotes around the addresses you would like to remove from the whitelist.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 7355, 7547 ] }
5,120
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
DiamondDolphins
contract DiamondDolphins is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.10 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 50; bool public paused = false; bool public whiteli...
withdraw
function withdraw() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); }
// This withdraws the contract's balance of ETH to the Owner's (whoever launched the contract) address.
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 7658, 7775 ] }
5,121
TokenSale
TokenSale.sol
0x87b5ef63fa5579b40875b66c68cd485656b86259
Solidity
TokenSale
contract TokenSale is Owned{ IERC20Token public tokenContract; // the token being sold uint256 public price = 500; // 1eth = 500 tokens uint256 public decimals = 18; uint256 public tokensSold; uint256 public ethRaised; uint256 public MaxETHAmount; event Sold(addr...
safeMultiply
function safeMultiply(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } else { uint256 c = a * b; assert(c / a == b); return c; } }
// Guards against integer overflows
LineComment
v0.7.5+commit.eb77ed08
None
ipfs://82400d7531f8359be84648fa0d00a5541cc8998f3d24bcb2f1c4a97e02aabbd8
{ "func_code_index": [ 667, 919 ] }
5,122
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
removeLimits
function removeLimits() external onlyOwner returns (bool){ limitsInEffect = false; gasLimitActive = false; transferDelayEnabled = false; return true; }
// remove limits after token is stable - 30-60 minutes
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 8098, 8289 ] }
5,123
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool){ transferDelayEnabled = false; return true; }
// disable Transfer delay
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 8325, 8460 ] }
5,124
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
enableTrading
function enableTrading() internal onlyOwner { tradingActive = true; swapAndLiquifyEnabled = true; tradingActiveBlock = block.number; earlyBuyPenaltyEnd = block.timestamp + 72 hours; }
// once enabled, can never be turned off
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 8663, 8886 ] }
5,125
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
launch
function launch(address[] memory airdropWallets, uint256[] memory amounts) external onlyOwner returns (bool){ require(!tradingActive, "Trading is already active, cannot relaunch."); require(airdropWallets.length < 200, "Can only airdrop 200 wallets per txn due to gas limits"); // allows for airdrop + launch at ...
// send tokens and ETH for liquidity to contract directly, then call this function. //(not required, can still use Uniswap to add liquidity manually, but this ensures everything is excluded properly and makes for a great stealth launch)
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 9137, 10541 ] }
5,126
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
forceSwapBack
function forceSwapBack() external onlyOwner { uint256 contractBalance = balanceOf(address(this)); require(contractBalance >= _tTotal / 100, "Can only swap back if more than 1% of tokens stuck on contract"); swapBack(); emit OwnerForcedSwapBack(block.timestamp); }
// force Swap back if slippage above 49% for launch.
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 19654, 19957 ] }
5,127
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
// To receive ETH from uniswapV2Router when swapping
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 30779, 30812 ] }
5,128
TetoInu
/home/dimitris/Documents/Code/ApeNFTs/TetoInu/contracts/TetoInu.sol
0x09dc17ad20e864f91951789c80785ae1ca024230
Solidity
TetoInu
contract TetoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public devAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; ...
withdrawStuckETH
function withdrawStuckETH() external onlyOwner { require(!tradingActive, "Can only withdraw if trading hasn't started"); bool success; (success,) = address(msg.sender).call{value: address(this).balance}(""); }
// withdraw ETH if stuck before launch
LineComment
v0.8.9+commit.e5eed63a
{ "func_code_index": [ 31322, 31563 ] }
5,129
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner...
transferOwnership
function transferOwnership(address newOwner) onlyOwner public{ if (newOwner != address(0)) { 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.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 591, 746 ] }
5,130
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
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, uin...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 282, 553 ] }
5,131
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
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, uin...
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.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 769, 889 ] }
5,132
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to trans...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { uint256 _allowance = allowed[_from][msg.sender]; balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = _allowance.sub(_value); emit Transf...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amout of tokens to be transfered */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 404, 801 ] }
5,133
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to trans...
approve
function approve(address _spender, uint256 _value) public returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.co...
/** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 1046, 1642 ] }
5,134
FF
FF.sol
0xf825dc4820607a751e7d5708c773773e0bf1b82d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to trans...
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://9be71e184d7e12d48bcd5bed68b12180a3c0ca32cd24573e1f4d656108d23762
{ "func_code_index": [ 1975, 2124 ] }
5,135
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 963, 1084 ] }
5,136
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 1304, 1433 ] }
5,137
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 1777, 2059 ] }
5,138
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 2567, 2780 ] }
5,139
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); r...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 3311, 3674 ] }
5,140
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 3957, 4113 ] }
5,141
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 4468, 4790 ] }
5,142
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ //don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 4981, 5040 ] }
5,143
PietaToken
PietaToken.sol
0xf5673c0ad28ca6a0064670ce1fe2a73ce847c74f
Solidity
PietaToken
contract PietaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.25+commit.59dbf8f1
bzzr://402a170cb6aea3ac07a72805fa7485161845ff675bc8258c6f2e67f5aaa436c1
{ "func_code_index": [ 5273, 5462 ] }
5,144
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
getPaid
function getPaid() public payable onlyOwner { require(payable(_msgSender()).send(address(this).balance)); }
// // managing // // withdraw balance
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 663, 774 ] }
5,145
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
getFucked
function getFucked(uint _timesFucked) public payable { require( // ensure minting is only possible once sale has started fuckStart == true, 'TOO EARLY: the fucking has not started.' ); require( // ensure mintting is less than the limit constrained by gas _timesFucked <= fuckLimit, 'TOO MUCH: you cannot ...
// // main //
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 1087, 1765 ] }
5,146
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
giveAFuck
function giveAFuck(address _to, uint _howManyFucks) external onlyOwner { mint(_to, _howManyFucks); }
// devMints - for CryptoJunks.wtf & Hexis.wtf
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 1814, 1918 ] }
5,147
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
mint
function mint(address _to, uint _fucks) internal { for (uint i = 0; i < _fucks; i++) { mint(_to); } }
// internal - mint loop
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 2082, 2211 ] }
5,148
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
mint
function mint(address _to) internal { uint newTokenId = _tokenIdTracker.current(); _safeMint(_to, newTokenId); // increment AFTER because starts at 0 _tokenIdTracker.increment(); }
// internal - mint once
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 2237, 2427 ] }
5,149
FuckYous
contracts/FuckYous.sol
0xcd860df00125f37a588a7b1662c5bf7c29c572b2
Solidity
FuckYous
contract FuckYous is Ownable, ERC721Enumerable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdTracker; // Truth: string public constant R = 'Fuck you and you and you. I hate your friends and they hate too.'; // sales shit bool public fuckStart; // sale starte...
// An fuck you, to you and you and you.
LineComment
// accept ether sent
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 3370, 3400 ] }
5,150
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 985, 1106 ] }
5,151
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 1326, 1455 ] }
5,152
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 1799, 2081 ] }
5,153
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 2589, 2802 ] }
5,154
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); r...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 3333, 3696 ] }
5,155
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 3979, 4135 ] }
5,156
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 4490, 4812 ] }
5,157
DogeShibaFatherToken
DogeShibaFatherToken.sol
0x554db069064dcc27797c7e060f8b154b6bdc0be0
Solidity
DogeShibaFatherToken
contract DogeShibaFatherToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------...
/** ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers */
NatSpecMultiLine
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://d08751425bbaffd4e4599314f4ad5f50fe33faa8cbb73924963bd428c8b7fc48
{ "func_code_index": [ 5004, 5063 ] }
5,158
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance) { return accounts [_owner]; }
/** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * owner of * @return number of tokens currently belonging to the owner of given address */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 421, 534 ] }
5,159
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); if (accounts [msg.sender] < _value) return false; if (_value > 0 && msg.sender != _to) { accounts [msg.sender] = safeSub (accounts [msg.sender], _value); accounts [_to] = safeAdd (accounts [_to]...
/** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise * accounts [_to] + _value...
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 951, 1370 ] }
5,160
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); if (allowances [_from][msg.sender] < _value) return false; if (accounts [_from] < _value) return false; if (_value > 0 && _from != _to) { allowances [_from][msg.sender] = safeS...
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 1867, 2436 ] }
5,161
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) public returns (bool success) { allowances [msg.sender][_spender] = _value; emit Approval (msg.sender, _spender, _value); return true;
/** * Allow given spender to transfer given number of tokens from message sender. * @param _spender address to allow the owner of to transfer tokens from message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwise */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 2764, 2974 ] }
5,162
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowances [_owner][_spender]; }
/** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @ret...
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 3422, 3570 ] }
5,163
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256 supply) { return tokenCount; }
/** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 934, 1027 ] }
5,164
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { require(!frozenAccount[msg.sender]); f (frozen) return false; else return AbstractToken.transfer (_to, _value); }
/** * Transfer given number of tokens from message sender to given recipient. * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 1477, 1688 ] }
5,165
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { equire(!frozenAccount[_from]); if (frozen) return false; else return AbstractToken.transferFrom (_from, _to, _value); }
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 2084, 2325 ] }
5,166
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) public returns (bool success) { equire(allowance (msg.sender, _spender) == 0 || _value == 0); return AbstractToken.approve (_spender, _value); }
/** * Change how many tokens given spender is allowed to transfer from message * spender. In order to prevent double spending of allowance, * To change the approve amount you first have to reduce the addresses` * allowance to zero by calling `approve(_spender, 0)` if it is not * already 0 to mitigate the rac...
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 3011, 3226 ] }
5,167
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
createTokens
function createTokens(uint256 _value) public returns (bool success) { require (msg.sender == owner); if (_value > 0) { if (_value > safeSub (MAX_TOKEN_COUNT, tokenCount)) return false; accounts [msg.sender] = safeAdd (accounts [msg.sender], _value); tokenCount = safeAdd (tokenCount, _valu...
/** * Create _value new tokens and give new created tokens to msg.sender. * May only be called by smart contract owner. * * @param _value number of tokens to create * @return true if tokens were created successfully, false otherwise */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 3492, 4010 ] }
5,168
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
setOwner
function setOwner(address _newOwner) public { require (msg.sender == owner); owner = _newOwner; }
/** * Set new owner for the smart contract. * May only be called by smart contract owner. * * @param _newOwner address of new owner of the smart contract */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 4197, 4312 ] }
5,169
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
freezeTransfers
function freezeTransfers () public { require (msg.sender == owner); if (!frozen) { frozen = true; emit Freeze (); } }
/** * Freeze ALL token transfers. * May only be called by smart contract owner. */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 4413, 4567 ] }
5,170
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
unfreezeTransfers
function unfreezeTransfers () public { require (msg.sender == owner); if (frozen) { frozen = false; emit Unfreeze (); } }
/** * Unfreeze ALL token transfers. * May only be called by smart contract owner. */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 4670, 4828 ] }
5,171
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
refundTokens
function refundTokens(address _token, address _refund, uint256 _value) public { require (msg.sender == owner); require(_token != address(this)); AbstractToken token = AbstractToken(_token); token.transfer(_refund, _value); emit RefundTokens(_token, _refund, _value); }
/*A user is able to unintentionally send tokens to a contract * and if the contract is not prepared to refund them they will get stuck in the contract. * The same issue used to happen for Ether too but new Solidity versions added the payable modifier to * prevent unintended Ether transfers. However, there’s no ...
Comment
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 5247, 5546 ] }
5,172
NBTC
NBTC.sol
0xcda50305e75b01894dad90be684eb2d6f1c5b0e7
Solidity
NBTC
contract NBTC is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address public o...
/** * norwegianbitcoin smart contract. */
NatSpecMultiLine
freezeAccount
function freezeAccount(address _target, bool freeze) public { require (msg.sender == owner); require (msg.sender != _target); frozenAccount[_target] = freeze; emit FrozenFunds(_target, freeze);
/** * Freeze specific account * May only be called by smart contract owner. */
NatSpecMultiLine
v0.5.6+commit.b259423e
bzzr://b77f53fa33c3cf118b1cecfa8fab5f4d172e798a840ffc05ab84f9729fdda0d4
{ "func_code_index": [ 5645, 5870 ] }
5,173
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 89, 272 ] }
5,174
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 356, 629 ] }
5,175
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 744, 860 ] }
5,176
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 924, 1060 ] }
5,177
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 261, 321 ] }
5,178
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); 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.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 640, 816 ] }
5,179
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev total number of tokens in existence */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 199, 287 ] }
5,180
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // 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.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 445, 836 ] }
5,181
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
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.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 1042, 1154 ] }
5,182
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_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.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 401, 853 ] }
5,183
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { 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.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 1485, 1675 ] }
5,184
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 1999, 2130 ] }
5,185
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 2596, 2860 ] }
5,186
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 3331, 3741 ] }
5,187
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @param _to The address that ...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { totalSupply_ = totalSupply_.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); Transfer(address(0), _to, _amount); return true; }
/** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 483, 756 ] }
5,188
TALE
TALE.sol
0xfb6ccec5fe8567f5244549c20afa06f0f43c4c02
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @param _to The address that ...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
finishMinting
function finishMinting() onlyOwner canMint public returns (bool) { mintingFinished = true; MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://66d640d833dac8f251a083939842fe8bb4aff484d148983840537f0bd6ab8a64
{ "func_code_index": [ 873, 1015 ] }
5,189
PoaManager
contracts/PoaProxy.sol
0x9b97d864543f0e755228b27a552ed145f3d1e964
Solidity
PoaProxy
contract PoaProxy is PoaProxyCommon { uint8 public constant version = 1; event ProxyUpgraded(address upgradedFrom, address upgradedTo); /** @notice Stores addresses of our contract registry as well as the PoaToken and PoaCrowdsale master contracts to forward calls to. */ constructor( ...
/** @title This contract manages the storage of: - PoaProxy - PoaToken - PoaCrowdsale @notice PoaProxy uses chained "delegatecall()"s to call functions on PoaToken and PoaCrowdsale and sets the resulting storage here on PoaProxy. @dev `getContractAddress("PoaLogger").call()` does not use the retur...
NatSpecMultiLine
isContract
function isContract(address _address) private view returns (bool) { uint256 _size; assembly { _size := extcodesize(_address) } return _size > 0; }
/** @notice Ensures that a given address is a contract by making sure it has code. Used during upgrading to make sure the new addresses to upgrade to are smart contracts. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://68fb153aab6ea446eb7f0a299aec399928ed8d899dc798bc3cd6c9d99c5193e3
{ "func_code_index": [ 1117, 1304 ] }
5,190
PoaManager
contracts/PoaProxy.sol
0x9b97d864543f0e755228b27a552ed145f3d1e964
Solidity
PoaProxy
contract PoaProxy is PoaProxyCommon { uint8 public constant version = 1; event ProxyUpgraded(address upgradedFrom, address upgradedTo); /** @notice Stores addresses of our contract registry as well as the PoaToken and PoaCrowdsale master contracts to forward calls to. */ constructor( ...
/** @title This contract manages the storage of: - PoaProxy - PoaToken - PoaCrowdsale @notice PoaProxy uses chained "delegatecall()"s to call functions on PoaToken and PoaCrowdsale and sets the resulting storage here on PoaProxy. @dev `getContractAddress("PoaLogger").call()` does not use the retur...
NatSpecMultiLine
proxyChangeTokenMaster
function proxyChangeTokenMaster(address _newMaster) public returns (bool) { require(msg.sender == getContractAddress("PoaManager")); require(_newMaster != address(0)); require(poaTokenMaster != _newMaster); require(isContract(_newMaster)); address _oldMaster = poaTokenMaster; poaTokenMaster = _...
/// @notice Update the stored "poaTokenMaster" address to upgrade the PoaToken master contract
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://68fb153aab6ea446eb7f0a299aec399928ed8d899dc798bc3cd6c9d99c5193e3
{ "func_code_index": [ 1611, 2217 ] }
5,191
PoaManager
contracts/PoaProxy.sol
0x9b97d864543f0e755228b27a552ed145f3d1e964
Solidity
PoaProxy
contract PoaProxy is PoaProxyCommon { uint8 public constant version = 1; event ProxyUpgraded(address upgradedFrom, address upgradedTo); /** @notice Stores addresses of our contract registry as well as the PoaToken and PoaCrowdsale master contracts to forward calls to. */ constructor( ...
/** @title This contract manages the storage of: - PoaProxy - PoaToken - PoaCrowdsale @notice PoaProxy uses chained "delegatecall()"s to call functions on PoaToken and PoaCrowdsale and sets the resulting storage here on PoaProxy. @dev `getContractAddress("PoaLogger").call()` does not use the retur...
NatSpecMultiLine
proxyChangeCrowdsaleMaster
function proxyChangeCrowdsaleMaster(address _newMaster) public returns (bool) { require(msg.sender == getContractAddress("PoaManager")); require(_newMaster != address(0)); require(poaCrowdsaleMaster != _newMaster); require(isContract(_newMaster)); address _oldMaster = poaCrowdsaleMaster; poaCro...
/// @notice Update the stored `poaCrowdsaleMaster` address to upgrade the PoaCrowdsale master contract
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://68fb153aab6ea446eb7f0a299aec399928ed8d899dc798bc3cd6c9d99c5193e3
{ "func_code_index": [ 2326, 2948 ] }
5,192
PoaManager
contracts/PoaProxy.sol
0x9b97d864543f0e755228b27a552ed145f3d1e964
Solidity
PoaProxy
contract PoaProxy is PoaProxyCommon { uint8 public constant version = 1; event ProxyUpgraded(address upgradedFrom, address upgradedTo); /** @notice Stores addresses of our contract registry as well as the PoaToken and PoaCrowdsale master contracts to forward calls to. */ constructor( ...
/** @title This contract manages the storage of: - PoaProxy - PoaToken - PoaCrowdsale @notice PoaProxy uses chained "delegatecall()"s to call functions on PoaToken and PoaCrowdsale and sets the resulting storage here on PoaProxy. @dev `getContractAddress("PoaLogger").call()` does not use the retur...
NatSpecMultiLine
function() external payable { assembly { // Load PoaToken master address from first storage pointer let _poaTokenMaster := sload(poaTokenMaster_slot) // calldatacopy(t, f, s) calldatacopy( 0x0, // t = mem position to 0x0, // f = mem position from calldatasize // s = ...
/** @notice Fallback function for all proxied functions using "delegatecall()". It will first forward all functions to the "poaTokenMaster" address. If the called function isn't found there, then "poaTokenMaster"'s fallback function will forward the call to "poaCrowdsale". If the called function also isn't fo...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://68fb153aab6ea446eb7f0a299aec399928ed8d899dc798bc3cd6c9d99c5193e3
{ "func_code_index": [ 3427, 4666 ] }
5,193
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
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://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 399, 491 ] }
5,194
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
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://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 1050, 1149 ] }
5,195
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
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://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 1299, 1496 ] }
5,196
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
Solidity
SalvatorMundi
contract SalvatorMundi is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 1.5 ether; uint256 public maxSupply = 10000; uint256 public maxMintAmount = 20; bool public paused = false; bool public revealed = false...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 628, 733 ] }
5,197
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
Solidity
SalvatorMundi
contract SalvatorMundi is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 1.5 ether; uint256 public maxSupply = 10000; uint256 public maxMintAmount = 20; bool public paused = false; bool public revealed = false...
mint
function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { require(msg.value >= cost * _mintAmount); } for...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 749, 1185 ] }
5,198
SalvatorMundi
@openzeppelin/contracts/access/Ownable.sol
0x0cce0c492d4a9da79c1c58e23b414504419b8590
Solidity
SalvatorMundi
contract SalvatorMundi is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 1.5 ether; uint256 public maxSupply = 10000; uint256 public maxMintAmount = 20; bool public paused = false; bool public revealed = false...
reveal
function reveal() public onlyOwner() { revealed = true; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://cd1ce40d528c24a29964360bc75ce46ea837d3caeaf064de1f048052863ba51d
{ "func_code_index": [ 2061, 2131 ] }
5,199
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender *...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
owner
function owner() public view returns(address) { return _owner; }
/** * @return the address of the owner. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 451, 526 ] }
5,200
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender *...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
isOwner
function isOwner() public view returns(bool) { return msg.sender == _owner; }
/** * @return true if `msg.sender` is the owner of the contract. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 753, 841 ] }
5,201
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender *...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(_owner); _owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 1110, 1229 ] }
5,202
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender *...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 1393, 1499 ] }
5,203
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender *...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 1636, 1812 ] }
5,204
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
Destructible
contract Destructible is Ownable { /** * @dev Transfers the current balance to the owner and terminates the contract. */ function destroy() public onlyOwner { selfdestruct(owner()); } function destroyAndSend(address _recipient) public onlyOwner { selfdestruct(_recipient); } }
/** * @title Destructible * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. */
NatSpecMultiLine
destroy
function destroy() public onlyOwner { selfdestruct(owner()); }
/** * @dev Transfers the current balance to the owner and terminates the contract. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 133, 206 ] }
5,205
BatchPreOrder
BatchPreOrder.sol
0xd558f0c903ccac458495f0dc776dbcc78f1adf79
Solidity
IERC165
interface IERC165 { /** * @notice Query if a contract implements an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */ function supportsInterface(bytes4 interf...
/** * @title IERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @notice Query if a contract implements an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://40803e85a639ed1f108b5ac71d85535c59732bc2f66ea68acc0216f6e033e4b7
{ "func_code_index": [ 278, 372 ] }
5,206