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
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
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.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 2543, 2655 ] }
600
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` 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.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 2930, 3231 ] }
601
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 3495, 3671 ] }
602
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens 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.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 4065, 4417 ] }
603
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply Burn(msg.sender, _val...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 4587, 4961 ] }
604
FinallyCoinConnects
FinallyCoinConnects.sol
0x293893ed96ae04dc93323f8ac695e6110ee4901a
Solidity
FinallyCoinConnects
contract FinallyCoinConnects { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; //小数位 // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances ...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
None
bzzr://95f71c2409cd6186f85a69a6fb50ab8a92dce6d4f891b199bb7f74ca161bd5c1
{ "func_code_index": [ 5219, 5830 ] }
605
CosmoArtPower
/Users/ivannikov/work/snake-jungle/4-cosmoarts/cosmoarts/contracts/contracts/CosmoArtPowerERC20.sol
0x83a7cd977835d80502cb998e1216f01632f264de
Solidity
IERC20Burnable
interface IERC20Burnable { function burn(uint256 amount) external returns (bool); function burnFrom(address account, uint256 amount) external returns (bool); // ERC20 function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); func...
totalSupply
function totalSupply() external view returns (uint256);
// ERC20
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 179, 238 ] }
606
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
raskaToken
function raskaToken() public { symbol = "RKC"; name = "raska Token"; decimals = 18; _totalSupply = 500000000000000000000000000; balances[0xd96b07D42cbbd5442c6656232FFB030eaF6AbcF9] = _totalSupply; Transfer(address(0), 0xd96b07D42cbbd5442c6656232FFB030eaF6AbcF9, _totalSupply); }
// ------------------------------------------------------------------------ // Constructor // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 457, 799 ] }
607
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 987, 1108 ] }
608
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 1328, 1457 ] }
609
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 1801, 2078 ] }
610
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 2586, 2794 ] }
611
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(from, to, tokens); return...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 3325, 3683 ] }
612
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 3966, 4122 ] }
613
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 4477, 4794 ] }
614
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 4986, 5045 ] }
615
raskaToken
raskaToken.sol
0xce95896d65da8fed6e555adf6a00a50d83d9945b
Solidity
raskaToken
contract raskaToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // --------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
None
bzzr://4f432d89307e46b7e6b16aab5631844927fb26dc2e568fb3d342a46374e76d3f
{ "func_code_index": [ 5278, 5467 ] }
616
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 95, 304 ] }
617
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 394, 694 ] }
618
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 814, 942 ] }
619
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 1012, 1158 ] }
620
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** ...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 211, 307 ] }
621
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** ...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return 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
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 475, 835 ] }
622
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** ...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 1051, 1163 ] }
623
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/issues/20 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = ...
/** * @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
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 410, 960 ] }
624
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/issues/20 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { // avoid race condition require((_value == 0) || (allowed[msg.sender][_spender] == 0), "reset allowance to 0 before change it's value."); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); ...
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 1596, 1964 ] }
625
HbbToken_StandardToken_U
HbbToken_StandardToken_U.sol
0x910622aed8ff89cb237efeb4656ea93bc4fc7326
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...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/issues/20 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance( address _owner, address _spender ) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://5d9e9bf73d4ac07b902524c41be470d64e00cafb48c778114a71b00753bc63f9
{ "func_code_index": [ 2295, 2493 ] }
626
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 710, 891 ] }
627
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 983, 1100 ] }
628
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 89, 266 ] }
629
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 350, 630 ] }
630
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 744, 860 ] }
631
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 924, 1054 ] }
632
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 295, 391 ] }
633
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; }
/** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 602, 713 ] }
634
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowed[owner][spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 1047, 1183 ] }
635
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
transfer
function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; }
/** * @dev Transfer token for a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 1349, 1494 ] }
636
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
approve
function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race...
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 2136, 2385 ] }
637
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint256 value) public returns (bool) { _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); emit Approval(from, msg.sender, _allowed[from][msg.sender]); return true; }
/** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address...
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 2853, 3157 ] }
638
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approva...
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 3667, 3995 ] }
639
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; }
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approva...
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 4510, 4848 ] }
640
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
_transfer
function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
/** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 5065, 5332 ] }
641
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
_mint
function _mint(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); }
/** * @dev Internal function that mints an amount of the token and assigns it to * an account. This encapsulates the modification of balances such that the * proper events are emitted. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 5679, 5953 ] }
642
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
_burn
function _burn(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), 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.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 6182, 6456 ] }
643
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation em...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 value) internal { _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(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.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 6850, 7114 ] }
644
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
changeEndOfIco
function changeEndOfIco (uint256 _date) public onlyOwner returns (bool) { endOfIco = _date; }
/** * @dev in timestamp */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 1629, 1741 ] }
645
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
isFreezed
function isFreezed (address _holder) public view returns(bool, uint) { bool freezed = false; uint i = 0; while (i < groups) { uint index = indexOf(_holder, lockup[i].holders); if (index == 0) { if (checkZeroIndex(_holder, i)) { freezed = true; ...
/** * @param _holder address of token holder to check * @return bool - status of freezing and group */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 2139, 2919 ] }
646
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
indexOf
function indexOf (address element, address[] memory at) internal pure returns (uint) { for (uint i=0; i < at.length; i++) { if (at[i] == element) return i; } return 0; }
/** * @dev internal usage to get index of holder in group * @param element address of token holder to check * @param at array of addresses that is group of holders * @return index of holder at array */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 3143, 3362 ] }
647
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
checkZeroIndex
function checkZeroIndex (address _holder, uint lockGroup) internal view returns (bool) { if (lockup[lockGroup].holders[0] == _holder) return true; else return false; }
/** * @dev internal usage to check that 0 is 0 index or it means that address not exists * @param _holder address of token holder to check * @param lockGroup id of group to check address existance in it * @return true if holder at zero index at group false if holder doesn't exists */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 3669, 3905 ] }
648
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
getAvailableAmount
function getAvailableAmount () internal view returns (uint256) { uint256 monthes = getFullMonthAfterIco(); uint256 balance = balanceOf(msg.sender); uint256 monthShare = balance.div(unlockSchema); uint256 available = monthShare * monthes; return available; }
/** * @dev returns available tokens amount after linear release for msg.sender */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 4007, 4319 ] }
649
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
getFullMonthAfterIco
function getFullMonthAfterIco () internal view returns (uint256) { uint256 currentTime = block.timestamp; if (currentTime < endOfIco) return 0; else { uint256 delta = currentTime - endOfIco; uint256 step = 2592000; if (delta > step) { uint256 times = delta...
/** * @dev calculate how much month have gone after end of ICO */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 4409, 4903 ] }
650
SingleToken
SingleToken.sol
0x61ec1a25f763eef9823773c7bdb9d7c644fb3503
Solidity
Freeze
contract Freeze is Ownable, ERC20 { using SafeMath for uint256; uint256 public endOfIco; uint256 public unlockSchema = 12; struct Group { address[] holders; uint until; } /** * @dev number of groups */ uint public groups; address[] ...
setGroup
function setGroup (address[] memory _holders, uint _until) public onlyOwner returns (bool) { lockup[groups].holders = _holders; lockup[groups].until = _until; groups++; return true; }
/** * @dev Will set group of addresses that will be under lock. When locked address can't do some actions with token * @param _holders array of addresses to lock * @param _until timestamp until that lock up will last * @return bool result of operation */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
bzzr://a27669bf225afa54835485aad824cc7185aa70dc94f9de46bf4867be39947903
{ "func_code_index": [ 5190, 5431 ] }
651
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 408, 500 ] }
652
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _transferOwnership(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.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1059, 1167 ] }
653
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1317, 1523 ] }
654
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1678, 1874 ] }
655
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 94, 154 ] }
656
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 237, 310 ] }
657
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 534, 616 ] }
658
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 895, 983 ] }
659
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1647, 1726 ] }
660
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2039, 2175 ] }
661
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 100, 159 ] }
662
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 226, 287 ] }
663
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 363, 418 ] }
664
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 776, 881 ] }
665
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 995, 1104 ] }
666
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1738, 1836 ] }
667
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1896, 2009 ] }
668
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2067, 2199 ] }
669
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2407, 2587 ] }
670
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2645, 2801 ] }
671
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2943, 3117 ] }
672
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 3594, 4091 ] }
673
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 4495, 4715 ] }
674
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, c...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 5213, 5631 ] }
675
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 6116, 6854 ] }
676
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 7136, 7540 ] }
677
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 7868, 8464 ] }
678
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 8897, 9282 ] }
679
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - wh...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 9877, 10007 ] }
680
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 10606, 10735 ] }
681
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 161, 388 ] }
682
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 536, 735 ] }
683
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 885, 1393 ] }
684
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1544, 1744 ] }
685
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 1905, 2105 ] }
686
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2347, 2450 ] }
687
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @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.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 2728, 2831 ] }
688
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 3085, 3188 ] }
689
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 3484, 3587 ] }
690
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 (consu...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 4049, 4152 ] }
691
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 4626, 4871 ] }
692
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting 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 ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 5364, 5608 ] }
693
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 6266, 6510 ] }
694
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
GODZILLAKONG
contract GODZILLAKONG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address private marketingWallet; addre...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; lastLpBurnTime = block.timestamp; }
// once enabled, can never be turned off
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 4991, 5151 ] }
695
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
GODZILLAKONG
contract GODZILLAKONG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address private marketingWallet; addre...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
removeLimits
function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 5198, 5324 ] }
696
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
GODZILLAKONG
contract GODZILLAKONG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address private marketingWallet; addre...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool) { transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 5380, 5520 ] }
697
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
GODZILLAKONG
contract GODZILLAKONG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address private marketingWallet; addre...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { require( newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply." ); require( newAmount <= (totalSupply() * 5) / 1000, "Sw...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 5585, 6087 ] }
698
GODZILLAKONG
GODZILLAKONG.sol
0x0ace360427868626878d3662b8710a8c1e534aa7
Solidity
GODZILLAKONG
contract GODZILLAKONG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address private marketingWallet; addre...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://2eef8db9a1a371d6a5181fc02f38c955d95fb6c4d14805ddf88770095bfc729c
{ "func_code_index": [ 6900, 7005 ] }
699