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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
534,
616
]
} | 15,600 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
895,
983
]
} | 15,601 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1647,
1726
]
} | 15,602 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
2039,
2141
]
} | 15,603 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | safeApprove | function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line ... | /**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
747,
1374
]
} | 15,604 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | _callOptionalReturn | function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target ad... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
2393,
3159
]
} | 15,605 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
824,
929
]
} | 15,606 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
985,
1109
]
} | 15,607 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1346,
1502
]
} | 15,608 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1642,
1816
]
} | 15,609 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalS... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1924,
2343
]
} | 15,610 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
3078,
3301
]
} | 15,611 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
3799,
4073
]
} | 15,612 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender]... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
4326,
4866
]
} | 15,613 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount)... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
5130,
5479
]
} | 15,614 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
6089,
6184
]
} | 15,615 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | ERC20 | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal _totalSupply;
string private _name;
string priva... | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
6382,
6479
]
} | 15,616 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | encode | function encode(uint112 x) internal pure returns (uq112x112 memory) {
return uq112x112(uint224(x) << RESOLUTION);
}
| // encode a uint112 as a UQ112x112 | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
339,
473
]
} | 15,617 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | encode144 | function encode144(uint144 x) internal pure returns (uq144x112 memory) {
return uq144x112(uint256(x) << RESOLUTION);
}
| // encodes a uint144 as a UQ144x112 | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
517,
654
]
} | 15,618 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | div | function div(uq112x112 memory self, uint112 x) internal pure returns (uq112x112 memory) {
require(x != 0, 'FixedPoint: DIV_BY_ZERO');
return uq112x112(self._x / uint224(x));
}
| // divide a UQ112x112 by a uint112, returning a UQ112x112 | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
720,
923
]
} | 15,619 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | mul | function mul(uq112x112 memory self, uint y) internal pure returns (uq144x112 memory) {
uint z;
require(y == 0 || (z = uint(self._x) * y) / y == uint(self._x), "FixedPoint: MULTIPLICATION_OVERFLOW");
return uq144x112(z);
}
| // multiply a UQ112x112 by a uint, returning a UQ144x112
// reverts on overflow | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1016,
1274
]
} | 15,620 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | fraction | function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {
require(denominator > 0, "FixedPoint: DIV_BY_ZERO");
return uq112x112((uint224(numerator) << RESOLUTION) / denominator);
}
| // returns a UQ112x112 which represents the ratio of the numerator to the denominator
// equivalent to encode(numerator).div(denominator) | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1425,
1676
]
} | 15,621 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | decode | function decode(uq112x112 memory self) internal pure returns (uint112) {
return uint112(self._x >> RESOLUTION);
}
| // decode a UQ112x112 into a uint112 by truncating after the radix point | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1757,
1889
]
} | 15,622 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | FixedPoint | library FixedPoint {
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
struct uq112x112 {
uint224 _x;
}
// range: [0, 2**144 - 1]
// resolution: 1 / 2**112
struct uq144x112 {
uint _x;
}
uint8 private constant RESOLUTION = 112;
// encode a uint1... | // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) | LineComment | decode144 | function decode144(uq144x112 memory self) internal pure returns (uint144) {
return uint144(self._x >> RESOLUTION);
}
| // decode a UQ144x112 into a uint144 by truncating after the radix point | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
1970,
2105
]
} | 15,623 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | UniswapV2OracleLibrary | library UniswapV2OracleLibrary {
using FixedPoint for *;
// helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
function currentBlockTimestamp() internal view returns (uint32) {
return uint32(block.timestamp % 2 ** 32);
}
// prod... | // library with helper methods for oracles that are concerned with computing average prices | LineComment | currentBlockTimestamp | function currentBlockTimestamp() internal view returns (uint32) {
return uint32(block.timestamp % 2 ** 32);
}
| // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1] | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
178,
306
]
} | 15,624 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | UniswapV2OracleLibrary | library UniswapV2OracleLibrary {
using FixedPoint for *;
// helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
function currentBlockTimestamp() internal view returns (uint32) {
return uint32(block.timestamp % 2 ** 32);
}
// prod... | // library with helper methods for oracles that are concerned with computing average prices | LineComment | currentCumulativePrices | function currentCumulativePrices(
address pair
) internal view returns (uint price0Cumulative, uint price1Cumulative, uint32 blockTimestamp) {
blockTimestamp = currentBlockTimestamp();
price0Cumulative = IUniswapV2Pair(pair).price0CumulativeLast();
price1Cumulative = IUniswapV2Pair(pair).price1Cumu... | // produces the cumulative price using counterfactuals to save gas and avoid a call to sync. | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
407,
1470
]
} | 15,625 |
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | UniswapV2Library | library UniswapV2Library {
using SafeMath for uint;
// returns sorted token addresses, used to handle return values from pairs sorted in this order
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2L... | sortTokens | function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
require(token0 != address(0), 'UniswapV2Library: ZERO_... | // returns sorted token addresses, used to handle return values from pairs sorted in this order | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
161,
515
]
} | 15,626 | ||
PokerSwap | PokerSwap.sol | 0xb0da7bffe3bf9cc1bc5039731d74ba1ab6524e99 | Solidity | UniswapV2Library | library UniswapV2Library {
using SafeMath for uint;
// returns sorted token addresses, used to handle return values from pairs sorted in this order
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2L... | pairFor | function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = sortTokens(tokenA, tokenB);
pair = address(uint(keccak256(abi.encodePacked(
hex'ff',
factory,
keccak256(abi.encodePacked(token0, to... | // calculates the CREATE2 address for a pair without making any external calls | LineComment | v0.6.6+commit.6c089d02 | None | ipfs://64c3fb6af38705e4c12fb9443351e815409dcb147b8f8d27cdf2446d7d32a080 | {
"func_code_index": [
602,
1085
]
} | 15,627 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
94,
154
]
} | 15,628 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
237,
310
]
} | 15,629 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
534,
616
]
} | 15,630 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
895,
983
]
} | 15,631 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
1647,
1726
]
} | 15,632 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
2039,
2141
]
} | 15,633 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
259,
445
]
} | 15,634 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
723,
864
]
} | 15,635 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
1162,
1359
]
} | 15,636 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
1613,
2089
]
} | 15,637 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
2560,
2697
]
} | 15,638 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
3188,
3471
]
} | 15,639 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
3931,
4066
]
} | 15,640 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
4546,
4717
]
} | 15,641 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
606,
1230
]
} | 15,642 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
2160,
2562
]
} | 15,643 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
3318,
3496
]
} | 15,644 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
3721,
3922
]
} | 15,645 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
4292,
4523
]
} | 15,646 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
4774,
5095
]
} | 15,647 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
497,
581
]
} | 15,648 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
1139,
1292
]
} | 15,649 | ||
FalconElon | FalconElon.sol | 0x6ea9c16cc8b38a35505b7397bfdce668c6cec60d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://99a29cf74a614ae969b10a52676bf87c6acae84345a29b49bdf824212eecd886 | {
"func_code_index": [
1442,
1691
]
} | 15,650 | ||
GhostGang | contracts/GhostGang.sol | 0x7d385a5a9773c2d3fe7d5dc03cbda738466b45dd | Solidity | GhostGang | contract GhostGang is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
string public baseTokenURI;
string public baseExtension = ".json";
uint256 public price = 0.05 ether;
uint256 public saleState = 0;
// vault address
address public... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseTokenURI;
}
| // token URI | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://0d9819723fddabeb2288019dccac5fc4365f16f09e2c7b35905db167b227dd82 | {
"func_code_index": [
2099,
2217
]
} | 15,651 | ||
GhostGang | contracts/GhostGang.sol | 0x7d385a5a9773c2d3fe7d5dc03cbda738466b45dd | Solidity | GhostGang | contract GhostGang is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
string public baseTokenURI;
string public baseExtension = ".json";
uint256 public price = 0.05 ether;
uint256 public saleState = 0;
// vault address
address public... | setSaleState | function setSaleState(uint256 _saleState) public onlyOwner {
saleState = _saleState;
}
| // other functions | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://0d9819723fddabeb2288019dccac5fc4365f16f09e2c7b35905db167b227dd82 | {
"func_code_index": [
2503,
2608
]
} | 15,652 | ||
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | Ramsecoin | function Ramsecoin() public {
symbol = "RAMSE";
name = "Ramse coin";
decimals = 16;
_totalSupply = 5100000000000000000000000;
balances[0x45EFCE9B66d5ec6b90918561557D1A74369B5fFA] = _totalSupply;
emit Transfer(address(0), 0x45EFCE9B66d5ec6b90918561557D1A74369B5fFA, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
456,
801
]
} | 15,653 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
989,
1110
]
} | 15,654 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
1330,
1459
]
} | 15,655 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
1803,
2085
]
} | 15,656 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
2363,
2576
]
} | 15,657 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
2807,
3170
]
} | 15,658 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
3453,
3609
]
} | 15,659 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
3964,
4286
]
} | 15,660 |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
4478,
4537
]
} | 15,661 | |
Ramsecoin | Ramsecoin.sol | 0x93dfdfdb1d1f1605be60b5e3cb55e75f85ddf2ed | Solidity | Ramsecoin | contract Ramsecoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://7df4ad1a67502458a07edd0f51108f62c2d9037de110727307076787de4c7c5d | {
"func_code_index": [
4770,
4959
]
} | 15,662 |
OasisMakerBroker | contracts/loopring/iface/ITradeHistory.sol | 0x6ce73a96a957408e72322823ee848ddd90c01424 | Solidity | ITradeHistory | contract ITradeHistory {
// The following map is used to keep trace of order fill and cancellation
// history.
mapping (bytes32 => uint) public filled;
// This map is used to keep trace of order's cancellation history.
mapping (address => mapping (bytes32 => bool)) public cancelled;
... | /// @title ITradeHistory
/// @dev Stores the trade history and cancelled data of orders
/// @author Brecht Devos - <brecht@loopring.org>. | NatSpecSingleLine | authorizeAddress | function authorizeAddress(
address addr
)
external;
| /// @dev Add a Loopring protocol address.
/// @param addr A loopring protocol address. | NatSpecSingleLine | v0.5.7+commit.6da8b019 | None | bzzr://3e40bc8508abb0c2a6a372b5aaac4f0f46d48907a244beaa87b4d02ebbe19216 | {
"func_code_index": [
1945,
2028
]
} | 15,663 |
OasisMakerBroker | contracts/loopring/iface/ITradeHistory.sol | 0x6ce73a96a957408e72322823ee848ddd90c01424 | Solidity | ITradeHistory | contract ITradeHistory {
// The following map is used to keep trace of order fill and cancellation
// history.
mapping (bytes32 => uint) public filled;
// This map is used to keep trace of order's cancellation history.
mapping (address => mapping (bytes32 => bool)) public cancelled;
... | /// @title ITradeHistory
/// @dev Stores the trade history and cancelled data of orders
/// @author Brecht Devos - <brecht@loopring.org>. | NatSpecSingleLine | deauthorizeAddress | function deauthorizeAddress(
address addr
)
external;
| /// @dev Remove a Loopring protocol address.
/// @param addr A loopring protocol address. | NatSpecSingleLine | v0.5.7+commit.6da8b019 | None | bzzr://3e40bc8508abb0c2a6a372b5aaac4f0f46d48907a244beaa87b4d02ebbe19216 | {
"func_code_index": [
2131,
2216
]
} | 15,664 |
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: tested
... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: tested
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
89,
421
]
} | 15,665 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: tested
... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
505,
785
]
} | 15,666 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: tested
... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
899,
1015
]
} | 15,667 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: tested
... | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
1079,
1209
]
} | 15,668 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
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.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
815,
932
]
} | 15,669 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | 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.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
1097,
1205
]
} | 15,670 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | _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.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
1343,
1521
]
} | 15,671 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Trazair | contract Trazair is Ownable{
using SafeMath for uint256;
// function totalSupply() public view returns (uint256);
// function balanceOf(address who) public view returns (uint256);
// function transfer(address to, uint256 value) public payable returns (bool);
event Transfer(address indexed from, address i... | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
2448,
2536
]
} | 15,672 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Trazair | contract Trazair is Ownable{
using SafeMath for uint256;
// function totalSupply() public view returns (uint256);
// function balanceOf(address who) public view returns (uint256);
// function transfer(address to, uint256 value) public payable returns (bool);
event Transfer(address indexed from, address i... | airdrop_byadmin | function airdrop_byadmin(address _to, uint256 _value) onlyOwner public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
totalSold_ = totalSold_.add(_value);
... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
2708,
3147
]
} | 15,673 | |||
Trazair | Trazair.sol | 0xac49f52bab845947a4e981aac2157365b9535b96 | Solidity | Trazair | contract Trazair is Ownable{
using SafeMath for uint256;
// function totalSupply() public view returns (uint256);
// function balanceOf(address who) public view returns (uint256);
// function transfer(address to, uint256 value) public payable returns (bool);
event Transfer(address indexed from, address i... | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://2464612a236b7761f5da74f4c28825a6718b2aa56473fe3e952db580060c9489 | {
"func_code_index": [
4130,
4234
]
} | 15,674 | |||
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
374,
455
]
} | 15,675 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
94,
154
]
} | 15,676 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
237,
310
]
} | 15,677 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
534,
616
]
} | 15,678 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
895,
983
]
} | 15,679 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
1647,
1726
]
} | 15,680 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
2039,
2141
]
} | 15,681 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toString | function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
180,
908
]
} | 15,682 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
| /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
1013,
1358
]
} | 15,683 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = alphabet[value & 0xf];
value >>= 4;
}
... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
1481,
1933
]
} | 15,684 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
100,
159
]
} | 15,685 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
226,
287
]
} | 15,686 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
363,
418
]
} | 15,687 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
779,
884
]
} | 15,688 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
998,
1107
]
} | 15,689 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
1741,
1839
]
} | 15,690 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
1899,
2012
]
} | 15,691 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
2070,
2202
]
} | 15,692 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
2410,
2590
]
} | 15,693 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
2648,
2804
]
} | 15,694 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
2946,
3120
]
} | 15,695 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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 allowance");
_ap... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
3597,
4024
]
} | 15,696 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
4428,
4648
]
} | 15,697 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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");
_approve(_msgSender(), spender, currentAllowance - sub... | /**
* @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.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
5146,
5528
]
} | 15,698 |
CMKToken | CMKToken.sol | 0x68cfb82eacb9f198d508b514d898a403c449533e | 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 fo... | /**
* @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);
uint256 sende... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://a98d9eb8541d9b91fc6d74ffd2ae2be42ebcaf311c8a877d6f545c1d7282eb9e | {
"func_code_index": [
6013,
6622
]
} | 15,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.