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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | 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.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
1647,
1726
]
} | 9,407 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | 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.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
2039,
2141
]
} | 9,408 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = msg.sender;
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
484,
568
]
} | 9,409 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = msg.sender;
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
1124,
1277
]
} | 9,410 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = msg.sender;
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
1427,
1676
]
} | 9,411 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Vault | contract Vault is Ownable, ReentrancyGuard {
using SafeMath for uint;
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
//==================== Contract Variables =======================
// Contract variables must be changed befor... | /**
* Accounting:
* - the smart contract maintains a ledger of token balances which changes upon actions affecting
* this smart contract's token balance.
*
* - it allows owner to withdraw any extra amount of any tokens that have not been recorded,
* i.e, - any tokens that are ... | NatSpecMultiLine | getNumberOfHolders | function getNumberOfHolders() public view returns (uint) {
return holders.length();
}
| // view functon to get number of stakers | LineComment | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
2558,
2662
]
} | 9,412 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Vault | contract Vault is Ownable, ReentrancyGuard {
using SafeMath for uint;
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
//==================== Contract Variables =======================
// Contract variables must be changed befor... | /**
* Accounting:
* - the smart contract maintains a ledger of token balances which changes upon actions affecting
* this smart contract's token balance.
*
* - it allows owner to withdraw any extra amount of any tokens that have not been recorded,
* i.e, - any tokens that are ... | NatSpecMultiLine | getDepositorsList | function getDepositorsList(uint startIndex, uint endIndex)
public
view
returns (address[] memory stakers,
uint[] memory stakingTimestamps,
uint[] memory lastClaimedTimeStamps,
uint[] memory stakedTokens) {
require (startIndex < endIndex);
uint length = endIndex.sub(... | // -----------------
// view function to get depositors list | LineComment | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
5446,
6586
]
} | 9,413 |
Vault | Vault.sol | 0x8ce610ec56ce3ad3678c426f0dfc965568db6ddc | Solidity | Vault | contract Vault is Ownable, ReentrancyGuard {
using SafeMath for uint;
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
//==================== Contract Variables =======================
// Contract variables must be changed befor... | /**
* Accounting:
* - the smart contract maintains a ledger of token balances which changes upon actions affecting
* this smart contract's token balance.
*
* - it allows owner to withdraw any extra amount of any tokens that have not been recorded,
* i.e, - any tokens that are ... | NatSpecMultiLine | emergencyWithdraw | function emergencyWithdraw(uint amount) external noContractsAllowed nonReentrant payable {
require(amount > 0, "invalid amount!");
require(amount <= depositTokenBalance[msg.sender], "Cannot withdraw more than deposited!");
require(block.timestamp.sub(depositTime[msg.sender]) > LOCKUP_DURATION, "You recen... | // emergency withdraw without interacting with uniswap | LineComment | v0.6.11+commit.5ef660b1 | BSD-3-Clause | ipfs://1856e7c256ec8ffeca9a098693359e57ee947766cbac10a43db675a174fefa7f | {
"func_code_index": [
18471,
20865
]
} | 9,414 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | Module | interface Module {
/**
* @dev Inits a module for a wallet by e.g. setting some wallet specific parameters in storage.
* @param _wallet The wallet.
*/
function init(BaseWallet _wallet) external;
/**
* @dev Adds a module to a wallet.
* @param _wallet The target wallet.
... | /**
* @title Module
* @dev Interface for a module.
* A module MUST implement the addModule() method to ensure that a wallet with at least one module
* can never end up in a "frozen" state.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | init | function init(BaseWallet _wallet) external;
| /**
* @dev Inits a module for a wallet by e.g. setting some wallet specific parameters in storage.
* @param _wallet The wallet.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
176,
224
]
} | 9,415 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | Module | interface Module {
/**
* @dev Inits a module for a wallet by e.g. setting some wallet specific parameters in storage.
* @param _wallet The wallet.
*/
function init(BaseWallet _wallet) external;
/**
* @dev Adds a module to a wallet.
* @param _wallet The target wallet.
... | /**
* @title Module
* @dev Interface for a module.
* A module MUST implement the addModule() method to ensure that a wallet with at least one module
* can never end up in a "frozen" state.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | addModule | function addModule(BaseWallet _wallet, Module _module) external;
| /**
* @dev Adds a module to a wallet.
* @param _wallet The target wallet.
* @param _module The modules to authorise.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
376,
445
]
} | 9,416 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | Module | interface Module {
/**
* @dev Inits a module for a wallet by e.g. setting some wallet specific parameters in storage.
* @param _wallet The wallet.
*/
function init(BaseWallet _wallet) external;
/**
* @dev Adds a module to a wallet.
* @param _wallet The target wallet.
... | /**
* @title Module
* @dev Interface for a module.
* A module MUST implement the addModule() method to ensure that a wallet with at least one module
* can never end up in a "frozen" state.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | recoverToken | function recoverToken(address _token) external;
| /**
* @dev Utility method to recover any ERC20 token that was sent to the
* module by mistake.
* @param _token The token to recover.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
609,
661
]
} | 9,417 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | init | function init(address _owner, address[] calldata _modules) external {
require(owner == address(0) && modules == 0, "BW: wallet already initialised");
require(_modules.length > 0, "BW: construction requires at least 1 module");
owner = _owner;
modules = _modules.length;
for (uint256 i = 0; i < _... | /**
* @dev Inits the wallet by setting the owner and authorising a list of modules.
* @param _owner The owner.
* @param _modules The modules to authorise.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
1129,
1866
]
} | 9,418 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | authoriseModule | function authoriseModule(address _module, bool _value) external moduleOnly {
if (authorised[_module] != _value) {
emit AuthorisedModule(_module, _value);
if (_value == true) {
modules += 1;
authorised[_module] = true;
Module(_module).init(this);
} e... | /**
* @dev Enables/Disables a module.
* @param _module The target module.
* @param _value Set to true to authorise the module.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
2028,
2578
]
} | 9,419 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | enableStaticCall | function enableStaticCall(address _module, bytes4 _method) external moduleOnly {
require(authorised[_module], "BW: must be an authorised module for static call");
enabled[_method] = _module;
emit EnabledStaticCall(_module, _method);
}
| /**
* @dev Enables a static method by specifying the target module to which the call
* must be delegated.
* @param _module The target module.
* @param _method The static method signature.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
2802,
3073
]
} | 9,420 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | setOwner | function setOwner(address _newOwner) external moduleOnly {
require(_newOwner != address(0), "BW: address cannot be null");
owner = _newOwner;
emit OwnerChanged(_newOwner);
}
| /**
* @dev Sets a new owner for the wallet.
* @param _newOwner The new owner.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
3180,
3390
]
} | 9,421 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | invoke | function invoke(address _target, uint _value, bytes calldata _data) external moduleOnly returns (bytes memory _result) {
bool success;
// solium-disable-next-line security/no-call-value
(success, _result) = _target.call.value(_value)(_data);
if (!success) {
// solium-disable-next-line secur... | /**
* @dev Performs a generic transaction.
* @param _target The address for the transaction.
* @param _value The value of the transaction.
* @param _data The data of the transaction.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
3614,
4194
]
} | 9,422 |
BaseWallet | BaseWallet.sol | 0xb6d64221451edbac7736d4c3da7fc827457dec03 | Solidity | BaseWallet | contract BaseWallet {
// The implementation of the proxy
address public implementation;
// The owner
address public owner;
// The authorised modules
mapping (address => bool) public authorised;
// The enabled static calls
mapping (bytes4 => address) public enabled;
// The ... | /**
* @title BaseWallet
* @dev Simple modular wallet that authorises modules to call its invoke() method.
* @author Julien Niset - <julien@argent.xyz>
*/ | NatSpecMultiLine | function() external payable {
if (msg.data.length > 0) {
address module = enabled[msg.sig];
if (module == address(0)) {
emit Received(msg.value, msg.sender, msg.data);
} else {
require(authorised[module], "BW: must be an authorised module for static call");
... | /**
* @dev This method makes it possible for the wallet to comply to interfaces expecting the wallet to
* implement specific static methods. It delegates the static call to a target contract if the data corresponds
* to an enabled method, or logs the call otherwise.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://b006dfbc2c336045fc14f05576b37e93870a076202db4360484f2efd240c1851 | {
"func_code_index": [
4496,
5346
]
} | 9,423 | |
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | EesToken | function EesToken(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
_totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balances[owner] = _totalSupply; // Give the creator all initial tokens
... | // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
485,
1066
]
} | 9,424 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
1254,
1375
]
} | 9,425 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account `tokenOwner`
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
1597,
1726
]
} | 9,426 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(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.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
2072,
2339
]
} | 9,427 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | 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 do... | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
2851,
3059
]
} | 9,428 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
Transfer(from, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// 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 transfe... | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
3598,
3941
]
} | 9,429 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | 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.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
4224,
4380
]
} | 9,430 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | 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.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
4743,
5060
]
} | 9,431 | |||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
5252,
5311
]
} | 9,432 | ||||
EesToken | EesToken.sol | 0x626a14ec8bb0d92692ef704f19968c20727dede1 | Solidity | EesToken | contract EesToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals = 18;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------... | 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.19+commit.c4cbbb05 | bzzr://80b0d570ccf7886d7732cac2d4f26c90e0205f69ed962469d1825d16aa6fd985 | {
"func_code_index": [
5544,
5733
]
} | 9,433 | |||
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | 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.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
89,
266
]
} | 9,434 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | 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.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
350,
630
]
} | 9,435 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | 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.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
744,
860
]
} | 9,436 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | 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.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
924,
1054
]
} | 9,437 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
261,
321
]
} | 9,438 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
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.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
640,
821
]
} | 9,439 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
5295,
5415
]
} | 9,440 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
5486,
5582
]
} | 9,441 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public erc20Allowed returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
require(_airdropUnlocked(_to));
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value)... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
5750,
6178
]
} | 9,442 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public erc20Allowed returns (bool) {
return _transferFrom(msg.sender, _from, _to, _value);
}
| /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
6470,
6647
]
} | 9,443 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public erc20Allowed returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
7938,
8162
]
} | 9,444 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | 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 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
8500,
8639
]
} | 9,445 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint256 _addedValue) public erc20Allowed returns (bool) {
allowed[msg.sender][_spender] = (allowed[msg.sender][_spender].add(_addedValue));
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
9124,
9427
]
} | 9,446 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | decreaseApproval | function decreaseApproval(address _spender, uint256 _subtractedValue) public erc20Allowed returns (bool) {
uint256 oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtr... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
9917,
10391
]
} | 9,447 | |
SKYFToken | SKYFToken.sol | 0x5dd0815a4cf119ad91ba045bbbf879f3f7de3c68 | Solidity | SKYFToken | contract SKYFToken is Ownable {
using SafeMath for uint256;
enum State {Active, Finalized}
State public state = State.Active;
/**
* @dev ERC20 descriptor variables
*/
string public constant name = "SKYFchain";
string public constant symbol = "SKYFT";
uint8 public... | /**
* @title SKYFChain Tokens
* @dev SKYFChain Token, ERC20 implementation, contract based on Zeppelin contracts:
* Ownable, BasicToken, StandardToken, ERC20Basic, Burnable
*/ | NatSpecMultiLine | burn | function burn(uint256 _value) public erc20Allowed {
_burn(msg.sender, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://aba4fccf134a19c1b986b116186415ec4946963de5ba9fdb6225959805341c85 | {
"func_code_index": [
10515,
10614
]
} | 9,448 | |
babyShib | babyShib.sol | 0x9701fe45f219f38c55f39872c84002202bcc512a | Solidity | Context | contract Context {
constructor() internal {}
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns(address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns(address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://e30438a0f9c5bdbcd3f2dd4b74fc6bc0aa270a72ef84595f8847ce05891bb513 | {
"func_code_index": [
105,
207
]
} | 9,449 | ||
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
399,
491
]
} | 9,450 |
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
1050,
1149
]
} | 9,451 |
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
1299,
1496
]
} | 9,452 |
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | PilotPunks | contract PilotPunks is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.000000000000000001 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 200;
uint256 pub... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
769,
874
]
} | 9,453 | ||
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | PilotPunks | contract PilotPunks is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.000000000000000001 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 200;
uint256 pub... | mint | function mint(uint256 _mintAmount) public payable {
require(!paused, "the contract is paused");
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
require(supply + _mintAmount <= maxSupply... | // public | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
890,
1753
]
} | 9,454 | ||
PilotPunks | @openzeppelin/contracts/access/Ownable.sol | 0xf4dba4e7b646500b69101619a2af5ed3b51a3d1d | Solidity | PilotPunks | contract PilotPunks is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.000000000000000001 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 200;
uint256 pub... | reveal | function reveal() public onlyOwner {
revealed = true;
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://179c887c92d5976508b56a7c38d6edbc8a84e49b3586a76ba7168d93111012a8 | {
"func_code_index": [
2890,
2958
]
} | 9,455 | ||
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | buyBag | function buyBag(uint256 _bagIndex) external payable
{
// Make sure that the bag exists
require(_bagIndex < bags.length);
// Reference the bag data and bag type data
Bag storage bag = bags[_bagIndex];
BagType storage bagType = bagTypes[bag.bagTypeIndex];
// Make sure th... | ////////////////////////////////////
////// PLAYER FUNCTIONS | NatSpecSingleLine | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
1675,
4814
]
} | 9,456 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | CryptoSurprise | function CryptoSurprise() public
{
owner = msg.sender;
bagTypes.push(BagType({
name: "Blue",
startPrice: 0.04 ether,
priceMultiplierPerBuy: 1300000, // 130%
startCommission: 850000, // 85%
commissionIncrementPerBuy: 5000, // 0... | // Constructor function | LineComment | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
5208,
7873
]
} | 9,457 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | transferOwnership | function transferOwnership(address _newOwner) external
{
require(msg.sender == owner);
owner = _newOwner;
}
| // Function that allows the current owner to transfer ownership | LineComment | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
7949,
8089
]
} | 9,458 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | function () payable external
{
require(msg.sender == owner);
}
| // Only the owner can deposit ETH by sending it directly to the contract | LineComment | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
8174,
8260
]
} | 9,459 | ||
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | withdrawEther | function withdrawEther(uint256 amount) external
{
require(msg.sender == owner);
owner.transfer(amount);
}
| // Function that allows the current owner to withdraw any amount
// of ETH from the contract | LineComment | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
8370,
8508
]
} | 9,460 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | _transferBag | function _transferBag(address _from, address _to, uint256 _bagIndex) internal
{
// Make sure that the bag exists
require(_bagIndex < bags.length);
// Bag may not be transferred before it has been bought x times
require(bags[_bagIndex].amountOfBuys >= BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS);
... | ////////////////////////////////////
////// INTERNAL FUNCTIONS | NatSpecSingleLine | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
9793,
10542
]
} | 9,461 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | CryptoSurprise | contract CryptoSurprise
{
using SetLibrary for SetLibrary.Set;
////////////////////////////////////
////// CONSTANTS
uint256 constant public BAG_TRANSFER_FEE = 0.05 ether;
uint256 constant public BAG_TRANSFER_MINIMUM_AMOUNT_OF_BUYS = 4;
////////////////////////////... | ////////////////////////////////////
////// CRYPTO SURPRISE
////// https://cryptosurprise.me
//////////////////////////////////// | NatSpecSingleLine | amountOfBags | function amountOfBags() external view returns (uint256)
{
return bags.length;
}
| ////////////////////////////////////
////// VIEW FUNCTIONS FOR USER INTERFACE | NatSpecSingleLine | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
10649,
10752
]
} | 9,462 | |
CryptoSurprise | CryptoSurprise.sol | 0xfc88a9f06f5fe0de2dac95c5fada7a8b3b3d610d | Solidity | SetLibrary | library SetLibrary
{
struct ArrayIndexAndExistsFlag
{
uint256 index;
bool exists;
}
struct Set
{
mapping(uint256 => ArrayIndexAndExistsFlag) valuesMapping;
uint256[] values;
}
function add(Set storage self, uint256 value) public returns (bool added... | add | function add(Set storage self, address value) public returns (bool added) { return add(self, uint256(value)); }
| // Also accept address and bytes32 types, so the user doesn't have to cast. | LineComment | v0.4.20+commit.3155dd80 | bzzr://344941c93384be2385ef37755c9aaa5684448e3fd92bb21795385eee1d2b7c23 | {
"func_code_index": [
2931,
3047
]
} | 9,463 | |||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
94,
154
]
} | 9,464 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
238,
311
]
} | 9,465 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
536,
618
]
} | 9,466 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
898,
986
]
} | 9,467 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1651,
1730
]
} | 9,468 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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);
/... | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2044,
2180
]
} | 9,469 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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... | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
100,
159
]
} | 9,470 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
227,
288
]
} | 9,471 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | 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... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
365,
420
]
} | 9,472 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
817,
922
]
} | 9,473 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1037,
1146
]
} | 9,474 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1781,
1879
]
} | 9,475 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1940,
2053
]
} | 9,476 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2112,
2244
]
} | 9,477 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2453,
2633
]
} | 9,478 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2692,
2848
]
} | 9,479 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2991,
3165
]
} | 9,480 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;... | /**
* @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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
3643,
4003
]
} | 9,481 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
4408,
4631
]
} | 9,482 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5130,
5404
]
} | 9,483 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _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 tokens `amount` from `sender` to `recipient`.
*
* This is 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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5890,
6470
]
} | 9,484 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Trans... | /** @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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
6753,
7138
]
} | 9,485 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _... | /**
* @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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
7467,
7892
]
} | 9,486 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _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(ow... | /**
* @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.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
8326,
8712
]
} | 9,487 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _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 to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
9311,
9441
]
} | 9,488 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
259,
446
]
} | 9,489 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
725,
866
]
} | 9,490 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1165,
1363
]
} | 9,491 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1618,
2096
]
} | 9,492 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
2568,
2705
]
} | 9,493 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
3197,
3481
]
} | 9,494 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
3942,
4077
]
} | 9,495 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
4558,
4729
]
} | 9,496 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
491,
575
]
} | 9,497 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1135,
1288
]
} | 9,498 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1439,
1688
]
} | 9,499 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | mul | function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
| /**
* @dev Multiplies two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
235,
544
]
} | 9,500 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | div | function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
| /**
* @dev Division of two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
635,
900
]
} | 9,501 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | sub | function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
| /**
* @dev Subtracts two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
989,
1170
]
} | 9,502 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | add | function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
| /**
* @dev Adds two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1254,
1435
]
} | 9,503 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | abs | function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
| /**
* @dev Converts to absolute value, and fails on overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
1521,
1655
]
} | 9,504 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | GundamCat | contract GundamCat is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmo... | enableTrading | function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
launchedAt = block.number;
}
| // once enabled, can never be turned off | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5161,
5314
]
} | 9,505 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | GundamCat | contract GundamCat is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmo... | removeLimits | function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
return true;
}
| // remove limits after token is stable | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5362,
5487
]
} | 9,506 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.