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
KamikazeRocket
KamikazeRocket.sol
0xaac8e7b0944f7e45f12a27760c4c13f8cf3b3ed8
Solidity
KamikazeRocket
contract KamikazeRocket is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address =>...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://7595e41aacbaba142bcbf687f083c110f9028403b596fffbfc51b164200f93a5
{ "func_code_index": [ 9923, 9957 ] }
9,907
KamikazeRocket
KamikazeRocket.sol
0xaac8e7b0944f7e45f12a27760c4c13f8cf3b3ed8
Solidity
KamikazeRocket
contract KamikazeRocket is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address =>...
_tokenTransfer
function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _is...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://7595e41aacbaba142bcbf687f083c110f9028403b596fffbfc51b164200f93a5
{ "func_code_index": [ 19767, 20610 ] }
9,908
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
HDT
function HDT( uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol ) { balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens totalSupply = initialSupply; // Update total supply name = tokenName...
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 988, 1651 ] }
9,909
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
transfer
function transfer(address _to, uint256 _value) { if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead (_value <= 0) throw; if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough if (balanceOf[_to] + _value < balance...
/* Send coins */
Comment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 1676, 2439 ] }
9,910
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
approve
function approve(address _spender, uint256 _value) returns (bool success) { (_value <= 0) throw; allowance[msg.sender][_spender] = _value; return true; }
/* Allow another contract to spend some tokens in your behalf */
Comment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 2512, 2709 ] }
9,911
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead (_value <= 0) throw; if (balanceOf[_from] < _value) throw; // Check if the sender has enoug...
/* A contract attempts to get the coins */
Comment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 2769, 3694 ] }
9,912
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
withdrawEther
function withdrawEther(uint256 amount) { if(msg.sender != owner)throw; owner.transfer(amount); }
// transfer balance to owner
LineComment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 5205, 5311 ] }
9,913
HDT
HDT.sol
0x52e31d8637dacf608ec1e9287a8fcc3dc0d1f857
Solidity
HDT
contract HDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; ...
function() payable { }
// can accept ether
LineComment
v0.4.24+commit.e67f0147
bzzr://341f776b11968e35f45ec9639617a0f62f26e9992768dbd71fc3752e9b2513a6
{ "func_code_index": [ 5337, 5366 ] }
9,914
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 60, 124 ] }
9,915
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
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.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 232, 309 ] }
9,916
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
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.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 546, 623 ] }
9,917
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
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.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 946, 1042 ] }
9,918
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
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.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 1326, 1407 ] }
9,919
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
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) {} /// ...
/* * Copyright © 2018 by Capital Trust Group Limited * Author : legal@ctgexchange.com */
Comment
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 1615, 1712 ] }
9,920
AUEBToken
AUEBToken.sol
0x22cb61acda96372510b70034d71f09b695e0345d
Solidity
AUEBToken
contract AUEBToken is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ string public name; uint8 public decimals; string public symbol; ...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); if(!_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extr...
/* Approves and then calls the receiving contract */
Comment
v0.4.23+commit.124ca40d
bzzr://501172fd3a1633d324437efb3812f160dca38cf1ab5eadebfc2cd38894e77a05
{ "func_code_index": [ 988, 1372 ] }
9,921
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
formatDecimals
function formatDecimals(uint256 _value) internal pure returns (uint256 ) { return _value * 10 ** decimals; }
// 转换
LineComment
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 1150, 1277 ] }
9,922
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
setTokenExchangeRate
function setTokenExchangeRate(uint256 _tokenExchangeRate) isOwner external { require(_tokenExchangeRate != 0); require(_tokenExchangeRate != tokenExchangeRate); tokenExchangeRate = _tokenExchangeRate; }
/// 设置token汇率
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 1890, 2131 ] }
9,923
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
increaseSupply
function increaseSupply (uint256 _value) isOwner external { uint256 value = formatDecimals(_value); require(value + currentSupply <= totalSupply); currentSupply = safeAdd(currentSupply, value); emit IncreaseSupply(value); }
/// @dev 超发token处理
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 2158, 2427 ] }
9,924
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
decreaseSupply
function decreaseSupply (uint256 _value) isOwner external { uint256 value = formatDecimals(_value); require(value + tokenRaised <= currentSupply); currentSupply = safeSubtract(currentSupply, value); emit DecreaseSupply(value); }
/// @dev 被盗token处理
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 2454, 2730 ] }
9,925
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
startFunding
function startFunding (uint256 _fundingStartBlock, uint256 _fundingStopBlock) isOwner external { require(!isFunding); require(_fundingStartBlock < _fundingStopBlock); require(block.number < _fundingStartBlock); fundingStartBlock = _fundingStartBlock; fundingStopBlock = _fundingStopBlock; ...
/// 启动区块检测 异常的处理
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 2756, 3130 ] }
9,926
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
stopFunding
function stopFunding() isOwner external { require(isFunding); isFunding = false; }
/// 关闭区块异常处理
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 3152, 3262 ] }
9,927
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
setMigrateContract
function setMigrateContract(address _newContractAddr) isOwner external { require(_newContractAddr != newContractAddr); newContractAddr = _newContractAddr; }
/// 开发了一个新的合同来接收token(或者更新token)
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 3303, 3487 ] }
9,928
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
changeOwner
function changeOwner(address _newFundDeposit) isOwner() external { require(_newFundDeposit != address(0x0)); ethFundDeposit = _newFundDeposit; }
/// 设置新的所有者地址
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 3509, 3681 ] }
9,929
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
migrate
function migrate() external { require(!isFunding); require(newContractAddr != address(0x0)); uint256 tokens = balances[msg.sender]; require(tokens != 0); balances[msg.sender] = 0; tokenMigrated = safeAdd(tokenMigrated, tokens); IMigrationContract newContract = IMigrationContract...
///转移token到新的合约
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 3705, 4211 ] }
9,930
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
transferETH
function transferETH() isOwner external { require(address(this).balance != 0); require(ethFundDeposit.send(address(this).balance)); }
/// 转账ETH 到团队
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 4233, 4394 ] }
9,931
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
allocateToken
function allocateToken (address _addr, uint256 _eth) isOwner external { require(_eth != 0); require(_addr != address(0x0)); uint256 tokens = safeMult(formatDecimals(_eth), tokenExchangeRate); require(tokens + tokenRaised <= currentSupply); tokenRaised = safeAdd(tokenRaised, tokens); ba...
/// 将token分配到预处理地址。
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 4423, 4863 ] }
9,932
KBToken
KBToken.sol
0x3d74549f0960abc42faaa1687fa1f24871acafb8
Solidity
KBToken
contract KBToken is StandardToken, SafeMath { // metadata string public constant name = "2K BLOCKCHAIN"; string public constant symbol = "2KB"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存...
function () public payable { require(isFunding); require(msg.value != 0); require(block.number >= fundingStartBlock); require(block.number <= fundingStopBlock); uint256 tokens = safeMult(msg.value, tokenExchangeRate); require(tokens + tokenRaised <= currentSupply); tokenRaised =...
/// 购买token
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0add7557bda029003db6e53f77302f4d7656f94684d48ebb5a4b44f0cdf56568
{ "func_code_index": [ 4883, 5370 ] }
9,933
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
BBX
function BBX( uint256 initialSupply, string tokenName, string tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = tok...
/** * Constructor function * * Initializes contract with initial supply tokens to the creator of the contract */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 834, 1372 ] }
9,934
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > balanceOf[_to])...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 1456, 2298 ] }
9,935
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 2504, 2616 ] }
9,936
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` on behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 2891, 3192 ] }
9,937
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens on your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 3456, 3632 ] }
9,938
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 4026, 4378 ] }
9,939
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply Burn(msg.sender, _val...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 4548, 4922 ] }
9,940
BBX
BBX.sol
0x421a0ee46dbfee7f65076c7e0c32fa86918bf62d
Solidity
BBX
contract BBX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => u...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
None
bzzr://14ee66b310f3ca70b61c06f38688ec1708d8e919f4d04ee56bc19c4b9800ce1e
{ "func_code_index": [ 5180, 5791 ] }
9,941
VinToken
VinToken.sol
0xff6f22397ced567c4bf0adaa6fd4d81c87299331
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } 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 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://647be87715d9dbf43b1b7118cee9df622382cc07d5919a810f811f080e19ae8f
{ "func_code_index": [ 95, 302 ] }
9,942
VinToken
VinToken.sol
0xff6f22397ced567c4bf0adaa6fd4d81c87299331
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } 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 a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://647be87715d9dbf43b1b7118cee9df622382cc07d5919a810f811f080e19ae8f
{ "func_code_index": [ 392, 692 ] }
9,943
VinToken
VinToken.sol
0xff6f22397ced567c4bf0adaa6fd4d81c87299331
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } 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 Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://647be87715d9dbf43b1b7118cee9df622382cc07d5919a810f811f080e19ae8f
{ "func_code_index": [ 812, 940 ] }
9,944
VinToken
VinToken.sol
0xff6f22397ced567c4bf0adaa6fd4d81c87299331
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } 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 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://647be87715d9dbf43b1b7118cee9df622382cc07d5919a810f811f080e19ae8f
{ "func_code_index": [ 1010, 1156 ] }
9,945
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
mul
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (_a == 0) { return 0; } c ...
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 89, 483 ] }
9,946
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
div
function div(uint256 _a, uint256 _b) internal pure returns (uint256) { // assert(_b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = _a / _b; // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold return _a / _b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 567, 858 ] }
9,947
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
sub
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { assert(_b <= _a); return _a - _b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 972, 1094 ] }
9,948
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
add
function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) { c = _a + _b; assert(c >= _a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1158, 1293 ] }
9,949
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 815, 932 ] }
9,950
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
transferOwnership
function transferOwnership(address _newOwner) public onlyOwner { _transferOwnership(_newOwner); }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1097, 1205 ] }
9,951
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
_transferOwnership
function _transferOwnership(address _newOwner) internal { require(_newOwner != address(0)); emit OwnershipTransferred(owner, _newOwner); owner = _newOwner; }
/** * @dev Transfers control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1343, 1521 ] }
9,952
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function ...
pause
function pause() public onlyOwner whenNotPaused { paused = true; emit Pause(); }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 513, 609 ] }
9,953
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function ...
unpause
function unpause() public onlyOwner whenPaused { paused = false; emit Unpause(); }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 693, 791 ] }
9,954
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
CanReclaimToken
contract CanReclaimToken is Ownable { using SafeERC20 for ERC20Basic; /** * @dev Reclaim all ERC20Basic compatible tokens * @param _token ERC20Basic The address of the token contract */ function reclaimToken(ERC20Basic _token) external onlyOwner { uint256 balance = _token.balanceOf(this); ...
reclaimToken
function reclaimToken(ERC20Basic _token) external onlyOwner { uint256 balance = _token.balanceOf(this); _token.safeTransfer(owner, balance); }
/** * @dev Reclaim all ERC20Basic compatible tokens * @param _token ERC20Basic The address of the token contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 207, 365 ] }
9,955
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) internal balances; uint256 internal totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @...
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 217, 305 ] }
9,956
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) internal balances; uint256 internal totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_value <= balances[msg.sender]); require(_to != address(0)); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; }
/** * @dev Transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 463, 795 ] }
9,957
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) internal balances; uint256 internal totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @...
balanceOf
function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1001, 1105 ] }
9,958
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
BurnableToken
contract BurnableToken is BasicToken { event Burn(address indexed burner, uint256 value); /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { _burn(msg.sender, _value); } function _burn(address _w...
burn
function burn(uint256 _value) public { _burn(msg.sender, _value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 212, 290 ] }
9,959
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
transferFrom
function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); require(_to != address(0)); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_v...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 401, 891 ] }
9,960
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1517, 1712 ] }
9,961
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
allowance
function allowance( address _owner, address _spender ) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 2036, 2201 ] }
9,962
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
increaseApproval
function increaseApproval( address _spender, uint256 _addedValue ) public returns (bool) { allowed[msg.sender][_spender] = ( allowed[msg.sender][_spender].add(_addedValue)); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender T...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 2661, 2971 ] }
9,963
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
decreaseApproval
function decreaseApproval( address _spender, uint256 _subtractedValue ) public returns (bool) { uint256 oldValue = allowed[msg.sender][_spender]; if (_subtractedValue >= oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender T...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 3436, 3886 ] }
9,964
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
function () public payable { buyTokens(); }
// fallback function can be used to buy tokens
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 2367, 2421 ] }
9,965
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
calculateBonusRate
function calculateBonusRate() public view returns (uint256);
// Abstract methods
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 2447, 2510 ] }
9,966
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
refund
function refund() external onlyOwner returns (bool) { require(hasEnded(), "Sale should have ended when refunding"); uint256 _tokens = token.balanceOf(address(this)); if (_tokens == 0) { return false; } require(token.transfer(owner, _tokens), "Expected token transfer to succeed"); emit Token...
// Allows the owner to take back the tokens that are assigned to the sale contract.
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 4041, 4420 ] }
9,967
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
whitelistAddresses
function whitelistAddresses(address[] _addresses, bool _status) public onlyWhitelister { for (uint256 i = 0; i < _addresses.length; i++) { address _investorAddress = _addresses[i]; if (whitelist[_investorAddress] != _status) { whitelist[_investorAddress] = _status; } } }
/// @notice interface for founders to whitelist investors /// @param _addresses array of investors /// @param _status enable or disable
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 4568, 4885 ] }
9,968
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
finalize
function finalize() internal { require(!isFinalized, "Should not be finalized when finalizing"); emit Finalized(); isFinalized = true; token.transferOwnership(owner); }
// @dev does not require that crowdsale `hasEnded()` to leave safegaurd // in place if ETH rises in price too much during crowdsale. // Allows team to close early if cap is exceeded in USD in this event.
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 5727, 5921 ] }
9,969
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloSaleBase
contract MenloSaleBase is Ownable { using SafeMath for uint256; // Whitelisted investors mapping (address => bool) public whitelist; // Special role used exclusively for managing the whitelist address public whitelister; // manual early close flag bool public isFinalized; // cap for crow...
forwardFunds
function forwardFunds(uint256 _amount) internal { wallet.transfer(_amount); }
// send ether to the fund collection wallet // override to create custom fund forwarding mechanisms
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 6030, 6118 ] }
9,970
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloToken
contract MenloToken is PausableToken, BurnableToken, CanReclaimToken { // Token properties string public constant name = 'Menlo One'; string public constant symbol = 'ONE'; uint8 public constant decimals = 18; uint256 private constant token_factor = 10**uint256(decimals); // 1 billion ONE tokens...
transferAndCall
function transferAndCall(address _to, uint256 _value, uint256 _action, bytes _data) public returns (bool) { if (transfer(_to, _value)) { require (MenloTokenReceiver(_to).onTokenReceived(msg.sender, _value, _action, _data) == ONE_RECEIVED, "Target contract onTokenReceived failed"); return true; } re...
/** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value `bytes4(0x150b7a03)`; * otherwise, the transfer is reverted. * Requires the msg sende...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 3185, 3534 ] }
9,971
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloTokenReceiver
contract MenloTokenReceiver { /* * @dev Address of the MenloToken contract */ MenloToken token; constructor(MenloToken _tokenContract) public { token = _tokenContract; } /** * @dev Magic value to be returned upon successful reception of Menlo Tokens */ ...
onTokenReceived
function onTokenReceived( address _from, uint256 _value, uint256 _action, bytes _data ) public /* onlyTokenContract */ returns(bytes4);
/** * @notice Handle the receipt of Menlo Tokens * @dev The MenloToken contract calls this function on the recipient * after a `transferAndCall`. This function MAY throw to revert and reject the * transfer. Return of other than the magic value MUST result in the * transaction being reverted. * Warning: this...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 1337, 1518 ] }
9,972
MenloTokenSale
MenloTokenSale.sol
0x1c9a4895ca840b25e83c472d5aa7e59f22a027fe
Solidity
MenloTokenSale
contract MenloTokenSale is MenloSaleBase { // Timestamps for the bonus periods, set in the constructor uint256 public HOUR1; uint256 public WEEK1; uint256 public WEEK2; uint256 public WEEK3; uint256 public WEEK4; constructor( MenloToken _token, uint256 _startTime, uint256 _endTim...
calculateBonusRate
function calculateBonusRate() public view returns (uint256) { uint256 _bonusRate = 12000; uint256 _currentTime = getBlockTimestamp(); if (_currentTime > startTime && _currentTime <= HOUR1) { _bonusRate = 15600; } else if (_currentTime <= WEEK1) { _bonusRate = 13800; // week 1 } else if (_cu...
// Hour 1: 30% Bonus // Week 1: 15% Bonus // Week 2: 10% Bonus // Week 3: 5% Bonus // Week 4: 0% Bonus
LineComment
v0.4.24+commit.e67f0147
bzzr://6227e3dd53f44d457ce57232ba52d472334fd2a58e36680bc74401c4c15591b0
{ "func_code_index": [ 728, 1239 ] }
9,973
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SafeMath
contract SafeMath { uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Add two uint256 values, throw in case of overflow. * * @param x first value to add * @param y second value to add * @return x + y */ function safeA...
/** * Provides methods to safely add, subtract and multiply uint256 numbers. */
NatSpecMultiLine
safeAdd
function safeAdd (uint256 x, uint256 y) pure internal returns (uint256 z) { assert (x <= MAX_UINT256 - y); return x + y; }
/** * Add two uint256 values, throw in case of overflow. * * @param x first value to add * @param y second value to add * @return x + y */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 304, 448 ] }
9,974
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SafeMath
contract SafeMath { uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Add two uint256 values, throw in case of overflow. * * @param x first value to add * @param y second value to add * @return x + y */ function safeA...
/** * Provides methods to safely add, subtract and multiply uint256 numbers. */
NatSpecMultiLine
safeSub
function safeSub (uint256 x, uint256 y) pure internal returns (uint256 z) { assert (x >= y); return x - y; }
/** * Subtract one uint256 value from another, throw in case of underflow. * * @param x value to subtract from * @param y value to subtract * @return x - y */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 637, 767 ] }
9,975
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SafeMath
contract SafeMath { uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Add two uint256 values, throw in case of overflow. * * @param x first value to add * @param y second value to add * @return x + y */ function safeA...
/** * Provides methods to safely add, subtract and multiply uint256 numbers. */
NatSpecMultiLine
safeMul
function safeMul (uint256 x, uint256 y) pure internal returns (uint256 z) { if (y == 0) return 0; // Prevent division by zero at the next line assert (x <= MAX_UINT256 / y); return x * y; }
/** * Multiply two uint256 values, throw in case of overflow. * * @param x first value to multiply * @param y second value to multiply * @return x * y */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 951, 1167 ] }
9,976
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
totalSupply
function totalSupply () public view returns (uint256 supply);
/** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 139, 203 ] }
9,977
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
balanceOf
function balanceOf (address _owner) public view returns (uint256 balance);
/** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * owner of * @return number of tokens currently belonging to the owner of given address */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 471, 548 ] }
9,978
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
transfer
function transfer (address _to, uint256 _value) public returns (bool success);
/** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 864, 948 ] }
9,979
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
transferFrom
function transferFrom (address _from, address _to, uint256 _value) public returns (bool success);
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1344, 1447 ] }
9,980
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) public returns (bool success);
/** * Allow given spender to transfer given number of tokens from message sender. * * @param _spender address to allow the owner of to transfer tokens from * message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwis...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1794, 1882 ] }
9,981
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
Token
contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () public view returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get numb...
/** * ERC-20 standard token interface, as defined * <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md">here</a>. */
NatSpecMultiLine
allowance
function allowance (address _owner, address _spender) public view returns (uint256 remaining);
/** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @ret...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 2330, 2430 ] }
9,982
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
balanceOf
function balanceOf (address _owner) public view returns (uint256 balance) { return accounts [_owner]; }
/** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * owner of * @return number of tokens currently belonging to the owner of given address */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 419, 533 ] }
9,983
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transfer
function transfer (address _to, uint256 _value) public returns (bool success) { uint256 fromBalance = accounts [msg.sender]; if (fromBalance < _value) return false; if (_value > 0 && msg.sender != _to) { accounts [msg.sender] = safeSub (fromBalance, _value); accounts [_to] = safeAdd (accounts [_to],...
/** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 849, 1269 ] }
9,984
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transferFrom
function transferFrom (address _from, address _to, uint256 _value) public returns (bool success) { uint256 spenderAllowance = allowances [_from][msg.sender]; if (spenderAllowance < _value) return false; uint256 fromBalance = accounts [_from]; if (fromBalance < _value) return false; allowances [_from][...
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1665, 2283 ] }
9,985
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) public returns (bool success) { allowances [msg.sender][_spender] = _value; emit Approval (msg.sender, _spender, _value); return true; }
/** * Allow given spender to transfer given number of tokens from message sender. * * @param _spender address to allow the owner of to transfer tokens from * message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwis...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 2630, 2844 ] }
9,986
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ constructor () public { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
allowance
function allowance (address _owner, address _spender) public view returns (uint256 remaining) { return allowances [_owner][_spender]; }
/** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @ret...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 3292, 3441 ] }
9,987
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
function () public payable { revert (); // Revert if not delegated }
/** * Delegate unrecognized functions. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 367, 446 ] }
9,988
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
name
function name () public pure returns (string) { return "STASIS token"; }
/** * Get name of the token. * * @return name of the token */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 530, 613 ] }
9,989
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
symbol
function symbol () public pure returns (string) { return "STSS"; }
/** * Get symbol of the token. * * @return symbol of the token */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 701, 778 ] }
9,990
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
decimals
function decimals () public pure returns (uint8) { return 18; }
/** * Get number of decimals for the token. * * @return number of decimals for the token */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 892, 966 ] }
9,991
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
totalSupply
function totalSupply () public view returns (uint256) { return tokensCount; }
/** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1090, 1178 ] }
9,992
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
balanceOf
function balanceOf (address _owner) public view returns (uint256 balance) { return AbstractToken.balanceOf (_owner); }
/** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * owner of * @return number of tokens currently belonging to the owner of given address */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1446, 1580 ] }
9,993
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
transfer
function transfer (address _to, uint256 _value) public returns (bool) { if (frozen) return false; else { if (_value <= accounts [msg.sender]) { require (AbstractToken.transfer (_to, _value)); return true; } else return false; } }
/** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 1896, 2189 ] }
9,994
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
transferFrom
function transferFrom (address _from, address _to, uint256 _value) public returns (bool) { if (frozen) return false; else { if (_value <= allowances [_from][msg.sender] && _value <= accounts [_from]) { require (AbstractToken.transferFrom (_from, _to, _value)); return true; } else...
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 2585, 2950 ] }
9,995
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) public returns (bool success) { return AbstractToken.approve (_spender, _value); }
/** * Allow given spender to transfer given number of tokens from message sender. * * @param _spender address to allow the owner of to transfer tokens from * message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwis...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 3297, 3445 ] }
9,996
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
allowance
function allowance (address _owner, address _spender) public view returns (uint256 remaining) { return AbstractToken.allowance (_owner, _spender); }
/** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @ret...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 3893, 4055 ] }
9,997
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
delegatedTransfer
function delegatedTransfer ( address _to, uint256 _value, uint256 _fee, uint256 _nonce, uint8 _v, bytes32 _r, bytes32 _s) public returns (bool) { if (frozen) return false; else { address _from = ecrecover ( keccak256 ( thisAddress (), messageSenderAddress (), _to, _value, _fee, _nonce)...
/** * Transfer given number of token from the signed defined by digital signature * to given recipient. * * @param _to address to transfer token to the owner of * @param _value number of tokens to transfer * @param _fee number of tokens to give to message sender * @param _nonce nonce of the transfer * @...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 4544, 5510 ] }
9,998
SCTToken
SCTToken.sol
0x496d00092e63608bae5ba52d08bab580d8509615
Solidity
SCTToken
contract SCTToken is AbstractToken { uint256 constant internal MAX_TOKENS_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 1; /** * Create SCT Token smart contract with message sender as an owner. * */ constructor () public { owner = msg.sender; } /** ...
/** * SCT Token Smart Contract: EIP-20 compatible token smart contract that manages * SCT tokens. */
NatSpecMultiLine
createTokens
function createTokens (uint256 _value) public returns (bool) { require (msg.sender == owner); if (_value > 0) { if (_value <= safeSub (MAX_TOKENS_COUNT, tokensCount)) { accounts [msg.sender] = safeAdd (accounts [msg.sender], _value); tokensCount = safeAdd (tokensCount, _value); emit...
/** * Create tokens. * * @param _value number of tokens to be created. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
MIT
bzzr://973479d5005c09b517f485895207c838a621123b5fa0024729e4c5583ad46f81
{ "func_code_index": [ 5606, 6069 ] }
9,999