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
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
unpause
function unpause() public onlyOwner whenPaused { _unpause(); }
/** * @dev unpause all coin transfer */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 2493, 2574 ] }
10,300
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
addLocker
function addLocker(address account) public onlyOwner whenNotPaused { _addLocker(account); }
/** * @dev only owner can add locker */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 2634, 2744 ] }
10,301
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
removeLocker
function removeLocker(address account) public onlyOwner whenNotPaused { _removeLocker(account); }
/** * @dev only owner can remove locker */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 2807, 2923 ] }
10,302
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
lock
function lock(address account) public onlyLocker whenNotPaused { _lock(account); }
/** * @dev only locker can lock account */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 2986, 3087 ] }
10,303
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
unlock
function unlock(address account) public onlyOwner whenNotPaused { _unlock(account); }
/** * @dev only locker can unlock account */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 3152, 3256 ] }
10,304
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
addTimeLock
function addTimeLock( address account, uint256 amount, uint256 expiresAt ) public onlyLocker whenNotPaused { _addTimeLock(account, amount, expiresAt); }
/** * @dev only locker can add time lock */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 3320, 3523 ] }
10,305
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
removeTimeLock
function removeTimeLock(address account, uint8 index) public onlyOwner whenNotPaused { _removeTimeLock(account, index); }
/** * @dev only locker can remove time lock */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 3590, 3730 ] }
10,306
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
addInvestorLock
function addInvestorLock( address account, uint256 startsAt, uint256 period, uint256 count ) public onlyLocker whenNotPaused { _addInvestorLock(account, balanceOf(account), startsAt, period, count); }
/** * @dev only locker can add investor lock */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 3798, 4058 ] }
10,307
ADMON
ADMON.sol
0x90bd85b74e878eb4c433b6811d26a81b2ed944f0
Solidity
ADMON
contract ADMON is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 2_000_000_000e18; constructor() ERC20("ADMON", "ADMON") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAddres...
/** * @dev Contract for ADMON token */
NatSpecMultiLine
removeInvestorLock
function removeInvestorLock(address account) public onlyOwner whenNotPaused { _removeInvestorLock(account); }
/** * @dev only locker can remove investor lock */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://f227e634a4f324cdec123e7cfd1cd1b4c6b0e4c39e926c7bad41f148e8ee3874
{ "func_code_index": [ 4129, 4257 ] }
10,308
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0), ""); require(!has(role, account), ""); ro...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
add
function add(Role storage role, address account) internal { require(account != address(0), ""); require(!has(role, account), ""); role.bearer[account] = true; }
/** * @dev give an account access to this role */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 155, 354 ] }
10,309
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0), ""); require(!has(role, account), ""); ro...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
remove
function remove(Role storage role, address account) internal { require(account != address(0), ""); require(has(role, account), ""); role.bearer[account] = false; }
/** * @dev remove an account's access to this role */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 428, 630 ] }
10,310
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0), ""); require(!has(role, account), ""); ro...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
has
function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), ""); return role.bearer[account]; }
/** * @dev check if an account has this role * @return bool */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 719, 893 ] }
10,311
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public view returns (uint) { return safeSub(_totalSupply, balances[address(0)]); }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 1024, 1149 ] }
10,312
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 1367, 1492 ] }
10,313
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 1834, 2126 ] }
10,314
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 2634, 2856 ] }
10,315
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, token...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 3387, 3760 ] }
10,316
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public view 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.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 4041, 4193 ] }
10,317
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // 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.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 5138, 5327 ] }
10,318
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
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.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 5451, 5535 ] }
10,319
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
burnFrom
function burnFrom(address from, uint256 value) public { _burnFrom(from, value); }
/** * @dev Burns a specific amount of tokens from the target address and decrements allowance * @param from address The address which you want to send tokens from * @param value uint256 The amount of token to be burned */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 5789, 5889 ] }
10,320
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
burnOwner
function burnOwner(uint256 value) public onlyOwner { require(msg.sender != address(0), ""); _totalSupply = safeSub(_totalSupply, value); balances[_owner] = safeSub(balances[_owner], value); emit Transfer(_owner, address(0), value); }
/** * @dev Burns a specific amount of tokens from the owner * @param value uint256 The amount of token to be burned */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 6034, 6319 ] }
10,321
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
mint
function mint(address account, uint256 value) public onlyMinter returns (bool) { require(account != address(0), ""); require(account != _owner, ""); // _totalSupply = safeAdd(_totalSupply, value); balances[account] = safeAdd(balances[account], value); balances[_owner] = safeSub(ba...
/** * @dev Function to mint tokens * @param account The address that will receive the minted tokens. * @param value The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 6574, 7021 ] }
10,322
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
mintOwner
function mintOwner(uint256 value) public onlyMinter returns (bool) { require(msg.sender != address(0), ""); require(msg.sender == _owner, ""); _totalSupply = safeAdd(_totalSupply, value); balances[_owner] = safeAdd(balances[_owner], value); emit Transfer(address(0), _owner, value)...
/** * @dev Function to mint tokens * @param value The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 7204, 7581 ] }
10,323
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
_burn
function _burn(address account, uint256 value) internal { require(account != address(0), ""); require(account != _owner, ""); balances[account] = safeSub(balances[account], value); balances[_owner] = safeAdd(balances[_owner], value); emit Transfer(account, _owner, value); }
/** * @dev Internal function that burns an amount of the token of a given * account. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 7810, 8141 ] }
10,324
FCS
FCS.sol
0xd56c90a1b12c93bb48e9a0904a2a1e1d9dcb5161
Solidity
FCS
contract FCS is ERC20Interface, Owned, SafeMath, MinterRole { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; address private _owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
_burnFrom
function _burnFrom(address account, uint256 value) internal { allowed[account][msg.sender] = safeSub(allowed[account][msg.sender], value); _burn(account, value); emit Approval(account, msg.sender, allowed[account][msg.sender]); }
/** * @dev Internal function that burns an amount of the token of a given * account, deducting from the sender's allowance for said account. Uses the * internal burn function. * Emits an Approval event (reflecting the reduced allowance). * @param account The account whose tokens will be burnt. * @param valu...
NatSpecMultiLine
v0.5.0+commit.1d4f565a
bzzr://e5f9b499d47c2541e0501859496337865bd6448478aa53ef9c2fa56a533055d0
{ "func_code_index": [ 8535, 8801 ] }
10,325
CyberKaijuzDeployer
NFTDeploy.sol
0x5ec7704376ee1abbe934cb5cefce66d0b414ee78
Solidity
CyberKaijuzDeployer
contract CyberKaijuzDeployer is ERC721Enumerable, Ownable { using Strings for uint256; event MintNft(address indexed sender, uint256 startWith, uint256 times); //Important Variables uint256 public priceToMint = 0.05 * 10 ** 18; uint256 public totalNfts; uint256 public totalCount = 9999; ...
tokenURI
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token."); string memory baseURI2 = _baseURI(); return bytes(baseURI2).length > 0 ? string(abi.encodePacked(baseURI2, tokenId.toString(), ".json"...
//erc721
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://30483ef1fdcdefb6ea902ddbba0f25655870913428ed5a591d5e657e3b2c7239
{ "func_code_index": [ 1363, 1720 ] }
10,326
PolygonMessengerWrapper
contracts/polygon/tunnel/FxBaseRootTunnel.sol
0x1b4bd337b06c2cc939a02d5ee0fe4a33a33e552f
Solidity
FxBaseRootTunnel
abstract contract FxBaseRootTunnel { using RLPReader for bytes; using RLPReader for RLPReader.RLPItem; using Merkle for bytes32; // keccak256(MessageSent(bytes)) bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036; // state sender...
setFxChildTunnel
function setFxChildTunnel(address _fxChildTunnel) public { require(fxChildTunnel == address(0x0), "FxBaseRootTunnel: CHILD_TUNNEL_ALREADY_SET"); fxChildTunnel = _fxChildTunnel; }
// set fxChildTunnel if not set already
LineComment
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 855, 1057 ] }
10,327
PolygonMessengerWrapper
contracts/polygon/tunnel/FxBaseRootTunnel.sol
0x1b4bd337b06c2cc939a02d5ee0fe4a33a33e552f
Solidity
FxBaseRootTunnel
abstract contract FxBaseRootTunnel { using RLPReader for bytes; using RLPReader for RLPReader.RLPItem; using Merkle for bytes32; // keccak256(MessageSent(bytes)) bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036; // state sender...
_sendMessageToChild
function _sendMessageToChild(bytes memory message) internal { fxRoot.sendMessageToChild(fxChildTunnel, message); }
/** * @notice Send bytes message to Child Tunnel * @param message bytes message that will be sent to Child Tunnel * some message examples - * abi.encode(tokenId); * abi.encode(tokenId, tokenMetadata); * abi.encode(messageType, messageData); */
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 1348, 1478 ] }
10,328
PolygonMessengerWrapper
contracts/polygon/tunnel/FxBaseRootTunnel.sol
0x1b4bd337b06c2cc939a02d5ee0fe4a33a33e552f
Solidity
FxBaseRootTunnel
abstract contract FxBaseRootTunnel { using RLPReader for bytes; using RLPReader for RLPReader.RLPItem; using Merkle for bytes32; // keccak256(MessageSent(bytes)) bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036; // state sender...
receiveMessage
function receiveMessage(bytes memory inputData) public virtual { bytes memory message = _validateAndExtractMessage(inputData); _processMessageFromChild(message); }
/** * @notice receive message from L2 to L1, validated by proof * @dev This function verifies if the transaction actually happened on child chain * * @param inputData RLP encoded data of the reference tx containing following list of fields * 0 - headerNumber - Checkpoint header block number containing the refere...
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 6261, 6448 ] }
10,329
PolygonMessengerWrapper
contracts/polygon/tunnel/FxBaseRootTunnel.sol
0x1b4bd337b06c2cc939a02d5ee0fe4a33a33e552f
Solidity
FxBaseRootTunnel
abstract contract FxBaseRootTunnel { using RLPReader for bytes; using RLPReader for RLPReader.RLPItem; using Merkle for bytes32; // keccak256(MessageSent(bytes)) bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036; // state sender...
_processMessageFromChild
function _processMessageFromChild(bytes memory message) virtual internal;
/** * @notice Process message received from Child Tunnel * @dev function needs to be implemented to handle message as per requirement * This is called by onStateReceive function. * Since it is called via a system call, any event will not be emitted during its execution. * @param message bytes message that was sent...
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 6821, 6898 ] }
10,330
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 165, 238 ] }
10,331
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 462, 544 ] }
10,332
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 823, 911 ] }
10,333
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1575, 1654 ] }
10,334
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1967, 2069 ] }
10,335
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 259, 445 ] }
10,336
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 723, 864 ] }
10,337
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1162, 1359 ] }
10,338
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1613, 2089 ] }
10,339
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 2560, 2697 ] }
10,340
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 3188, 3471 ] }
10,341
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 3931, 4066 ] }
10,342
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 4546, 4717 ] }
10,343
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Context
abstract contract Context { //function _msgSender() internal view virtual returns (address payable) { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mut...
_msgSender
function _msgSender() internal view virtual returns (address) { return msg.sender; }
//function _msgSender() internal view virtual returns (address payable) {
LineComment
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 108, 211 ] }
10,344
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 606, 1230 ] }
10,345
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 2160, 2562 ] }
10,346
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 3318, 3496 ] }
10,347
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 3721, 3922 ] }
10,348
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 4292, 4523 ] }
10,349
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 4774, 5095 ] }
10,350
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 557, 641 ] }
10,351
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1200, 1353 ] }
10,352
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1503, 1752 ] }
10,353
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = block.timestamp + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 1920, 2151 ] }
10,354
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(block.timestamp > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 2222, 2532 ] }
10,355
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
MiniKenja
contract MiniKenja 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
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 10201, 10235 ] }
10,356
MiniKenja
MiniKenja.sol
0xd0b69d004c37148b0385a5b18374d827c732a3ea
Solidity
MiniKenja
contract MiniKenja 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(!canTrade){ require(sender == owner()); // only owner allowed to trade or add liquidity } if(botWallets[sender] || botWallets[recipient]){ require(botscantrade, "bots arent all...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.9+commit.e5eed63a
Unlicense
ipfs://21c6e19da6d0cffcc20239d7bc434e1013e1c77608ee14971cdca669ce4fac92
{ "func_code_index": [ 18123, 19242 ] }
10,357
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); T...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 268, 659 ] }
10,358
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 865, 981 ] }
10,359
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 401, 853 ] }
10,360
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 1485, 1675 ] }
10,361
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
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 constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 1999, 2144 ] }
10,362
GeBitToken
GeBitToken.sol
0xec0592fe76f1407c8825908690d515a1c264a9b8
Solidity
GeBitToken
contract GeBitToken is StandardToken { string public constant name = "GeBit Token"; string public constant symbol = "GBTT"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 3000000000 * (10 ** uint256(decimals)); /** * @dev Constructor that gives msg.sender all of...
GeBitToken
function GeBitToken() public { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; }
/** * @dev Constructor that gives msg.sender all of existing tokens. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://ea665a728a9b793f28d5f06796800eabd86c9449f8aa6854c89d4c99246a94f7
{ "func_code_index": [ 346, 463 ] }
10,363
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) retur...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); 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.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 267, 496 ] }
10,364
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) retur...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 698, 803 ] }
10,365
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _v...
/** * @title Standard ERC20 token * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); balances[_to] = balances[_to].add(_va...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 376, 866 ] }
10,366
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _v...
/** * @title Standard ERC20 token * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/iss...
/** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 1092, 1622 ] }
10,367
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _v...
/** * @title Standard ERC20 token * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifing the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 1934, 2068 ] }
10,368
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Ownable
contract Ownable { address public owner; address public ownerCandidat; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner....
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 197, 250 ] }
10,369
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Ownable
contract Ownable { address public owner; address public ownerCandidat; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner....
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner { require(newOwner != address(0)); ownerCandidat = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 551, 684 ] }
10,370
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Ownable
contract Ownable { address public owner; address public ownerCandidat; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner....
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
confirmOwnership
function confirmOwnership() onlyOwner { require(msg.sender == ownerCandidat); owner = msg.sender; }
/** * @dev Allows safe change current owner to a newOwner. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 753, 868 ] }
10,371
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
BurnableToken
contract BurnableToken is StandardToken, Ownable { /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public onlyOwner { require(_value > 0); address burner = msg.sender; balances[burner] = balances[b...
/** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */
NatSpecMultiLine
burn
function burn(uint256 _value) public onlyOwner { require(_value > 0); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); Burn(burner, _value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 162, 411 ] }
10,372
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
Crowdsale
function Crowdsale() { 1 METTACOIN = 0.00022 ETH te = 220000000000000; Mon, 10 Nov 2017 00:00:00 GMT art = 1510272000; preICO period is 20 of november - 19 of december riod = 1; // 29 minimum attracted ETH during preICO - 409 ftcap = 440000000000000;//409 * 1 ether; //0.00044 for test maximum num...
/////////////////////////////////
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 705, 1481 ] }
10,373
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
setPreIcoManager
function setPreIcoManager(address _addr) public onlyOwner { require(managerETHaddress == 0x0) ;//ony once anagerETHcandidatAddress = _addr; }
/** * @dev Initially safe sets preICO manager address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 1550, 1728 ] }
10,374
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
confirmManager
function confirmManager() public { require(msg.sender == managerETHcandidatAddress); anagerETHaddress = managerETHcandidatAddress; }
/** * @dev Allows safe confirm of manager address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 1790, 1947 ] }
10,375
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
changeManager
function changeManager(address _addr) public { require(msg.sender == managerETHaddress); anagerETHcandidatAddress = _addr; }
/** * @dev Allows safe changing of manager address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 2020, 2169 ] }
10,376
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
getEndDate1
function getEndDate1() returns (uint){ return start + period * 1 days; }
//test
LineComment
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 2537, 2628 ] }
10,377
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
TransferTokenToIcoContract
function TransferTokenToIcoContract(address ICOcontract) public onlyOwner { quire(now > start + period * 1 days); ken.transfer(ICOcontract, token.balanceOf(this)); ken.transferOwnership(ICOcontract); }
/** * @dev Tokens ans ownership will be transfered from preICO contract to ICO contract after preICO period. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 2838, 3064 ] }
10,378
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
refund
function refund() public { quire(currentPreICObalance < softcap && now > start + period * 1 days); g.sender.transfer(balances[msg.sender]); lances[msg.sender] = 0; }
/** * @dev Investments will be refunded if preICO not hits the softcap. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 3148, 3338 ] }
10,379
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
withdrawManagerBonus
function withdrawManagerBonus() public { if(currentPreICObalance > softcap && managerETHbonus > 0){ managerETHaddress.transfer(managerETHbonus); managerETHbonus = 0; } }
/** * @dev Manager can get his/shes bonus after preICO reaches it's softcap */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 3426, 3653 ] }
10,380
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
withdrawPreIcoFounds
function withdrawPreIcoFounds() public onlyOwner { (currentPreICObalance > softcap) { / send all current ETH from contract to owner int availableToTranser = this.balance-managerETHbonus; wner.transfer(availableToTranser); }
/** * @dev If ICO reached owner can withdrow ETH for ICO comping managment */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 3740, 4000 ] }
10,381
Crowdsale
Crowdsale.sol
0x61f30fd17eb78e9d65bac0ad0ac79f6e9aa51594
Solidity
Crowdsale
contract Crowdsale is Ownable { using SafeMath for uint; // MettaCoin public token = new MettaCoin(); // uint public start; // uint public period; // uint public rate; // uint public softcap; // uint public availableTokensforPreICO; // uint public ...
bytesToAddress
function bytesToAddress(bytes source) internal returns(address) { uint result; uint mul = 1; for(uint i = 20; i > 0; i--) { result += uint8(source[i-1])*mul; mul = mul*256; } return address(result); }
/** * @dev convert bytes to address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://d77ecc433f4e7240bcddf2bc32cdbe20ced7f4fc2e52fec8a12011c73dc8351f
{ "func_code_index": [ 4048, 4325 ] }
10,382
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
usingOraclize
contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; ...
parseInt
function parseInt(string _a) internal returns (uint) { return parseInt(_a, 0); }
// parseInt
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 27456, 27555 ] }
10,383
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
usingOraclize
contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; ...
parseInt
function parseInt(string _a, uint _b) internal returns (uint) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i=0; i<bresult.length; i++){ if ((bresult[i] >= 48)&&(bresult[i] <= 57)){ if (decimals){ if (_b == 0) break; ...
// parseInt(parseFloat*10^_b)
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 27593, 28202 ] }
10,384
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
usingOraclize
contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; ...
copyBytes
function copyBytes(bytes from, uint fromOffset, uint length, bytes to, uint toOffset) internal returns (bytes) { uint minLength = length + toOffset; if (to.length < minLength) { // Buffer too small throw; // Should be a better way? } // NOTE: the offset 32 is added to skip the ...
// the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 39906, 40623 ] }
10,385
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
usingOraclize
contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; ...
safer_ecrecover
function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) { // We do our own memory management here. Solidity uses memory offset // 0x40 to store the current end of memory. We write past it (as // writes are memory extensions), but don't update the offset so ...
// the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license // Duplicate Solidity's ecrecover, but catching the CALL return value
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 40820, 41823 ] }
10,386
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
usingOraclize
contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; ...
ecrecovery
function ecrecovery(bytes32 hash, bytes sig) internal returns (bool, address) { bytes32 r; bytes32 s; uint8 v; if (sig.length != 65) return (false, 0); // The signature format is a compact form of: // {bytes32 r}{bytes32 s}{uint8 v} // Compact means, uint8 is not padded t...
// the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 41945, 43371 ] }
10,387
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
RedEnvelopes
contract RedEnvelopes is usingOraclize { struct RedEnvelope { uint value; uint maxValuePerOpen; string giver; uint balance; mapping (address=>uint) takers; } mapping (string=>RedEnvelope) envelopes; mapping (bytes32=>string) pendingQueries; mapping (stri...
give
function give (string name, uint maxValuePerOpen, string giver) payable { RedEnvelope storage e = envelopes[name]; require(e.value == 0); require(msg.value > 0); e.balance = e.value = msg.value; e.maxValuePerOpen = maxValuePerOpen; e.giver = giver; }
// gas estimation: 105340
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 487, 793 ] }
10,388
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
RedEnvelopes
contract RedEnvelopes is usingOraclize { struct RedEnvelope { uint value; uint maxValuePerOpen; string giver; uint balance; mapping (address=>uint) takers; } mapping (string=>RedEnvelope) envelopes; mapping (bytes32=>string) pendingQueries; mapping (stri...
_authenticate
function _authenticate (string forumId, uint cbGasLimit) payable { require(stringToUint(forumId) < maxAllowedId); require(forumIdToAddr[forumId] == 0); require(msg.value >= oraclize_getPrice("URL", cbGasLimit)); // looks like the page is too broken for oralize's xpath handler // bytes32 query...
// verify that the sender address does belong to a forum user
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 2040, 2940 ] }
10,389
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
RedEnvelopes
contract RedEnvelopes is usingOraclize { struct RedEnvelope { uint value; uint maxValuePerOpen; string giver; uint balance; mapping (address=>uint) takers; } mapping (string=>RedEnvelope) envelopes; mapping (bytes32=>string) pendingQueries; mapping (stri...
__callback
function __callback (bytes32 queryId, string result) { require(msg.sender == oraclize_cbAddress()); string memory forumId = pendingQueries[queryId]; address addr = parseAddr(result); delete pendingQueries[queryId]; forumIdToAddr[forumId] = addr; addrToForumId[addr] = forumId; }...
// gas used by ganache simulation run: 96451
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 2992, 3337 ] }
10,390
RedEnvelopes
RedEnvelopes.sol
0x51563d458c5d736e2cc8d29d6a5957a858bf97f2
Solidity
RedEnvelopes
contract RedEnvelopes is usingOraclize { struct RedEnvelope { uint value; uint maxValuePerOpen; string giver; uint balance; mapping (address=>uint) takers; } mapping (string=>RedEnvelope) envelopes; mapping (bytes32=>string) pendingQueries; mapping (stri...
open
function open (string envelopeName) returns (uint value) { string forumId = addrToForumId[msg.sender]; require(bytes(forumId).length > 0); RedEnvelope e = envelopes[envelopeName]; require(e.balance > 0); require(e.takers[msg.sender] == 0); value = uint(keccak256(envelopeName, msg...
// for now we don't use real randomness // gas estimation: 57813 x 4 gwei = 0.0002356 eth * 1132 usd/eth = 0.27 usd
LineComment
v0.4.19+commit.c4cbbb05
bzzr://e84f4ed5b39529d230fd71170e200dd1f8474a781fabcaa904f63577fb5e5cc2
{ "func_code_index": [ 3464, 4026 ] }
10,391
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
_transfer
function _transfer(address _from, address _to, uint _value) internal { require(!safeguard); // 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]....
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 1725, 2723 ] }
10,392
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
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.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 2965, 3089 ] }
10,393
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(!safeguard); require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); ...
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 3404, 3796 ] }
10,394
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { require(!safeguard); allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 4096, 4326 ] }
10,395
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { require(!safeguard); tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); r...
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 4760, 5182 ] }
10,396
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
burn
function burn(uint256 _value) public returns (bool success) { require(!safeguard); require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); // Subtract from the sender totalSupply = totalSupply.sub(_value); ...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 5384, 5867 ] }
10,397
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; bool public...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(!safeguard); require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] = balanceOf[_fr...
/** * 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.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 6161, 6917 ] }
10,398
PAYTOKEN
PAYTOKEN.sol
0xf987a949e3b7f2bb8528332ac527782ba6f42b4b
Solidity
PAYTOKEN
contract PAYTOKEN is owned, TokenERC20 { using SafeMath for uint256; /**********************************/ /* Code for the ERC20 PAYTOKEN */ /**********************************/ // Public variables of the token string private tokenName = "PAYTOKEN"; string ...
//*******************************************************// //------------- ADVANCED TOKEN STARTS HERE -------------// //*******************************************************//
LineComment
_transfer
function _transfer(address _from, address _to, uint _value) internal { require(!safeguard); re (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead re (balanceOf[_from] >= _value); // Check if the sender has enough re (balanceOf[_to].add(_value) >= bal...
/* Internal transfer, only can be called by this contract */
Comment
v0.4.25+commit.59dbf8f1
bzzr://b43ea8b9c688ff831e3e0ab912b8224284f8ff3b5a0f866a67d7859c6dbdc811
{ "func_code_index": [ 951, 1784 ] }
10,399