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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ovatel | ovatel.sol | 0x22581e0198ed6ea34d438148a106903f5fb846c0 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1843f3b3f57f4c854536dd3b78bc5e57d051cfa15f97a983dd71a0ac4c79a2d0 | {
"func_code_index": [
1326,
1407
]
} | 9,500 | |||
ovatel | ovatel.sol | 0x22581e0198ed6ea34d438148a106903f5fb846c0 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1843f3b3f57f4c854536dd3b78bc5e57d051cfa15f97a983dd71a0ac4c79a2d0 | {
"func_code_index": [
1615,
1712
]
} | 9,501 | |||
ovatel | ovatel.sol | 0x22581e0198ed6ea34d438148a106903f5fb846c0 | Solidity | ovatel | contract ovatel is StandardToken {
function () {
throw;
}
/* Public variables of the token */
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
function ovate... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://1843f3b3f57f4c854536dd3b78bc5e57d051cfa15f97a983dd71a0ac4c79a2d0 | {
"func_code_index": [
577,
1382
]
} | 9,502 | |||
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/IERC20Detailed.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | IERC20Detailed | interface IERC20Detailed {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() external view returns (string mem... | /**
* @dev Interface for commonly used additional ERC20 interfaces
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
92,
151
]
} | 9,503 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/IERC20Detailed.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | IERC20Detailed | interface IERC20Detailed {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() external view returns (string mem... | /**
* @dev Interface for commonly used additional ERC20 interfaces
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
265,
326
]
} | 9,504 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/IERC20Detailed.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | IERC20Detailed | interface IERC20Detailed {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() external view returns (string mem... | /**
* @dev Interface for commonly used additional ERC20 interfaces
*/ | NatSpecMultiLine | decimals | function decimals() external view returns (uint8);
| /**
* @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.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
916,
971
]
} | 9,505 |
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
60,
124
]
} | 9,506 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
232,
309
]
} | 9,507 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
546,
623
]
} | 9,508 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
946,
1042
]
} | 9,509 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
1326,
1407
]
} | 9,510 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
1615,
1712
]
} | 9,511 | |||
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Bitscoin | contract Bitscoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custom... | //name this contract whatever you'd like | LineComment | Bitscoin | function Bitscoin(
) {
balances[msg.sender] = 2000000000000; // Give the creator all initial tokens (100000 for example)
totalSupply = 20000000000000; // Update total supply (100000 for example)
name = "Bitscoin"; // Set the name... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
1157,
1714
]
} | 9,512 | |
Bitscoin | Bitscoin.sol | 0x9388f54fa978aa9e24395a8b69033304eccea4df | Solidity | Bitscoin | contract Bitscoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custom... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.24-nightly.2018.5.16+commit.7f965c86 | bzzr://37ded678c1b66314f2a1e61d1c00ff32e9b5d0d8ad2b93a4f7c8549dbb917568 | {
"func_code_index": [
1775,
2580
]
} | 9,513 | |
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
75,
139
]
} | 9,514 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
247,
324
]
} | 9,515 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
561,
638
]
} | 9,516 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
965,
1061
]
} | 9,517 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
1345,
1426
]
} | 9,518 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | Token | contract Token is owned {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance)... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
1634,
1731
]
} | 9,519 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | StandardToken | contract StandardToken is Token {
string messageString = "[ Welcome to the «ZENITH | Tokens Ttansfer Adaptation» Project 0xbt ]";
function transfer(address _to, uint _value) returns (bool) {
//Default assumes totalSupply can't be over max (2^256 - 1).
if (balances[msg.sender] >= _value && ... | transferAndData | function transferAndData(address _to, uint _value, string _data) returns (bool) {
//Default assumes totalSupply can't be over max (2^256 - 1).
if (balances[msg.sender] >= _value && balances[_to] + _value >= balances[_to]) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Tr... | // Transfer token with data and signature | LineComment | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
629,
1087
]
} | 9,520 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | UnlimitedAllowanceToken | contract UnlimitedAllowanceToken is StandardToken {
uint constant MAX_UINT = 2**256 - 1;
/// @dev ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance.
/// @param _from Address to transfer from.
/// @param _to Address to transfer to.
/// @par... | transferFrom | function transferFrom(address _from, address _to, uint _value)
public
returns (bool)
{
uint allowance = allowed[_from][msg.sender];
if (balances[_from] >= _value
&& allowance >= _value
&& balances[_to] + _value >= balances[_to]
) {
balances[_to] += _value;
b... | /// @dev ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance.
/// @param _from Address to transfer from.
/// @param _to Address to transfer to.
/// @param _value Amount to transfer.
/// @return Success of transfer. | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
389,
1022
]
} | 9,521 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | ZENITH | contract ZENITH is UnlimitedAllowanceToken {
uint8 constant public decimals = 6;
uint public totalSupply = 270000000000000;
string constant public name = "ZENITH Protocol";
string constant public symbol = "ZENITH";
string messageString = "[ Welcome to the «ZENITH | Tokens Ttansfer Adaptation»... | TransferTokenData | function TransferTokenData(address _token, address[] addresses, uint amount, string _data) public {
ZENITH token = ZENITH(_token);
for(uint i = 0; i < addresses.length; i++) {
require(token.transferFrom(msg.sender, addresses[i], amount));
}
| // Transfer any ERC token with data and signature / or multi transfer with data and signature
//remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf. | LineComment | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
651,
923
]
} | 9,522 | |||
ZENITH | ZENITH.sol | 0x8c1ec84943cf6d70e2c92ec81f1cbc320d5cd2a8 | Solidity | ZENITH | contract ZENITH is UnlimitedAllowanceToken {
uint8 constant public decimals = 6;
uint public totalSupply = 270000000000000;
string constant public name = "ZENITH Protocol";
string constant public symbol = "ZENITH";
string messageString = "[ Welcome to the «ZENITH | Tokens Ttansfer Adaptation»... | SendEthData | function SendEthData(address[] addresses, string _data) public payable {
uint256 amount = msg.value / addresses.length;
for(uint i = 0; i < addresses.length; i++) {
addresses[i].transfer(amount);
}
| // Transfer Ether with data and signature / or multi transfer with data and signature | LineComment | v0.4.13+commit.fb4cb1a | bzzr://3fef1118bcc9af246a0f13381672d41489ced4ac658114345e42522f38769501 | {
"func_code_index": [
1016,
1245
]
} | 9,523 | |||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | Stake | function Stake(uint256 _amount) external{
// add to stake
_newDeposit(_amount);
// transfer tokens from user to the contract balance
require(IERC20(OXS).transferFrom(msg.sender, address(this), _amount));
emit StakeStarted(_amount);
}
| //#########################################################################################################################################################//
//####################################################FARMING EXTERNAL FUNCTIONS###########################################################################//
//##... | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
1505,
1823
]
} | 9,524 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | AddToStake | function AddToStake(uint256 _amount) external{
_addToExisting(_amount);
// move the tokens from the caller to the contract address
require(IERC20(OXS).transferFrom(msg.sender,address(this), _amount));
emit AddedToExistingStake(_amount);
}
| // ------------------------------------------------------------------------
// Add more deposits to already running stake
// @param _amount amount of tokens to deposit
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
2094,
2408
]
} | 9,525 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | ClaimReward | function ClaimReward() external {
require(PendingReward(msg.sender) > 0, "No pending rewards");
uint256 _pendingReward = PendingReward(msg.sender);
// Global stats update
totalRewards = totalRewards.add(_pendingReward);
// update the record
users[msg.sender].total... | // ------------------------------------------------------------------------
// Withdraw accumulated rewards
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
2614,
3340
]
} | 9,526 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | StopStaking | function StopStaking() external {
require(users[msg.sender].activeDeposit >= 0, "No active stake");
uint256 _activeDeposit = users[msg.sender].activeDeposit;
// update staking stats
// check if we have any pending rewards, add it to previousGains var
users[msg.sender].pendingG... | // ------------------------------------------------------------------------
// This will stop the existing staking
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
3553,
4326
]
} | 9,527 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | PendingReward | function PendingReward(address _caller) public view returns(uint256 _pendingRewardWeis){
uint256 _totalStakingTime = now.sub(users[_caller].lastClaimedDate);
uint256 _reward_token_second = ((stakingRate).mul(10 ** 21)).div(365 days); // added extra 10^21
uint256 reward = ((users[_call... | //#########################################################################################################################################################//
//##########################################################FARMING QUERIES################################################################################//
//##... | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
5087,
5627
]
} | 9,528 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | ActiveStakeDeposit | function ActiveStakeDeposit(address _user) external view returns(uint256 _activeDeposit){
return users[_user].activeDeposit;
}
| // ------------------------------------------------------------------------
// Query to get the active stake of the user
// @param _user wallet address of the staker
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
5896,
6041
]
} | 9,529 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | YourTotalStakingTillToday | function YourTotalStakingTillToday(address _user) external view returns(uint256 _totalStaking){
return users[_user].totalDeposits;
}
| // ------------------------------------------------------------------------
// Query to get the total staking of the user
// @param _user wallet address of the staker
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
6311,
6462
]
} | 9,530 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | LastStakedOn | function LastStakedOn(address _user) external view returns(uint256 _unixLastStakedTime){
return users[_user].startTime;
}
| // ------------------------------------------------------------------------
// Query to get the time of last staking of user
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
6685,
6825
]
} | 9,531 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | TotalStakingRewards | function TotalStakingRewards(address _user) external view returns(uint256 _totalEarned){
return users[_user].totalGained;
}
| // ------------------------------------------------------------------------
// Query to get total earned rewards
// @param _user wallet address of the staker
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
7086,
7228
]
} | 9,532 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | _newDeposit | function _newDeposit(uint256 _amount) internal{
require(users[msg.sender].activeDeposit == 0, "Already running, use funtion add to stake");
// add that token into the contract balance
// check if we have any pending reward, add it to pendingGains variable
users[msg.sender].pendingGains = ... | //#########################################################################################################################################################//
//################################################################COMMON UTILITIES#########################################################################//
//##... | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
7949,
8663
]
} | 9,533 | ||
OXS_Staking | OXS_Staking.sol | 0xeddf24978021b8498f9f92457c6baa24549eab8a | Solidity | OXS_Staking | contract OXS_Staking is Owned{
using SafeMath for uint256;
uint256 public totalRewards;
uint256 public stakingRate = 25; // 25%
uint256 public totalStakes;
address public OXS = 0x9666007D4f18a3bE889FFc1Ed1fb65764911A376;
struct DepositedToken{
uint256 activeDep... | _addToExisting | function _addToExisting(uint256 _amount) internal{
require(users[msg.sender].activeDeposit > 0, "no running farming/stake");
// update staking stats
// check if we have any pending reward, add it to pendingGains variable
users[msg.sender].pendingGains = PendingReward(msg.... | // ------------------------------------------------------------------------
// Internal function to add to existing deposit
// ------------------------------------------------------------------------ | LineComment | v0.6.0+commit.26b70077 | MIT | ipfs://c329a185824ca082638a48bf83414963601db47e0a0679285b052972c13fad2e | {
"func_code_index": [
8889,
9930
]
} | 9,534 | ||
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
974,
1095
]
} | 9,535 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
1315,
1444
]
} | 9,536 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
1788,
2070
]
} | 9,537 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
2578,
2791
]
} | 9,538 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
3322,
3685
]
} | 9,539 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
3968,
4124
]
} | 9,540 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
4479,
4801
]
} | 9,541 |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
4993,
5052
]
} | 9,542 | |
HY | HY.sol | 0x9b53e429b0badd98ef7f01f03702986c516a5715 | Solidity | HY | contract HY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | MIT | bzzr://f72198c5b3d6473a390aeb66753beea596f7e788bd91aee3f91544c1b4bec1b3 | {
"func_code_index": [
5285,
5474
]
} | 9,543 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
1022,
1127
]
} | 9,544 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
1185,
1309
]
} | 9,545 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | 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.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
1517,
1697
]
} | 9,546 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
1755,
1911
]
} | 9,547 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
2053,
2227
]
} | 9,548 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
2696,
3022
]
} | 9,549 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(
address spender,
uint256 addedValue
) public virtual override returns (bool)
{
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev See {IERC20Allowance-increaseAllowance}.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
3199,
3461
]
} | 9,550 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(
address spender,
uint256 subtractedValue
) public virtual override returns (bool)
{
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev See {IERC20Allowance-decreaseAllowance}.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
3536,
3849
]
} | 9,551 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sen... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
4440,
4984
]
} | 9,552 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
5260,
5643
]
} | 9,553 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
5970,
6393
]
} | 9,554 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | 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, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
6828,
7179
]
} | 9,555 |
PrePaid | @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/ERC20.sol | 0x590df9dc51ea5e1c7a93e61f1a973cea1fc730b8 | Solidity | ERC20 | abstract contract ERC20 is ERC165, Context, IERC20, IERC20Detailed, IERC20Allowance {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | MIT | ipfs://76837e53ae3de2f335dc63db9411b9cee342d7b69eed8996a4928ce505ae018d | {
"func_code_index": [
7758,
7855
]
} | 9,556 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public override view returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
903,
1028
]
} | 9,557 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public override view returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
1244,
1378
]
} | 9,558 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address receiver, uint tokens) public override returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[receiver] = safeAdd(balances[receiver], tokens);
emit Transfer(msg.sender, receiver, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to receiver account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
1724,
2039
]
} | 9,559 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public override returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
// recommends that there are no checks for the approval double-spend attack
/... | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
2528,
2750
]
} | 9,560 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address sender, address receiver, uint tokens) public override returns (bool success) {
balances[sender] = safeSub(balances[sender], tokens);
allowed[sender][msg.sender] = safeSub(allowed[sender][msg.sender], tokens);
balances[receiver] = safeAdd(balances[receiver], tokens);
em... | // ------------------------------------------------------------------------
// Transfer tokens from sender account to receiver account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from sender account and
// - From account must have sufficient balance to transfer
// - Spe... | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
3275,
3683
]
} | 9,561 |
FilmPornoToken | FilmPornoToken.sol | 0xd7653beb9413d467921a44e1f3d38c05bea75c29 | Solidity | FilmPornoToken | contract FilmPornoToken is ERC20Interface, 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
// assisted token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public override view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://d97c1e91fbc324dd7e7be21f92693127931ccef729dc4e5e7d556a969c2d40c5 | {
"func_code_index": [
3962,
4123
]
} | 9,562 |
CardsRead | CardsRead.sol | 0xcc20149f2933359e20fc26e062b6a0a9a7332ea1 | Solidity | CardsRead | contract CardsRead {
CardsInterface public cards;
GameConfigInterface public schema;
address owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function CardsRead() public {
owner = msg.sender;
}
//setting configuration
function setConfigAddress(address _add... | setConfigAddress | function setConfigAddress(address _address) external onlyOwner {
schema = GameConfigInterface(_address);
}
| //setting configuration | LineComment | v0.4.21+commit.dfe3193c | bzzr://b25d4723c007fbd7cf8732e44f54c19f61d8e0caa8023f4363ccb81eb975cfbd | {
"func_code_index": [
280,
397
]
} | 9,563 | |||
CardsRead | CardsRead.sol | 0xcc20149f2933359e20fc26e062b6a0a9a7332ea1 | Solidity | CardsRead | contract CardsRead {
CardsInterface public cards;
GameConfigInterface public schema;
address owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function CardsRead() public {
owner = msg.sender;
}
//setting configuration
function setConfigAddress(address _add... | setCardsAddress | function setCardsAddress(address _address) external onlyOwner {
cards = CardsInterface(_address);
}
| //setting configuration | LineComment | v0.4.21+commit.dfe3193c | bzzr://b25d4723c007fbd7cf8732e44f54c19f61d8e0caa8023f4363ccb81eb975cfbd | {
"func_code_index": [
430,
540
]
} | 9,564 | |||
CardsRead | CardsRead.sol | 0xcc20149f2933359e20fc26e062b6a0a9a7332ea1 | Solidity | CardsRead | contract CardsRead {
CardsInterface public cards;
GameConfigInterface public schema;
address owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function CardsRead() public {
owner = msg.sender;
}
//setting configuration
function setConfigAddress(address _add... | getNormalCardList | function getNormalCardList(address _owner) external view returns(uint256[],uint256[]){
uint256 len = getNormalCard(_owner);
uint256[] memory itemId = new uint256[](len);
uint256[] memory itemNumber = new uint256[](len);
uint256 startId;
uint256 endId;
(startId,endId) = schema.productionCardIdRange(); ... | // get normal cardlist; | LineComment | v0.4.21+commit.dfe3193c | bzzr://b25d4723c007fbd7cf8732e44f54c19f61d8e0caa8023f4363ccb81eb975cfbd | {
"func_code_index": [
1280,
1900
]
} | 9,565 | |||
CardsRead | CardsRead.sol | 0xcc20149f2933359e20fc26e062b6a0a9a7332ea1 | Solidity | CardsRead | contract CardsRead {
CardsInterface public cards;
GameConfigInterface public schema;
address owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function CardsRead() public {
owner = msg.sender;
}
//setting configuration
function setConfigAddress(address _add... | getBattleCardList | function getBattleCardList(address _owner) external view returns(uint256[],uint256[]){
uint256 len = getBattleCard(_owner);
uint256[] memory itemId = new uint256[](len);
uint256[] memory itemNumber = new uint256[](len);
uint256 startId;
uint256 endId;
(startId,endId) = schema.battleCardIdRange();
... | // get normal cardlist; | LineComment | v0.4.21+commit.dfe3193c | bzzr://b25d4723c007fbd7cf8732e44f54c19f61d8e0caa8023f4363ccb81eb975cfbd | {
"func_code_index": [
1930,
2550
]
} | 9,566 | |||
CardsRead | CardsRead.sol | 0xcc20149f2933359e20fc26e062b6a0a9a7332ea1 | Solidity | CardsRead | contract CardsRead {
CardsInterface public cards;
GameConfigInterface public schema;
address owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function CardsRead() public {
owner = msg.sender;
}
//setting configuration
function setConfigAddress(address _add... | getUpgradeValue | function getUpgradeValue(address player, uint256 upgradeClass, uint256 unitId, uint256 upgradeValue) external view returns (uint256) {
uint256 icount = cards.getOwnedCount(player,unitId);
uint256 unitProduction = cards.getUintCoinProduction(player,unitId);
if (upgradeClass == 0) {
if (icount!=0) {
... | //get up value | LineComment | v0.4.21+commit.dfe3193c | bzzr://b25d4723c007fbd7cf8732e44f54c19f61d8e0caa8023f4363ccb81eb975cfbd | {
"func_code_index": [
2571,
4320
]
} | 9,567 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
if (lockIn) {
require(whitelisted[_from]);
}
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for ... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
2543,
3466
]
} | 9,568 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
3670,
3782
]
} | 9,569 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
4055,
4356
]
} | 9,570 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
4618,
4848
]
} | 9,571 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
5240,
5592
]
} | 9,572 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
5760,
6139
]
} | 9,573 | |||
TokenERC20 | TokenERC20.sol | 0x7d1903eeb918b75115435bc226694e0930d4193a | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
address public owner;
uint256 public totalSupply;
bool public lockIn;
mapping (address => bool) whitelisted;
mapping (address => bool) admin;
// This... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://76d7caa4c38b71b44bb4400a2304a2ecac3e4b20abcf4288b7a22f426927036e | {
"func_code_index": [
6395,
7011
]
} | 9,574 | |||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
671,
857
]
} | 9,575 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
1127,
1268
]
} | 9,576 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | 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.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
1600,
1797
]
} | 9,577 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
2043,
2519
]
} | 9,578 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
2982,
3119
]
} | 9,579 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
3644,
3994
]
} | 9,580 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
4446,
4581
]
} | 9,581 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | SafeMath | library SafeMath {
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
function max(uint x, uint y) internal pure returns (uint z) {
return x >= y ? x : y;
}
function imin(int x, int y) internal pure returns (int z) {
return x <= y ?... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
5095,
5266
]
} | 9,582 | ||
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
94,
154
]
} | 9,583 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
237,
310
]
} | 9,584 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
534,
616
]
} | 9,585 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
895,
983
]
} | 9,586 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
1647,
1726
]
} | 9,587 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
2039,
2141
]
} | 9,588 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
606,
1033
]
} | 9,589 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
1963,
2365
]
} | 9,590 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
3121,
3299
]
} | 9,591 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
3524,
3724
]
} | 9,592 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
4094,
4325
]
} | 9,593 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
4576,
5111
]
} | 9,594 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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 | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
5291,
5495
]
} | 9,595 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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 | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
5682,
6109
]
} | 9,596 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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 | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
6291,
6496
]
} | 9,597 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | 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 | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
6685,
7113
]
} | 9,598 |
FavorUSD | ERC20.sol | 0xe59d7e8bdc197aaa626e154020e149a14faca03b | Solidity | ERC20 | abstract contract ERC20 is ClaimableOwnable, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address internal constant OTC_ADDRESS = 0x39755357759cE0d7f32dC8dC45414CCa409AE24e;
address internal constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
a... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public virtual pure returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://ab27100e8b3558a4e8d3f0d334f675339a375af40333a549acb1b2f03ffab0a0 | {
"func_code_index": [
870,
935
]
} | 9,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.