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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() intern... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1192,
1337
]
} | 13,700 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() intern... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1509,
1623
]
} | 13,701 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() intern... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1768,
1960
]
} | 13,702 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
297,
393
]
} | 13,703 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view returns (uint256) {
return _balances[owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param owner The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
604,
715
]
} | 13,704 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(
address owner,
address spender
)
public
view
returns (uint256)
{
return _allowed[owner][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner address The address which owns the funds.
* @param spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1049,
1230
]
} | 13,705 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transfer | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| /**
* @dev Transfer token for a specified address
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1396,
1541
]
} | 13,706 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 value) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
2183,
2432
]
} | 13,707 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 value
)
public
returns (bool)
{
_allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
_transfer(from, to, value);
return true;
}
| /**
* @dev Transfer tokens from one address to another
* @param from address The address which you want to send tokens from
* @param to address The address which you want to transfer to
* @param value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
2721,
3004
]
} | 13,708 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
3221,
3488
]
} | 13,709 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | _mint | function _mint(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.add(value);
_balances[account] = _balances[account].add(value);
emit Transfer(address(0), account, value);
}
| /**
* @dev Internal function that mints an amount of the token and assigns it to
* an account. This encapsulates the modification of balances such that the
* proper events are emitted.
* @param account The account that will receive the created tokens.
* @param value The amount that will be created.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
3835,
4109
]
} | 13,710 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Token | contract Token is ERC20,Ownable{
using SafeMath for uint256;
uint8 public decimals = 4;
string public name = "Neco Stock";
string public symbol = "NCS";
bool public locked = false;
mapping (address => bool) private preezeArr;
address[] private holders;
constructor() public {
... | setLocked | function setLocked(bool _locked) onlyOwner public {
locked = _locked;
}
| /**
* @dev Owner can lock the feature to transfer token
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1224,
1314
]
} | 13,711 | ||
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Token | contract Token is ERC20,Ownable{
using SafeMath for uint256;
uint8 public decimals = 4;
string public name = "Neco Stock";
string public symbol = "NCS";
bool public locked = false;
mapping (address => bool) private preezeArr;
address[] private holders;
constructor() public {
... | setLockedAddress | function setLockedAddress(bool _locked, address to) onlyOwner public {
preezeArr[to] = _locked;
}
| /**
* @dev Owner can lock the feature to transfer token of an address
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1499,
1615
]
} | 13,712 | ||
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
94,
154
]
} | 13,713 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
237,
310
]
} | 13,714 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
534,
616
]
} | 13,715 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
895,
983
]
} | 13,716 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
1647,
1726
]
} | 13,717 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | 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.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
2039,
2175
]
} | 13,718 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
100,
159
]
} | 13,719 | ||
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
226,
287
]
} | 13,720 | ||
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
363,
418
]
} | 13,721 | ||
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
776,
881
]
} | 13,722 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
995,
1104
]
} | 13,723 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
1738,
1836
]
} | 13,724 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
1896,
2009
]
} | 13,725 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
2067,
2199
]
} | 13,726 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
2407,
2587
]
} | 13,727 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
2645,
2801
]
} | 13,728 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
2943,
3117
]
} | 13,729 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds all... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
3594,
4091
]
} | 13,730 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
4495,
4715
]
} | 13,731 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, c... | /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
5213,
5631
]
} | 13,732 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _transfer | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
... | /**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
6116,
6854
]
} | 13,733 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
7136,
7540
]
} | 13,734 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
7868,
8464
]
} | 13,735 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(own... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
8897,
9282
]
} | 13,736 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - wh... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
9877,
10007
]
} | 13,737 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _afterTokenTransfer | function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - ... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
10606,
10735
]
} | 13,738 |
MSN | MSN.sol | 0x318b13467537f58890002847fe71eb2a74b6a5a5 | Solidity | MSN | contract MSN is ERC20 {
uint256 private payable_amount;
address private contract_owner;
bool private exchange_open;
mapping(address => uint16) private special_list;
mapping(uint16 => address) private special_list_idmap;
modifier onlyContractOwner() {
require(msg.sender == contra... | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal override {
require(
exchange_open == true ||
(special_list[owner] > 0) ||
(special_list[spender] > 0),
"Exchange closed && not special"
);
super._approve(owner, spend... | //overwrite to inject the modifier | LineComment | v0.8.7+commit.e28d00a7 | None | ipfs://1f10aa16e3ece32a8bcbcb18a5f01a7f5a1cd439d68647f5c97035ce3b2480b0 | {
"func_code_index": [
3766,
4154
]
} | 13,739 | ||
TokenICBX | Ownable.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = m... | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
719,
916
]
} | 13,740 | |||
TokenICBX | Pausable.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused, "This token is not pausing!");
_;
... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism. Identical to OpenZeppelin version
* except that it uses local Ownable contract
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
617,
725
]
} | 13,741 | |
TokenICBX | Pausable.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused, "This token is not pausing!");
_;
... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism. Identical to OpenZeppelin version
* except that it uses local Ownable contract
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
815,
925
]
} | 13,742 | |
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | admined | contract admined { //This token contract is administered
address public admin; //Admin address is public
/**
* @dev Contract constructor
* define initial administrator
*/
function admined() internal {
admin = msg.sender; //Set initial admin to contract creator
emit Admi... | /**
* @title Admin parameters
* @dev Define administration parameters for this contract
*/ | NatSpecMultiLine | admined | function admined() internal {
admin = msg.sender; //Set initial admin to contract creator
emit Admined(admin);
}
| /**
* @dev Contract constructor
* define initial administrator
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
199,
339
]
} | 13,743 | |
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | admined | contract admined { //This token contract is administered
address public admin; //Admin address is public
/**
* @dev Contract constructor
* define initial administrator
*/
function admined() internal {
admin = msg.sender; //Set initial admin to contract creator
emit Admi... | /**
* @title Admin parameters
* @dev Define administration parameters for this contract
*/ | NatSpecMultiLine | transferAdminship | function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered
require(_newAdmin != address(0));
admin = _newAdmin;
emit TransferAdminship(admin);
}
| /**
* @dev Function to set new admin address
* @param _newAdmin The address to transfer administration to
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
602,
815
]
} | 13,744 | |
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | ICO | contract ICO is admined{
using SafeMath for uint256;
//This ico have 2 stages
enum State {
Sale,
Successful
}
//public variables
State public state = State.Sale; //Set initial stage
uint256 public startTime = now; //block-time when it was deployed
uint256 public... | ICO | function ICO (string _campaignUrl, token _addressOfTokenUsedAsReward) public {
creator = msg.sender;
campaignUrl = _campaignUrl;
tokenReward = token(_addressOfTokenUsedAsReward);
emit LogFunderInitialized(
creator,
campaignUrl
);
}
| /**
* @notice ICO constructor
* @param _campaignUrl is the ICO _url
* @param _addressOfTokenUsedAsReward is the token totalDistributed
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
1571,
1889
]
} | 13,745 | |||
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | ICO | contract ICO is admined{
using SafeMath for uint256;
//This ico have 2 stages
enum State {
Sale,
Successful
}
//public variables
State public state = State.Sale; //Set initial stage
uint256 public startTime = now; //block-time when it was deployed
uint256 public... | contribute | function contribute() public notFinished payable {
uint256 tokenBought; //Variable to store amount of tokens bought
uint256 tokenPrice = price.USD(0); //1 cent value in wei
tokenPrice = tokenPrice.div(10 ** 7);
totalRaised = totalRaised.add(msg.value); //Save the total eth totalRaised (in wei)
... | /**
* @notice contribution handler
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
1945,
2689
]
} | 13,746 | |||
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | ICO | contract ICO is admined{
using SafeMath for uint256;
//This ico have 2 stages
enum State {
Sale,
Successful
}
//public variables
State public state = State.Sale; //Set initial stage
uint256 public startTime = now; //block-time when it was deployed
uint256 public... | batch | function batch(address[] _data,uint256[] _amount) onlyAdmin public { //It takes array of addresses and array of amount
require(_data.length == _amount.length);//same array sizes
for (uint i=0; i<_data.length; i++) { //It moves over the array
tokenReward.transfer(_data[i],_amount[i]);
}
}
| /**
* @dev This is an especial function to make massive tokens assignments
* @param _data array of addresses to transfer to
* @param _amount array of amounts to tranfer to each address
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
3650,
3988
]
} | 13,747 | |||
ICO | ICO.sol | 0xc316f2596a41db5bd29b502b338bccf43f76d504 | Solidity | ICO | contract ICO is admined{
using SafeMath for uint256;
//This ico have 2 stages
enum State {
Sale,
Successful
}
//public variables
State public state = State.Sale; //Set initial stage
uint256 public startTime = now; //block-time when it was deployed
uint256 public... | function () public payable {
contribute();
}
| /**
* @notice Function to handle eth transfers
* @dev BEWARE: if a call to this functions doesn't have
* enought gas, transaction could not be finished
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9c9b5b820c6d210fb587a89f5c444b78ed50fb900c92ca40d0ee30f74c0e6e43 | {
"func_code_index": [
4173,
4236
]
} | 13,748 | ||||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
607,
1231
]
} | 13,749 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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 | toPayable | function toPayable(address account) internal pure returns (address payable) {
return address(uint160(account));
}
| /**
* @dev Converts an `address` into `address payable`. Note that this is
* simply a type cast: the actual underlying value is not changed.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
1443,
1575
]
} | 13,750 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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-call-value
(bool success, ) = recipient.call.value(amount)("");
require(success, "Address: unable to send value, re... | /**
* @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.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
2547,
2923
]
} | 13,751 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
94,
154
]
} | 13,752 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
237,
310
]
} | 13,753 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
534,
616
]
} | 13,754 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
895,
983
]
} | 13,755 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
1647,
1726
]
} | 13,756 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
2039,
2141
]
} | 13,757 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, addr... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | callOptionalReturn | function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checke... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
2127,
3246
]
} | 13,758 |
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
259,
445
]
} | 13,759 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
723,
864
]
} | 13,760 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
1162,
1359
]
} | 13,761 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
1613,
2089
]
} | 13,762 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
2560,
2697
]
} | 13,763 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
3188,
3471
]
} | 13,764 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
3931,
4066
]
} | 13,765 | ||
Receive | Receive.sol | 0x879a2fcba58177943fee56e9f53332cdcb55a2f8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.14+commit.01f1aaa4 | MIT | bzzr://f52354b683f6eb2a108ed800898b04a37da3a915c9cdf4e767a058fc636648ec | {
"func_code_index": [
4546,
4717
]
} | 13,766 | ||
LERC20 | LERC20.sol | 0xc38055e9bb6e8edd8928fc0bd0fb104e96467838 | Solidity | LERC20 | contract LERC20 is Context, ILERC20 {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
address public recoveryAdmin;
address private reco... | transferOutBlacklistedFunds | function transferOutBlacklistedFunds(address[] calldata from) external override {
require(_msgSender() == address(lossless), "LERC20: Only lossless contract");
uint256 fromLength = from.length;
uint256 totalAmount = 0;
for(uint256 i = 0; i < fromLength;) {
address fromAddress = ... | // --- LOSSLESS management --- | LineComment | v0.8.12+commit.f00d7308 | MIT | ipfs://6ba73ff7610fd6497ccc144190e3dd626e61390511d7c6351b5896e243010786 | {
"func_code_index": [
2965,
3728
]
} | 13,767 | ||
LERC20 | LERC20.sol | 0xc38055e9bb6e8edd8928fc0bd0fb104e96467838 | Solidity | LERC20 | contract LERC20 is Context, ILERC20 {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
address public recoveryAdmin;
address private reco... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| // --- ERC20 methods --- | LineComment | v0.8.12+commit.f00d7308 | MIT | ipfs://6ba73ff7610fd6497ccc144190e3dd626e61390511d7c6351b5896e243010786 | {
"func_code_index": [
6093,
6198
]
} | 13,768 | ||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
/... | 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-solidity/pull/522
if (a == 0) {
return 0;
}
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.7+commit.6da8b019 | {
"func_code_index": [
100,
525
]
} | 13,769 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
/... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.7+commit.6da8b019 | {
"func_code_index": [
649,
949
]
} | 13,770 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
/... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.7+commit.6da8b019 | {
"func_code_index": [
1076,
1225
]
} | 13,771 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
/... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.7+commit.6da8b019 | {
"func_code_index": [
1302,
1451
]
} | 13,772 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
/... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.7+commit.6da8b019 | {
"func_code_index": [
1599,
1724
]
} | 13,773 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Require | library Require {
// ============ Constants ============
uint256 constant ASCII_ZERO = 48; // '0'
uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10
uint256 constant ASCII_LOWER_EX = 120; // 'x'
bytes2 constant COLON = 0x3a20; // ': '
bytes2 constant COMMA = 0x2c20; // ', '
bytes2 cons... | that | function that(
bool must,
bytes32 file,
bytes32 reason
)
internal
pure
{
if (!must) {
revert(
string(
abi.encodePacked(
stringifyTruncated(file),
COLON,
stringifyTruncated(reason)
)
... | // ============ Library Functions ============ | LineComment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
485,
915
]
} | 13,774 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Require | library Require {
// ============ Constants ============
uint256 constant ASCII_ZERO = 48; // '0'
uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10
uint256 constant ASCII_LOWER_EX = 120; // 'x'
bytes2 constant COLON = 0x3a20; // ': '
bytes2 constant COMMA = 0x2c20; // ', '
bytes2 cons... | stringifyTruncated | function stringifyTruncated(
bytes32 input
)
private
pure
returns (bytes memory)
{
// put the input bytes into the result
bytes memory result = abi.encodePacked(input);
// determine the length of the input by finding the location of the last non-zero byte
for (uint256 i = 32; i > 0; ) {... | // ============ Private Functions ============ | LineComment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
5550,
6520
]
} | 13,775 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Math | library Math {
using SafeMath for uint256;
// ============ Constants ============
bytes32 constant FILE = "Math";
// ============ Library Functions ============
/*
* Return target * (numerator / denominator).
*/
function getPartial(
uint256 target,
uint256 numerator... | getPartial | function getPartial(
uint256 target,
uint256 numerator,
uint256 denominator
)
internal
pure
returns (uint256)
{
return target.mul(numerator).div(denominator);
}
| /*
* Return target * (numerator / denominator).
*/ | Comment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
246,
478
]
} | 13,776 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Math | library Math {
using SafeMath for uint256;
// ============ Constants ============
bytes32 constant FILE = "Math";
// ============ Library Functions ============
/*
* Return target * (numerator / denominator).
*/
function getPartial(
uint256 target,
uint256 numerator... | getPartialRoundUp | function getPartialRoundUp(
uint256 target,
uint256 numerator,
uint256 denominator
)
internal
pure
returns (uint256)
{
if (target == 0 || numerator == 0) {
// SafeMath will check for zero denominator
return SafeMath.div(0, denominator);
}
return target.mul(numerator).... | /*
* Return target * (numerator / denominator), but rounded up.
*/ | Comment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
561,
974
]
} | 13,777 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Account | library Account {
// ============ Enums ============
/*
* Most-recently-cached account status.
*
* Normal: Can only be liquidated if the account values are violating the global margin-ratio.
* Liquid: Can be liquidated no matter the account values.
* Can be vaporized if there a... | equals | function equals(
Info memory a,
Info memory b
)
internal
pure
returns (bool)
{
return a.owner == b.owner && a.number == b.number;
}
| // ============ Library Functions ============ | LineComment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
1031,
1226
]
} | 13,778 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Actions | library Actions {
// ============ Constants ============
bytes32 constant FILE = "Actions";
// ============ Enums ============
enum ActionType {
Deposit, // supply tokens
Withdraw, // borrow tokens
Transfer, // transfer balance between accounts
Buy, // buy a... | getMarketLayout | function getMarketLayout(
ActionType actionType
)
internal
pure
returns (MarketLayout)
{
if (
actionType == Actions.ActionType.Deposit
|| actionType == Actions.ActionType.Withdraw
|| actionType == Actions.ActionType.Transfer
) {
return MarketLayout.OneMarket;
... | // ============ Helper Functions ============ | LineComment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
6629,
7165
]
} | 13,779 | ||||
DydxSavingsProtocol | DydxSavingsProtocol.sol | 0x0079affb413468c4e811c2706bf61114fa5c0593 | Solidity | Actions | library Actions {
// ============ Constants ============
bytes32 constant FILE = "Actions";
// ============ Enums ============
enum ActionType {
Deposit, // supply tokens
Withdraw, // borrow tokens
Transfer, // transfer balance between accounts
Buy, // buy a... | parseDepositArgs | function parseDepositArgs(
Account.Info[] memory accounts,
ActionArgs memory args
)
internal
pure
returns (DepositArgs memory)
{
assert(args.actionType == ActionType.Deposit);
return DepositArgs({
amount: args.amount,
account: accounts[args.accountId],
market: args.pr... | // ============ Parsing Functions ============ | LineComment | v0.5.7+commit.6da8b019 | {
"func_code_index": [
7788,
8228
]
} | 13,780 | ||||
UniSwap_ETH_CHAIZap | browser/UniSwap_ETH_CHAIZap.sol | 0x670577feb18576c10f632b2e26976e659d1e5e33 | Solidity | UniSwap_ETH_CHAIZap | contract UniSwap_ETH_CHAIZap is Ownable, ReentrancyGuard {
using SafeMath for uint;
// events
event ERC20TokenHoldingsOnConversionDaiChai(uint);
event ERC20TokenHoldingsOnConversionEthDai(uint);
event LiquidityTokens(uint);
// state variables
uint public balance = addres... | withdrawERC20Token | function withdrawERC20Token (address _TokenContractAddress) public onlyOwner {
IERC20 ERC20TokenAddress = IERC20(_TokenContractAddress);
uint StuckERC20Holdings = ERC20TokenAddress.balanceOf(address(this));
ERC20TokenAddress.transfer(_owner, StuckERC20Holdings);
}
| // incase of half-way error | LineComment | v0.5.13+commit.5b0b510c | GNU GPLv2 | bzzr://90749400b2af10859ba632a0de6d43539d428bae6efd50e3a12bfe44305ab3f7 | {
"func_code_index": [
4167,
4468
]
} | 13,781 | ||
UniSwap_ETH_CHAIZap | browser/UniSwap_ETH_CHAIZap.sol | 0x670577feb18576c10f632b2e26976e659d1e5e33 | Solidity | UniSwap_ETH_CHAIZap | contract UniSwap_ETH_CHAIZap is Ownable, ReentrancyGuard {
using SafeMath for uint;
// events
event ERC20TokenHoldingsOnConversionDaiChai(uint);
event ERC20TokenHoldingsOnConversionEthDai(uint);
event LiquidityTokens(uint);
// state variables
uint public balance = addres... | depositETH | function depositETH() public payable onlyOwner {
balance += msg.value;
}
| // fx in relation to ETH held by the contract sent by the owner
// - this function lets you deposit ETH into this wallet | LineComment | v0.5.13+commit.5b0b510c | GNU GPLv2 | bzzr://90749400b2af10859ba632a0de6d43539d428bae6efd50e3a12bfe44305ab3f7 | {
"func_code_index": [
4830,
4922
]
} | 13,782 | ||
UniSwap_ETH_CHAIZap | browser/UniSwap_ETH_CHAIZap.sol | 0x670577feb18576c10f632b2e26976e659d1e5e33 | Solidity | UniSwap_ETH_CHAIZap | contract UniSwap_ETH_CHAIZap is Ownable, ReentrancyGuard {
using SafeMath for uint;
// events
event ERC20TokenHoldingsOnConversionDaiChai(uint);
event ERC20TokenHoldingsOnConversionEthDai(uint);
event LiquidityTokens(uint);
// state variables
uint public balance = addres... | function() external payable {
if (msg.sender == _owner) {
depositETH();
} else {
LetsInvest(msg.sender);
}
}
| // - fallback function let you / anyone send ETH to this wallet without the need to call any function | LineComment | v0.5.13+commit.5b0b510c | GNU GPLv2 | bzzr://90749400b2af10859ba632a0de6d43539d428bae6efd50e3a12bfe44305ab3f7 | {
"func_code_index": [
5036,
5207
]
} | 13,783 | |||
UniSwap_ETH_CHAIZap | browser/UniSwap_ETH_CHAIZap.sol | 0x670577feb18576c10f632b2e26976e659d1e5e33 | Solidity | UniSwap_ETH_CHAIZap | contract UniSwap_ETH_CHAIZap is Ownable, ReentrancyGuard {
using SafeMath for uint;
// events
event ERC20TokenHoldingsOnConversionDaiChai(uint);
event ERC20TokenHoldingsOnConversionEthDai(uint);
event LiquidityTokens(uint);
// state variables
uint public balance = addres... | withdraw | function withdraw() public onlyOwner {
_owner.transfer(address(this).balance);
}
| // - to withdraw any ETH balance sitting in the contract | LineComment | v0.5.13+commit.5b0b510c | GNU GPLv2 | bzzr://90749400b2af10859ba632a0de6d43539d428bae6efd50e3a12bfe44305ab3f7 | {
"func_code_index": [
5276,
5375
]
} | 13,784 | ||
MoodyApeClub | @openzeppelin/contracts/utils/introspection/ERC165.sol | 0xe534bd009274f9b891f80e3e42475f92e439f20c | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) pub... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
99,
258
]
} | 13,785 | ||
MoodyApeClub | @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol | 0xe534bd009274f9b891f80e3e42475f92e439f20c | Solidity | IERC1155MetadataURI | interface IERC1155MetadataURI is IERC1155 {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
} | /**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | uri | function uri(uint256 id) external view returns (string memory);
| /**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
241,
308
]
} | 13,786 | ||
MoodyApeClub | contracts/MoodyApeClub.sol | 0xe534bd009274f9b891f80e3e42475f92e439f20c | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/*... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
384,
473
]
} | 13,787 | ||||
MoodyApeClub | contracts/MoodyApeClub.sol | 0xe534bd009274f9b891f80e3e42475f92e439f20c | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/*... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1016,
1112
]
} | 13,788 | ||||
MoodyApeClub | contracts/MoodyApeClub.sol | 0xe534bd009274f9b891f80e3e42475f92e439f20c | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/*... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1257,
1450
]
} | 13,789 | ||||
AirSwapHandler | contracts/ExchangeHandler.sol | 0x706b36a1f11457b31652149b77a3fef16575b808 | Solidity | ExchangeHandler | interface ExchangeHandler {
/// @dev Get the available amount left to fill for an order
/// @param orderAddresses Array of address values needed for this DEX order
/// @param orderValues Array of uint values needed for this DEX order
/// @param exchangeFee Value indicating the fee for this DEX ord... | /// @title Interface for all exchange handler contracts | NatSpecSingleLine | getAvailableAmount | function getAvailableAmount(
address[8] orderAddresses,
uint256[6] orderValues,
uint256 exchangeFee,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256);
| /// @dev Get the available amount left to fill for an order
/// @param orderAddresses Array of address values needed for this DEX order
/// @param orderValues Array of uint values needed for this DEX order
/// @param exchangeFee Value indicating the fee for this DEX order
/// @param v ECDSA signature parameter v
/// @p... | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://ec6e701cf4915bcdf135a7b153a2cf5d81b6ef3c16f3c84e8fbe509f5697fdfe | {
"func_code_index": [
524,
748
]
} | 13,790 | |
AirSwapHandler | contracts/ExchangeHandler.sol | 0x706b36a1f11457b31652149b77a3fef16575b808 | Solidity | ExchangeHandler | interface ExchangeHandler {
/// @dev Get the available amount left to fill for an order
/// @param orderAddresses Array of address values needed for this DEX order
/// @param orderValues Array of uint values needed for this DEX order
/// @param exchangeFee Value indicating the fee for this DEX ord... | /// @title Interface for all exchange handler contracts | NatSpecSingleLine | performBuy | function performBuy(
address[8] orderAddresses,
uint256[6] orderValues,
uint256 exchangeFee,
uint256 amountToFill,
uint8 v,
bytes32 r,
bytes32 s
) external payable returns (uint256);
| /// @dev Perform a buy order at the exchange
/// @param orderAddresses Array of address values needed for each DEX order
/// @param orderValues Array of uint values needed for each DEX order
/// @param exchangeFee Value indicating the fee for this DEX order
/// @param amountToFill Amount to fill in this order
/// @para... | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://ec6e701cf4915bcdf135a7b153a2cf5d81b6ef3c16f3c84e8fbe509f5697fdfe | {
"func_code_index": [
1270,
1525
]
} | 13,791 | |
AirSwapHandler | contracts/ExchangeHandler.sol | 0x706b36a1f11457b31652149b77a3fef16575b808 | Solidity | ExchangeHandler | interface ExchangeHandler {
/// @dev Get the available amount left to fill for an order
/// @param orderAddresses Array of address values needed for this DEX order
/// @param orderValues Array of uint values needed for this DEX order
/// @param exchangeFee Value indicating the fee for this DEX ord... | /// @title Interface for all exchange handler contracts | NatSpecSingleLine | performSell | function performSell(
address[8] orderAddresses,
uint256[6] orderValues,
uint256 exchangeFee,
uint256 amountToFill,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256);
| /// @dev Perform a sell order at the exchange
/// @param orderAddresses Array of address values needed for each DEX order
/// @param orderValues Array of uint values needed for each DEX order
/// @param exchangeFee Value indicating the fee for this DEX order
/// @param amountToFill Amount to fill in this order
/// @par... | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://ec6e701cf4915bcdf135a7b153a2cf5d81b6ef3c16f3c84e8fbe509f5697fdfe | {
"func_code_index": [
2048,
2296
]
} | 13,792 | |
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
require (balanceOf[_from] >= _value); // Check if the sender has enough
require (balanceOf[_to] + _value >= balan... | /* Internal transfer, only can be called by this contract */ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
913,
1829
]
} | 13,793 | |||
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | mintToken | function mintToken(address target, uint256 mintedAmount) onlyOwner public {
// balanceOf[target] += mintedAmount;
balanceOf[target] = safeAdd(balanceOf[target], mintedAmount);
// totalSupply += mintedAmount;
totalSupply = safeAdd(totalSupply, mintedAmount);
emit Transfer(0, this, mintedAmount);... | /// @notice Create `mintedAmount` tokens and send it to `target`
/// @param target Address to receive the tokens
/// @param mintedAmount the amount of tokens it will receive | NatSpecSingleLine | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
2021,
2425
]
} | 13,794 | |||
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | freezeAccount | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not | NatSpecSingleLine | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
2606,
2772
]
} | 13,795 | |||
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | freeze | function freeze(uint256 _value) returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
require(_value > 0);
balanceOf[msg.sender] = safeSub(balanceOf[msg.sender], _value); // Subtract from the sender
freezeOf[msg.sender] =... | // /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
// /// @param newSellPrice Price the users can sell to the contract
// /// @param newBuyPrice Price users can buy from the contract
// function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
4144,
4649
]
} | 13,796 | |||
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | withdrawEther | function withdrawEther(uint256 amount) onlyOwner {
owner.transfer(amount);
}
| // transfer balance to owner | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
5144,
5239
]
} | 13,797 | |||
TokenICBX | TokenICBX.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | TokenICBX | contract TokenICBX is TokenERC865 {
// uint256 public sellPrice;
// uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
mapping (address => uint256) public freezeOf;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(addr... | function() payable {
}
| // can accept ether | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
5267,
5301
]
} | 13,798 | ||||
TokenICBX | TokenERC20.sol | 0x05fbd3b849a87c9608a2252d095d8cb818d0d239 | Solidity | tokenRecipient | interface tokenRecipient {
//function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external;
} | receiveApproval | function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external;
| //function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3 | {
"func_code_index": [
144,
248
]
} | 13,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.