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
DSNCOIN
DSNCOIN.sol
0xec6ac62f9be51f638a8b2a12dff5118d572ca4b9
Solidity
DSNCOIN
contract DSNCOIN is ERC20Interface, Owned { using SafeMath for uint; 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 an initial DSN supply // ----------------------------------------------------------------------------
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.18+commit.9cf6e910
bzzr://109aafdf74d2a622c706ac6329331c3a0377b009201b97beb19d6b5e05cde7b5
{ "func_code_index": [ 3905, 4061 ] }
28,700
DSNCOIN
DSNCOIN.sol
0xec6ac62f9be51f638a8b2a12dff5118d572ca4b9
Solidity
DSNCOIN
contract DSNCOIN is ERC20Interface, Owned { using SafeMath for uint; 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 an initial DSN supply // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; 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.18+commit.9cf6e910
bzzr://109aafdf74d2a622c706ac6329331c3a0377b009201b97beb19d6b5e05cde7b5
{ "func_code_index": [ 4424, 4741 ] }
28,701
DSNCOIN
DSNCOIN.sol
0xec6ac62f9be51f638a8b2a12dff5118d572ca4b9
Solidity
DSNCOIN
contract DSNCOIN is ERC20Interface, Owned { using SafeMath for uint; 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 an initial DSN supply // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://109aafdf74d2a622c706ac6329331c3a0377b009201b97beb19d6b5e05cde7b5
{ "func_code_index": [ 4933, 4992 ] }
28,702
DSNCOIN
DSNCOIN.sol
0xec6ac62f9be51f638a8b2a12dff5118d572ca4b9
Solidity
DSNCOIN
contract DSNCOIN is ERC20Interface, Owned { using SafeMath for uint; 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 an initial DSN supply // ----------------------------------------------------------------------------
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.18+commit.9cf6e910
bzzr://109aafdf74d2a622c706ac6329331c3a0377b009201b97beb19d6b5e05cde7b5
{ "func_code_index": [ 5225, 5414 ] }
28,703
DeezRoleManager
contracts/ERC721Tradable.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
ERC721Tradable
abstract contract ERC721Tradable is ERC721Enumerable, Ownable { using Strings for string; using SafeMath for uint256; address proxyRegistryAddress; uint256 public MAX_SUPPLY; address factoryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, stri...
/** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */
NatSpecMultiLine
mintTo
function mintTo(address _to) public onlyOwner { require(totalSupply() <= MAX_SUPPLY, "Purchase would exceed max supply"); uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); _incrementTokenId(); }
/** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 669, 917 ] }
28,704
DeezRoleManager
contracts/ERC721Tradable.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
ERC721Tradable
abstract contract ERC721Tradable is ERC721Enumerable, Ownable { using Strings for string; using SafeMath for uint256; address proxyRegistryAddress; uint256 public MAX_SUPPLY; address factoryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, stri...
/** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */
NatSpecMultiLine
_getNextTokenId
function _getNextTokenId() private view returns (uint256) { return _currentTokenId.add(1); }
/** * @dev calculates the next token ID based on value of _currentTokenId * @return uint256 for the next token ID */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1431, 1539 ] }
28,705
DeezRoleManager
contracts/ERC721Tradable.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
ERC721Tradable
abstract contract ERC721Tradable is ERC721Enumerable, Ownable { using Strings for string; using SafeMath for uint256; address proxyRegistryAddress; uint256 public MAX_SUPPLY; address factoryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, stri...
/** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */
NatSpecMultiLine
_incrementTokenId
function _incrementTokenId() private { _currentTokenId++; }
/** * @dev increments the value of _currentTokenId */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1609, 1684 ] }
28,706
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
startAutomator
function startAutomator(address _resolver) public onlyOwner { require( !isAutomatorEnabled, "AutoGamma::startAutomator: already started" ); isAutomatorEnabled = true; automator.createTask( address(this), bytes4(0x895f7952), //processOrders selector _resolver, ...
/** * @notice tell automator to start executing orders * @param _resolver the address of automation resolver * @dev automator will start calling resolver to fetch and execute processable orders */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 1310, 1758 ] }
28,707
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
stopAutomator
function stopAutomator() public onlyOwner { require( isAutomatorEnabled, "AutoGamma::stopAutomator: already stopped" ); isAutomatorEnabled = false; automator.cancelTask( automator.getTaskId( address(this), address(this), bytes4(0x895f7952) //pr...
/** * @notice tell automator to stop executing orders */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 1831, 2246 ] }
28,708
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
createOrder
function createOrder( address _otoken, uint256 _amount, uint256 _vaultId, address _toToken ) public override { uint256 fee; bool isSeller; if (_otoken == address(0)) { require( _amount == 0, "AutoGamma::createOrder: Amount must be 0 when creating settlement or...
/** * @notice create automation order * @param _otoken the address of otoken (only holders) * @param _amount amount of otoken (only holders) * @param _vaultId the id of specific vault to settle (only writers) * @param _toToken token address for custom token settlement */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 2554, 4237 ] }
28,709
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
cancelOrder
function cancelOrder(uint256 _orderId) public override { Order storage order = orders[_orderId]; require( order.owner == msg.sender, "AutoGamma::cancelOrder: Sender is not order owner" ); require( !order.finished, "AutoGamma::cancelOrder: Order is already finished" );...
/** * @notice cancel automation order * @param _orderId the id of specific order to be cancelled */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 4358, 4800 ] }
28,710
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
shouldProcessOrder
function shouldProcessOrder(uint256 _orderId) public view override returns (bool) { Order memory order = orders[_orderId]; if (order.finished) return false; if (order.isSeller) { bool shouldSettle = shouldSettleVault(order.owner, order.vaultId); if (!shouldSettle) return fal...
/** * @notice check if processing order is profitable * @param _orderId the id of specific order to be processed * @return true if settling vault / redeeming returns more than 0 amount */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 5014, 5636 ] }
28,711
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
processOrder
function processOrder(uint256 _orderId, ProcessOrderArgs calldata orderArgs) public override onlyAuthorized { Order storage order = orders[_orderId]; require( shouldProcessOrder(_orderId), "AutoGamma::processOrder: Order should not be processed" ); order.finished = true; ...
/** * @notice process an order * @dev only automator allowed * @param _orderId the id of specific order to process */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 5780, 7524 ] }
28,712
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
processOrders
function processOrders( uint256[] calldata _orderIds, ProcessOrderArgs[] calldata _orderArgs ) public override { require( _orderIds.length == _orderArgs.length, "AutoGamma::processOrders: Params lengths must be same" ); for (uint256 i = 0; i < _orderIds.length; i++) { process...
/** * @notice process multiple orders * @param _orderIds array of order ids to process */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 7635, 8046 ] }
28,713
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
withdrawFund
function withdrawFund(address _token, uint256 _amount) public onlyOwner { automatorTreasury.withdrawFunds(payable(this), _token, _amount); }
/** * @notice withdraw funds from automator * @param _token address of token to withdraw * @param _amount amount of token to withdraw */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 8209, 8365 ] }
28,714
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
swap
function swap( uint256 _amountIn, uint256 _amountOutMin, address[] calldata _path ) internal returns (uint256[] memory amounts) { return IUniswapRouter(uniRouter).swapExactTokensForTokens( _amountIn, _amountOutMin, _path, address(this), ...
/** * @notice uniswap token swap * @param _amountIn amount of token to swap * @param _amountOutMin minimal amount of token to receive * @param _path token pair to swap * @return amounts amount of each tokens being swapped */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 8626, 9031 ] }
28,715
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
allowPair
function allowPair(address _token0, address _token1) public onlyOwner { require( !uniPair[_token0][_token1], "AutoGamma::allowPair: already allowed" ); uniPair[_token0][_token1] = true; uniPair[_token1][_token0] = true; }
/** * @notice allow token pair for swap * @param _token0 first token * @param _token1 second token */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 9159, 9444 ] }
28,716
AutoGamma
contracts/AutoGamma.sol
0x3519cfc47c3dbc2f6d916557bd5a4ae96c33b95c
Solidity
AutoGamma
contract AutoGamma is IAutoGamma, GammaOperator { using SafeERC20 for IERC20; Order[] public orders; IUniswapRouter public uniRouter; IPokeMe public automator; ITaskTreasury public automatorTreasury; bool public isAutomatorEnabled; mapping(address => mapping(address => bool)) public uniPa...
/// @author Willy Shen /// @title Opyn Gamma Automatic Redeemer /// @notice An automatic redeemer for Gamma otoken holders and writers
NatSpecSingleLine
disallowPair
function disallowPair(address _token0, address _token1) public onlyOwner { require( uniPair[_token0][_token1], "AutoGamma::allowPair: already disallowed" ); uniPair[_token0][_token1] = false; uniPair[_token1][_token0] = false; }
/** * @notice disallow token pair for swap * @param _token0 first token * @param _token1 second token */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 9575, 9867 ] }
28,717
PixelToros
/contracts/PixelToros.sol
0x8a496886e53c5c3d02bb4c49fa77f9654ecd1a6a
Solidity
PixelToros
contract PixelToros is ERC721Enumerable, Ownable { using SafeMath for uint256; uint256 public constant MAX_PIXEL_TOROS = 10000; uint256 public constant pixelToroPrice = 50000000000000000; // 0.05 ETH uint public constant maxPixelTorosPurchase = 10; bool public isSaleActive = false; constructor() ...
reservePixelToros
function reservePixelToros() public onlyOwner { for (uint i = 0; i < 30; i++) { uint256 newToroId = totalSupply(); _safeMint(msg.sender, newToroId); } }
/** * Set some PixelToros aside */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 684, 854 ] }
28,718
PixelToros
/contracts/PixelToros.sol
0x8a496886e53c5c3d02bb4c49fa77f9654ecd1a6a
Solidity
PixelToros
contract PixelToros is ERC721Enumerable, Ownable { using SafeMath for uint256; uint256 public constant MAX_PIXEL_TOROS = 10000; uint256 public constant pixelToroPrice = 50000000000000000; // 0.05 ETH uint public constant maxPixelTorosPurchase = 10; bool public isSaleActive = false; constructor() ...
flipSaleState
function flipSaleState() public onlyOwner { isSaleActive = !isSaleActive; }
/** * Pause sale if active, make active if paused */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 918, 1000 ] }
28,719
PixelToros
/contracts/PixelToros.sol
0x8a496886e53c5c3d02bb4c49fa77f9654ecd1a6a
Solidity
PixelToros
contract PixelToros is ERC721Enumerable, Ownable { using SafeMath for uint256; uint256 public constant MAX_PIXEL_TOROS = 10000; uint256 public constant pixelToroPrice = 50000000000000000; // 0.05 ETH uint public constant maxPixelTorosPurchase = 10; bool public isSaleActive = false; constructor() ...
mintPixelToros
function mintPixelToros(uint numberOfPixelToros) public payable { require(isSaleActive, "Sale must be active to mint PixelToros"); require(numberOfPixelToros <= maxPixelTorosPurchase, "Can only mint 10 PixelToros at a time"); require(totalSupply().add(numberOfPixelToros) <= MAX_PIXEL_TOROS, "Purchase would exceed...
/** * Mints PixelToros */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1037, 1682 ] }
28,720
eBOND
@openzeppelin/contracts/access/Ownable.sol
0x2a1699ecacd500082b211510ee4dd4d5321fd9e5
Solidity
Ownable
abstract contract Ownable is Context { //address private _owner; mapping (address => bool) private _owner; event OwnershipTransferred(address indexed previousOwner, bool status); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() pub...
/** * @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(address _check) public view returns (bool) { return _owner[_check]; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://50b6b3b108bbf93cffdbd94c047192e8bb70f0c12a52960058bdf92daff4b203
{ "func_code_index": [ 540, 643 ] }
28,721
eBOND
@openzeppelin/contracts/access/Ownable.sol
0x2a1699ecacd500082b211510ee4dd4d5321fd9e5
Solidity
Ownable
abstract contract Ownable is Context { //address private _owner; mapping (address => bool) private _owner; event OwnershipTransferred(address indexed previousOwner, bool status); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() pub...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(newOwner, true); _owner[newOwner] = true; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://50b6b3b108bbf93cffdbd94c047192e8bb70f0c12a52960058bdf92daff4b203
{ "func_code_index": [ 1431, 1684 ] }
28,722
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
StrongHold
function StrongHold() public { // add administrators here administrators[0x72672f5a5f1f0d1bd51d75da8a61b3bcbf6efdd40888e7adb59869bd46b7490e] = false; }
/* * -- APPLICATION ENTRY POINTS -- */
Comment
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 5133, 5330 ] }
28,723
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
buy
function buy(address _referredBy) public payable returns(uint256) { purchaseTokens(msg.value, _referredBy); }
/** * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any) */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 5461, 5621 ] }
28,724
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
function() payable public { purchaseTokens(msg.value, 0x0); }
/** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 5791, 5894 ] }
28,725
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
reinvest
function reinvest() onlyStronghands() public { // fetch dividends uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code // pay out the dividends virtually address _customerAddress = msg.sender; payoutsTo_[_customerAddress] += (int256) (_dividends * magn...
/** * Converts all of caller's dividends to tokens. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 5968, 6708 ] }
28,726
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
exit
function exit() public { // get token count for caller & sell them all address _customerAddress = msg.sender; uint256 _tokens = tokenBalanceLedger_[_customerAddress]; if(_tokens > 0) sell(_tokens); // lambo delivery service withdraw(); }
/** * Alias of sell() and withdraw(). */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 6769, 7086 ] }
28,727
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
withdraw
function withdraw() onlyStronghands() public { // setup data address _customerAddress = msg.sender; uint256 _dividends = myDividends(false); // get ref. bonus later in the code // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // ...
/** * Withdraws all of the callers earnings. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 7154, 7805 ] }
28,728
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
sell
function sell(uint256 _amountOfTokens) onlyBagholders() public { // setup data address _customerAddress = msg.sender; // russian hackers BTFO require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); uint256 _tokens = _amountOfTokens; uint256 _ethereum = tokensToEthereu...
/** * Liquifies tokens to ethereum. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 7864, 9145 ] }
28,729
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
transfer
function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders() public returns(bool) { // setup address _customerAddress = msg.sender; // make sure we have the requested tokens // also disables transfers until ambassador phase is over // ( we dont want whale pr...
/** * Transfer tokens from the caller to a new holder. * Remember, there's a 10% fee here as well. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 9275, 11016 ] }
28,730
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
disableInitialStage
function disableInitialStage() onlyAdministrator() public { onlyAmbassadors = false; }
/** * In case the amassador quota is not met, the administrator can manually disable the ambassador phase. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 11208, 11336 ] }
28,731
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
setAdministrator
function setAdministrator(bytes32 _identifier, bool _status) onlyAdministrator() public { administrators[_identifier] = _status; }
/** * In case one of us dies, we need to replace ourselves. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 11419, 11591 ] }
28,732
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
setStakingRequirement
function setStakingRequirement(uint256 _amountOfTokens) onlyAdministrator() public { stakingRequirement = _amountOfTokens; }
/** * Precautionary measures in case we need to adjust the masternode rate. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 11690, 11856 ] }
28,733
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
setName
function setName(string _name) onlyAdministrator() public { name = _name; }
/** * If we want to rebrand, we can. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 11916, 12033 ] }
28,734
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
setSymbol
function setSymbol(string _symbol) onlyAdministrator() public { symbol = _symbol; }
/** * If we want to rebrand, we can. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 12093, 12218 ] }
28,735
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
totalEthereumBalance
function totalEthereumBalance() public view returns(uint) { return this.balance; }
/** * Method to view the current Ethereum stored in the contract * Example: totalEthereumBalance() */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 12405, 12538 ] }
28,736
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
totalSupply
function totalSupply() public view returns(uint256) { return tokenSupply_; }
/** * Retrieve the total token supply. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 12600, 12727 ] }
28,737
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
myTokens
function myTokens() public view returns(uint256) { address _customerAddress = msg.sender; return balanceOf(_customerAddress); }
/** * Retrieve the tokens owned by the caller. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 12797, 12984 ] }
28,738
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
myDividends
function myDividends(bool _includeReferralBonus) public view returns(uint256) { address _customerAddress = msg.sender; return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ; }
/** * Retrieve the dividends owned by the caller. * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations. * The reason for this, is that in the frontend, we will want to get the total divs (global + ref) * But in the internal calculations, we want them separate. ...
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 13335, 13647 ] }
28,739
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
balanceOf
function balanceOf(address _customerAddress) view public returns(uint256) { return tokenBalanceLedger_[_customerAddress]; }
/** * Retrieve the token balance of any single address. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 13726, 13900 ] }
28,740
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
dividendsOf
function dividendsOf(address _customerAddress) view public returns(uint256) { return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude; }
/** * Retrieve the dividend balance of any single address. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 13982, 14241 ] }
28,741
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
sellPrice
function sellPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ - tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _d...
/** * Return the buy price of 1 individual token. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 14314, 14872 ] }
28,742
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
buyPrice
function buyPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ + tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _di...
/** * Return the sell price of 1 individual token. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 14946, 15504 ] }
28,743
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
calculateTokensReceived
function calculateTokensReceived(uint256 _ethereumToSpend) public view returns(uint256) { uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereumToSpend, entryFee_), 100); uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends); uint256 _amountOfTokens = ethereumToTokens_(_ta...
/** * Function for the frontend to dynamically retrieve the price scaling of buy orders. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 15616, 16024 ] }
28,744
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
calculateEthereumReceived
function calculateEthereumReceived(uint256 _tokensToSell) public view returns(uint256) { require(_tokensToSell <= tokenSupply_); uint256 _ethereum = tokensToEthereum_(_tokensToSell); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee_), 100); uint256 _taxedEthereum = S...
/** * Function for the frontend to dynamically retrieve the price scaling of sell orders. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 16137, 16568 ] }
28,745
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
purchaseTokens
function purchaseTokens(uint256 _incomingEthereum, address _referredBy) antiEarlyWhale(_incomingEthereum) internal returns(uint256) { // data setup address _customerAddress = msg.sender; uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, entryFee_), 100); uint...
/*========================================== = INTERNAL FUNCTIONS = ==========================================*/
Comment
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 16723, 20123 ] }
28,746
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
ethereumToTokens_
function ethereumToTokens_(uint256 _ethereum) internal view returns(uint256) { uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18; uint256 _tokensReceived = ( ( // underflow attempts BTFO SafeMath.sub( (sqrt ( ...
/** * Calculate Token price based on an amount of incoming ethereum * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 20414, 21392 ] }
28,747
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
tokensToEthereum_
function tokensToEthereum_(uint256 _tokens) internal view returns(uint256) uint256 tokens_ = (_tokens + 1e18); uint256 _tokenSupply = (tokenSupply_ + 1e18); uint256 _etherReceived = ( // underflow attempts BTFO SafeMath.sub( ( ( ...
/** * Calculate token sell value. * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 21649, 22377 ] }
28,748
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
Solidity
StrongHold
contract StrongHold { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStro...
/* * Team UltimateGods presents.. * ====================================* * ____ ___ _____ * | _ \ / _ \ | ____| * | |_) | | | \| | _ * | __/| |_| || |_| | * |_| \___/ |_____| * * * ================================...
Comment
sqrt
function sqrt(uint x) internal pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } }
//This is where all your gas goes, sorry //Not sorry, you probably only paid 1 gwei
LineComment
v0.4.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 22476, 22679 ] }
28,749
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
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; } /** ...
/** * @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.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 95, 308 ] }
28,750
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
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; } /** ...
/** * @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.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 398, 691 ] }
28,751
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
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; } /** ...
/** * @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.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 812, 940 ] }
28,752
StrongHold
StrongHold.sol
0x8036165ccabee251c886d6121b047c16b5e798b5
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; } /** ...
/** * @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.21+commit.dfe3193c
bzzr://ebf7ee2dbfca02202963464802cb1322f092ca81960040a0b8f4a14c652d47d7
{ "func_code_index": [ 1010, 1162 ] }
28,753
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); }
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the token collection name. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 108, 167 ] }
28,754
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); }
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token collection symbol. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 238, 299 ] }
28,755
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
IERC721Receiver
interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other valu...
/** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */
NatSpecMultiLine
onERC721Received
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
/** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by ...
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 528, 655 ] }
28,756
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); }
/** * @dev See {IERC721-balanceOf}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 4603, 4823 ] }
28,757
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) public view override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); }
/** * @dev See {IERC721-ownerOf}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 5319, 5493 ] }
28,758
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
name
function name() public view override returns (string memory) { return _name; }
/** * @dev See {IERC721Metadata-name}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 5555, 5652 ] }
28,759
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
symbol
function symbol() public view override returns (string memory) { return _symbol; }
/** * @dev See {IERC721Metadata-symbol}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 5716, 5817 ] }
28,760
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
tokenOfOwnerByIndex
function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); }
/** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 5896, 6055 ] }
28,761
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); }
/** * @dev See {IERC721Enumerable-totalSupply}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 6126, 6334 ] }
28,762
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
tokenByIndex
function tokenByIndex(uint256 index) public view override returns (uint256) { (uint256 tokenId,) = _tokenOwners.at(index); return tokenId; }
/** * @dev See {IERC721Enumerable-tokenByIndex}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 6406, 6574 ] }
28,763
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
getNFTPrice
function getNFTPrice() public view returns (uint256) { require(minted < MAX_NFT_MINTED, "Sale has already ended"); require(block.timestamp >= saleStartTimestamp, "Sale has not started"); if (minted >= 3584) { return 255000000000000000; } else if (minted >= 3072) { return 24000000...
/** * @dev Gets current TheRestorian Price */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 6733, 7479 ] }
28,764
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
mintNFT
function mintNFT(uint256 numberOfNfts) public payable { require(numberOfNfts > 0, "numberOfNfts cannot be 0"); require(numberOfNfts <= 20, "You may not buy more than 20 NFTs at once"); require(minted.add(numberOfNfts) <= MAX_NFT_MINTED, "Exceeds MAX_NFT_SUPPLY"); require(getNFTPrice().mul(numberOfNf...
/** * @dev Mints TheRestorian */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 7530, 8366 ] }
28,765
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
finalizeStartingIndex
function finalizeStartingIndex() public { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint(blockhash(startingIndexBlock)) % MAX_NFT_MINTED; // Just a sanity case in the worst case if this functi...
/** * @dev Finalize starting index */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 9359, 10049 ] }
28,766
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
withdraw
function withdraw() onlyOwner public { uint balance = address(this).balance; msg.sender.transfer(balance); }
/** * @dev Withdraw ether from this contract (Callable by owner) */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 10136, 10272 ] }
28,767
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
approve
function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all...
/** * @dev See {IERC721-approve}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 10329, 10724 ] }
28,768
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
getApproved
function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; }
/** * @dev See {IERC721-getApproved}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 10785, 11003 ] }
28,769
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); }
/** * @dev See {IERC721-setApprovalForAll}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 11070, 11370 ] }
28,770
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address owner, address operator) public view override returns (bool) { return _operatorApprovals[owner][operator]; }
/** * @dev See {IERC721-isApprovedForAll}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 11436, 11597 ] }
28,771
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); }
/** * @dev See {IERC721-transferFrom}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 11659, 11969 ] }
28,772
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); }
/** * @dev See {IERC721-safeTransferFrom}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 12035, 12191 ] }
28,773
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); }
/** * @dev See {IERC721-safeTransferFrom}. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 12257, 12547 ] }
28,774
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_safeTransfer
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); }
/** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is eq...
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 13424, 13701 ] }
28,775
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_exists
function _exists(uint256 tokenId) internal view returns (bool) { return _tokenOwners.contains(tokenId); }
/** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 14009, 14133 ] }
28,776
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_isApprovedOrOwner
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); }
/** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 14295, 14633 ] }
28,777
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_safeMint
function _safeMint(address to, uint256 tokenId, uint8 level) internal virtual { _safeMint(to, tokenId, "", level); }
/** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 14971, 15106 ] }
28,778
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_safeMint
function _safeMint(address to, uint256 tokenId, bytes memory _data, uint8 level) internal virtual { _mint(to, tokenId, level); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); }
/** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 15328, 15603 ] }
28,779
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_mint
function _mint(address to, uint256 tokenId, uint8 level) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _restorians[tokenId] = Restorian(tokenId, level); ...
/** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 15934, 16476 ] }
28,780
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_burn
function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, a...
/** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 16700, 17080 ] }
28,781
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_transfer
function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the...
/** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 17412, 17991 ] }
28,782
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_checkOnERC721Received
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, ...
/** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param to...
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 18553, 19182 ] }
28,783
TheRestorian
contracts/TheRestorian.sol
0xb6484b1d2e71ca68ab42fba4d4f8918226db9900
Solidity
TheRestorian
contract TheRestorian is Context, Ownable, ERC165, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; struct Restoria...
/** * @title TheRestorian contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual {}
/** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``...
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 19956, 20053 ] }
28,784
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
setMinter
function setMinter(address _newMinter) external canMint onlyOwner returns(bool) { require(_newMinter != address(0), "New minter must be a valid non-null address"); require(_newMinter != minter, "New minter has to differ from previous minter"); emit MinterTransferred(minter, _newMinte...
/** * @dev Allows the current owner to change the minter. * @param _newMinter The address of the new minter. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 3174, 3589 ] }
28,785
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
setAssigner
function setAssigner(address _newAssigner) external onlyOwner canMint returns(bool) { require(_newAssigner != address(0), "New assigner must be a valid non-null address"); require(_newAssigner != assigner, "New assigner has to differ from previous assigner"); emit AssignerTransferred...
/** * @dev Allows the current owner to change the assigner. * @param _newAssigner The address of the new assigner. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 3794, 4235 ] }
28,786
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
setBurner
function setBurner(address _newBurner) external onlyOwner returns(bool) { require(_newBurner != address(0), "New burner must be a valid non-null address"); require(_newBurner != burner, "New burner has to differ from previous burner"); emit BurnerTransferred(burner, _newBurner); burn...
/** * @dev Allows the current owner to change the burner. * @param _newBurner The address of the new burner. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 4434, 4832 ] }
28,787
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
batchMint
function batchMint(address[] _to, uint256[] _amounts, uint256 _batchMintId) external canMint hasMintPermission returns (bool) { require(_to.length == _amounts.length, "Input arrays must have the same length"); uint256 totalMintedTokens = 0; for (uint i = 0; i < _to.length; i++)...
/** * @dev Function to batch mint tokens. * @param _to An array of addresses that will receive the minted tokens. * @param _amounts An array with the amounts of tokens each address will get minted. * @param _batchMintId Identifier for the batch in order to synchronize with internal (off-chain) processes. * @r...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 5262, 5834 ] }
28,788
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
assign
function assign(address _to, uint256 _amount) public canMint hasAssignPermission returns(bool) { // The desired value to assign (`_amount`) can be either higher or lower than the current number of tokens // of the address (`balances[_to]`). To calculate the new `totalSupply_` value, the dif...
/** * @dev Function to assign any number of tokens to a given address. * Compared to the `mint` function, the `assign` function allows not just to increase but also to decrease * the number of tokens of an address by assigning a lower value than the address current balance. * This function can on...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 6412, 7908 ] }
28,789
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
batchAssign
function batchAssign(address[] _to, uint256[] _amounts, uint256 _batchAssignId) external canMint hasAssignPermission returns (bool) { require(_to.length == _amounts.length, "Input arrays must have the same length"); uint256 totalAssignedTokens = 0; for (uint i = 0; i < _to.leng...
/** * @dev Function to assign a list of numbers of tokens to a given list of addresses. * @param _to The addresses that will receive the assigned tokens. * @param _amounts The amounts of tokens to assign. * @param _batchAssignId Identifier for the batch in order to synchronize with internal (off-chain) processe...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 8322, 8914 ] }
28,790
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
burn
function burn(uint256 _value) public hasBurnPermission { super.burn(_value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 9043, 9154 ] }
28,791
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public whenMintingFinished whenNotPaused returns (bool) { return super.transfer(_to, _value); }
/** * @dev transfer token for a specified address when minting is finished. * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 9352, 9546 ] }
28,792
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public whenMintingFinished whenNotPaused returns (bool) { return super.transferFrom(_from, _to, _value); }
/** * @dev Transfer tokens from one address to another when minting is finished. * @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.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 9864, 10088 ] }
28,793
CoyToken
contracts\CoyToken.sol
0xa2c1e04aca801da92fa95af161040d37f103d69d
Solidity
CoyToken
contract CoyToken is CappedToken, BurnableToken, DetailedERC20, Pausable { using SafeMath for uint256; using SafeMath for uint8; string private constant COY_NAME = "CoinAnalyst"; string private constant COY_SYMBOL = "COY"; uint8 private constant COY_DECIMALS = 18; /** * ...
/** * @title COYToken * @dev CoinAnalyst's ERC20 Token. * Besides the standard ERC20 functionality, the token allows minting, batch minting, * burning, and assigning. Furthermore, it is a pausable capped token. * When paused, transfers are impossible. * * This contract is heavily based on the Open Zeppel...
NatSpecMultiLine
transferInBatches
function transferInBatches(address[] _to, uint256[] _amounts, uint256 _batchTransferId) public whenMintingFinished whenNotPaused returns (bool) { require(_to.length == _amounts.length, "Input arrays must have the same length"); uint256 totalTransferredTokens = 0; for (uint i = ...
/** * @dev Transfer tokens from one address to several others when minting is finished. * @param _to addresses The addresses which you want to transfer to * @param _amounts uint256 the amounts of tokens to be transferred * @param _batchTransferId Identifier for the batch in order to synchronize with internal (o...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://424cf3f1fa0fb24783510c9496b38f878c278e7443f883f75512abf3003b2622
{ "func_code_index": [ 10466, 11088 ] }
28,794
FRUT
FRUT.sol
0x5adf3e3ba4a8f3f4cf80f9c3bd0eea7cc562877e
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://0002bb33a515b19eac5c8cf7fd7240e7d60de6ed1de4c5be794d39e8a28d22b7
{ "func_code_index": [ 60, 124 ] }
28,795
FRUT
FRUT.sol
0x5adf3e3ba4a8f3f4cf80f9c3bd0eea7cc562877e
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://0002bb33a515b19eac5c8cf7fd7240e7d60de6ed1de4c5be794d39e8a28d22b7
{ "func_code_index": [ 232, 309 ] }
28,796
FRUT
FRUT.sol
0x5adf3e3ba4a8f3f4cf80f9c3bd0eea7cc562877e
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://0002bb33a515b19eac5c8cf7fd7240e7d60de6ed1de4c5be794d39e8a28d22b7
{ "func_code_index": [ 546, 623 ] }
28,797
FRUT
FRUT.sol
0x5adf3e3ba4a8f3f4cf80f9c3bd0eea7cc562877e
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://0002bb33a515b19eac5c8cf7fd7240e7d60de6ed1de4c5be794d39e8a28d22b7
{ "func_code_index": [ 946, 1042 ] }
28,798
FRUT
FRUT.sol
0x5adf3e3ba4a8f3f4cf80f9c3bd0eea7cc562877e
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://0002bb33a515b19eac5c8cf7fd7240e7d60de6ed1de4c5be794d39e8a28d22b7
{ "func_code_index": [ 1326, 1407 ] }
28,799