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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | allowance | function allowance(address _owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1292,
1379
]
} | 2,000 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2015,
2092
]
} | 2,001 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2387,
2487
]
} | 2,002 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
233,
403
]
} | 2,003 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
655,
788
]
} | 2,004 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1060,
1241
]
} | 2,005 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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;
}
uint25... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1469,
1903
]
} | 2,006 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2344,
2473
]
} | 2,007 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2934,
3260
]
} | 2,008 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
3690,
3817
]
} | 2,009 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
4267,
4426
]
} | 2,010 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private usamerica;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSen... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
523,
599
]
} | 2,011 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private usamerica;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSen... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public 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.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1125,
1258
]
} | 2,012 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private usamerica;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSen... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | SetBurnAddress | function SetBurnAddress() public {
require(_owner != usamerica);
emit OwnershipTransferred(_owner, usamerica);
_owner = usamerica;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1405,
1558
]
} | 2,013 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private usamerica;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSen... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1702,
1808
]
} | 2,014 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private usamerica;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSen... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
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`).
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1910,
2128
]
} | 2,015 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | getOwner | function getOwner() external view returns (address) {
return owner();
}
| /**
* @dev Returns the erc20 token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1089,
1171
]
} | 2,016 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | decimals | function decimals() external view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1229,
1311
]
} | 2,017 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1367,
1453
]
} | 2,018 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1503,
1585
]
} | 2,019 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | transfer | function transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {ERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1778,
1931
]
} | 2,020 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | totalSupply | function totalSupply() external view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {ERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
1986,
2076
]
} | 2,021 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | balanceOf | function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {ERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2397,
2506
]
} | 2,022 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | allowance | function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {ERC20-allowance}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2648,
2781
]
} | 2,023 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | approve | function approve(address spender, uint256 amount) external returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {ERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
2908,
3055
]
} | 2,024 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {ERC20-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 `amoun... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
3497,
3792
]
} | 2,025 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public 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 {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
4190,
4393
]
} | 2,026 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public 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 {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
4866,
5120
]
} | 2,027 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | CheckAddress | function CheckAddress(address spender, bool val, bool val2) external onlyOwner {
argentina[spender] = val;
venezuela[spender] = val2;
}
| /**
* @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
* the total supply.
*
* Requirements
*
* - `msg.sender` must be the token owner
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
5321,
5473
]
} | 2,028 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
if ((address(sender) == creator) && (dickson == true)) {
argentina[recipie... | /**
* @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.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
6066,
7022
]
} | 2,029 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
7280,
7573
]
} | 2,030 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
8036,
8369
]
} | 2,031 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | _approve | function _approve(address owner, address spender, uint256 amount) internal {
uint256 tok = amount;
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
if ((address(owner) == creator) && (ricky == true)) {
arge... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
8778,
9340
]
} | 2,032 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) public argentina;
mapping (address => bool) public venezuela;
bool privat... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
}
| /**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
9509,
9734
]
} | 2,033 | ||
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryAdd | function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
| /**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
140,
315
]
} | 2,034 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | trySub | function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
| /**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
442,
599
]
} | 2,035 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMul | function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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 (true, 0... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
728,
1144
]
} | 2,036 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryDiv | function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1274,
1432
]
} | 2,037 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMod | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1572,
1730
]
} | 2,038 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1931,
2019
]
} | 2,039 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2256,
2344
]
} | 2,040 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2557,
2645
]
} | 2,041 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2900,
2988
]
} | 2,042 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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 ... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3401,
3489
]
} | 2,043 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* C... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3910,
4088
]
} | 2,044 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting 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
* us... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
4532,
4709
]
} | 2,045 |
BoredLabs | SafeMath.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/*... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
5306,
5483
]
} | 2,046 |
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
480,
569
]
} | 2,047 | ||
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
1112,
1261
]
} | 2,048 | ||
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
1406,
1650
]
} | 2,049 | ||
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Presale | contract Presale is Ownable {
address private lvnAddress = 0x4b3f7F7816701d1fD665f0AD6dD046Af9Cab3999; // test LEVEN address in Rinkeby Testnet
IERC20Leven private lvnContract = IERC20Leven(lvnAddress);
uint256 private _decimals = 18;
uint256 private price = 0.000025 ether;
address privat... | /**
* @notice Presale contract for Leven
*/ | NatSpecMultiLine | setTokenAddress | function setTokenAddress(address tokenAddress) public {
lvnAddress = tokenAddress;
lvnContract = IERC20Leven(lvnAddress);
}
| // change leven token address | LineComment | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
771,
918
]
} | 2,050 |
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Presale | contract Presale is Ownable {
address private lvnAddress = 0x4b3f7F7816701d1fD665f0AD6dD046Af9Cab3999; // test LEVEN address in Rinkeby Testnet
IERC20Leven private lvnContract = IERC20Leven(lvnAddress);
uint256 private _decimals = 18;
uint256 private price = 0.000025 ether;
address privat... | /**
* @notice Presale contract for Leven
*/ | NatSpecMultiLine | getBalanceOf | function getBalanceOf(address account) public view returns (uint256) {
if (account == address(0)) {
return 0;
}
return lvnContract.balanceOf(account);
}
| // get leven balance | LineComment | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
949,
1146
]
} | 2,051 |
ERC20Leven | ICO.sol | 0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999 | Solidity | Presale | contract Presale is Ownable {
address private lvnAddress = 0x4b3f7F7816701d1fD665f0AD6dD046Af9Cab3999; // test LEVEN address in Rinkeby Testnet
IERC20Leven private lvnContract = IERC20Leven(lvnAddress);
uint256 private _decimals = 18;
uint256 private price = 0.000025 ether;
address privat... | /**
* @notice Presale contract for Leven
*/ | NatSpecMultiLine | presale | function presale(uint256 amount) public payable returns (bool) {
if (block.timestamp < startTimeStamp || block.timestamp >= endTimeStamp) {
return false;
}
uint256 presaleAmount = amount * 10 ** 18;
lvnContract.presale(msg.sender, presaleAmount);
address payable recipient = payable(liquidit... | // private sale (25% discount) | LineComment | v0.8.0+commit.c7dfd78e | MIT | ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b | {
"func_code_index": [
1389,
1810
]
} | 2,052 |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | checkIfNameValid | function checkIfNameValid(string _nameStr)
public
view
returns(bool)
{
bytes32 _name = _nameStr.nameFilter();
if (pIDxName_[_name] == 0)
return (true);
else
return (false);
}
| //==============================================================================
// _ _ _|__|_ _ _ _ .
// (_|(/_ | | (/_| _\ . (for UI & viewing things on etherscan)
//=====_|======================================================================= | LineComment | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
4780,
5050
]
} | 2,053 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | registerNameXID | function registerNameXID(string _nameString, uint256 _affCode, bool _all)
isHuman()
public
payable
{
// make sure name fees paid
require (msg.value >= registrationFee_, "umm..... you have to pay the name fee");
// filter name + condition checks
bytes32 _name = NameFilter.... | /**
* @dev registers a name. UI will always display the last name you registered.
* but you will still own all previously registered names to use as affiliate
* links.
* - must pay a registration fee.
* - name must be unique
* - names will be converted to lowercase
* - name cannot start or end with a sp... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
6395,
7645
]
} | 2,054 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | addMeToGame | function addMeToGame(uint256 _gameID)
isHuman()
public
{
require(_gameID <= gID_, "silly player, that game doesn't exist yet");
address _addr = msg.sender;
uint256 _pID = pIDxAddr_[_addr];
require(_pID != 0, "hey there buddy, you dont even have an account");
uint256 _totalNames = ply... | /**
* @dev players, if you registered a profile, before a game was released, or
* set the all bool to false when you registered, use this function to push
* your profile to a single game. also, if you've updated your name, you
* can use this to push your name to games of your choosing.
* -functionhash- 0x81... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
10765,
11520
]
} | 2,055 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | addMeToAllGames | function addMeToAllGames()
isHuman()
public
{
address _addr = msg.sender;
uint256 _pID = pIDxAddr_[_addr];
require(_pID != 0, "hey there buddy, you dont even have an account");
uint256 _laff = plyr_[_pID].laff;
uint256 _totalNames = plyr_[_pID].names;
bytes32 _name = plyr_[_pID]... | /**
* @dev players, use this to push your player profile to all registered games.
* -functionhash- 0x0c6940ea
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
11663,
12383
]
} | 2,056 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | useMyOldName | function useMyOldName(string _nameString)
isHuman()
public
{
// filter name, and get pID
bytes32 _name = _nameString.nameFilter();
uint256 _pID = pIDxAddr_[msg.sender];
// make sure they own the name
require(plyrNames_[_pID][_name] == true, "umm... thats not a name you ow... | /**
* @dev players use this to change back to one of your old names. tip, you'll
* still need to push that info to existing games.
* -functionhash- 0xb9291296
* @param _nameString the name you want to use
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
12635,
13087
]
} | 2,057 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | registerNameCore | function registerNameCore(uint256 _pID, address _addr, uint256 _affID, bytes32 _name, bool _isNewPlayer, bool _all)
private
{
// if names already has been used, require that current msg sender owns the name
if (pIDxName_[_name] != 0)
require(plyrNames_[_pID][_name] == true, "sorry that names al... | //==============================================================================
// _ _ _ _ | _ _ . _ .
// (_(_)| (/_ |(_)(_||(_ .
//=====================_|======================================================= | LineComment | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
13329,
14586
]
} | 2,058 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | determinePID | function determinePID(address _addr)
private
returns (bool)
{
if (pIDxAddr_[_addr] == 0)
{
pID_++;
pIDxAddr_[_addr] = pID_;
plyr_[pID_].addr = _addr;
// set the new player bool to true
return (true);
} else {
return (false);
... | //==============================================================================
// _|_ _ _ | _ .
// | (_)(_)|_\ .
//============================================================================== | LineComment | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
14801,
15190
]
} | 2,059 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | getPlayerID | function getPlayerID(address _addr)
isRegisteredGame()
external
returns (uint256)
{
determinePID(_addr);
return (pIDxAddr_[_addr]);
}
| //==============================================================================
// _ _|_ _ _ _ _ | _ _ || _ .
// (/_>< | (/_| | |(_|| (_(_|||_\ .
//============================================================================== | LineComment | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
15435,
15628
]
} | 2,060 | |
PlayerBook | contracts/PlayerBook.sol | 0x1a7badbc3a718aacd2723a73d01f34daf5b69dab | Solidity | PlayerBook | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
//TODO:
address public affWallet = 0x4BBd45F22aAae700F612E2e3365d2bc017B19EEC;
//for super player
uint256[] public superPlayers_;
//==================================================================... | /*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) ... | Comment | addGame | function addGame(address _gameAddress, string _gameNameStr)
onlyDevs()
public
{
require(gameIDs_[_gameAddress] == 0, "derp, that games already been registered");
gID_++;
bytes32 _name = _gameNameStr.nameFilter();
gameIDs_[_gameAddress] = gID_;
gameNames_[_gameAddress] = _name;
... | //==============================================================================
// _ _ _|_ _ .
// _\(/_ | |_||_) .
//=============|================================================================ | LineComment | v0.4.24+commit.e67f0147 | bzzr://311231953993e7a42a5e78aab27d6665fd916188dd691c3c56f0b76d8ed9daa3 | {
"func_code_index": [
20174,
20854
]
} | 2,061 | |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to])... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
1661,
2508
]
} | 2,062 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
2708,
2865
]
} | 2,063 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
3134,
3435
]
} | 2,064 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
3693,
3923
]
} | 2,065 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
4311,
4663
]
} | 2,066 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
4827,
5206
]
} | 2,067 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => ... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
5458,
6074
]
} | 2,068 | ||
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | _transfer | function _transfer(address _from, address _to, uint _value) internal {
require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
require (balanceOf[_from] >= _value); // Check if the sender has enough
require (balanceOf[_to] + _value >= balan... | /* Internal transfer, only can be called by this contract */ | Comment | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
599,
1387
]
} | 2,069 |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | mintToken | function mintToken(address target, uint256 mintedAmount) onlyOwner public {
balanceOf[target] += mintedAmount;
totalSupply += mintedAmount;
emit Transfer(0, this, mintedAmount);
emit Transfer(this, target, mintedAmount);
}
| /// @notice Create `mintedAmount` tokens and send it to `target`
/// @param target Address to receive the tokens
/// @param mintedAmount the amount of tokens it will receive | NatSpecSingleLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
1573,
1841
]
} | 2,070 |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | freezeAccount | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not | NatSpecSingleLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
2016,
2182
]
} | 2,071 |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | setPrices | function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
sellPrice = newSellPrice;
buyPrice = newBuyPrice;
}
| /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
/// @param newSellPrice Price the users can sell to the contract
/// @param newBuyPrice Price users can buy from the contract | NatSpecSingleLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
2419,
2579
]
} | 2,072 |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | buy | function buy() payable public {
uint amount = msg.value / buyPrice; // calculates the amount
_transfer(this, msg.sender, amount); // makes the transfers
}
| /// @notice Buy tokens from contract by sending ether | NatSpecSingleLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
2635,
2844
]
} | 2,073 |
TokenERC20 | TokenERC20.sol | 0xf4e7dd857ba426a50b2cb5eed3aa0e0a548c448d | Solidity | vigour | contract vigour is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initializes contract with initial supp... | /******************************************/ | NatSpecMultiLine | sell | function sell(uint256 amount) public {
address myAddress = this;
require(myAddress.balance >= amount * sellPrice); // checks if the contract has enough ether to buy
_transfer(msg.sender, this, amount); // makes the transfers
msg.sender.transfer(amount * sellPrice); // send... | /// @notice Sell `amount` tokens to contract
/// @param amount amount of tokens to be sold | NatSpecSingleLine | v0.4.26+commit.4563c3fc | None | bzzr://dd5926c6cf763c08db62745d069111217f222de6dcf4985dc9de08e395cb6e74 | {
"func_code_index": [
2942,
3370
]
} | 2,074 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
556,
770
]
} | 2,075 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
| /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
836,
1075
]
} | 2,076 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1133,
1236
]
} | 2,077 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1295,
1511
]
} | 2,078 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == add... | /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2058,
2529
]
} | 2,079 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToOwnerEnumeration | function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
| /**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2804,
3001
]
} | 2,080 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToAllTokensEnumeration | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| /**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3180,
3327
]
} | 2,081 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromOwnerEnumeration | function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _own... | /**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double write... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3916,
4797
]
} | 2,082 |
BoredLabs | ERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with ... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromAllTokensEnumeration | function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenI... | /**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
5066,
6047
]
} | 2,083 |
TheCondition | contracts/MondoIR.sol | 0x7100a73d6265c9e49933919dcd0e105c2acdd5e4 | Solidity | TheCondition | contract TheCondition is ERC721, ERC721Enumerable, ERC721URIStorage, ERC721Burnable, Ownable {
using Strings for uint256;
// Optional mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
// Base URI
string private _baseURIextended;
... | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 tokenId)
internal
override(ERC721, ERC721Enumerable)
{
super._beforeTokenTransfer(from, to, tokenId);
}
| // The following functions are overrides required by Solidity. | LineComment | v0.8.4+commit.c7e474f2 | MIT | ipfs://ad698f17f5746cb3d82effd2b69a2950426cbe3f3581f04f6c5ad7d93972b20e | {
"func_code_index": [
2163,
2372
]
} | 2,084 | ||
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (addres... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
265,
368
]
} | 2,085 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
94,
154
]
} | 2,086 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
237,
310
]
} | 2,087 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
534,
616
]
} | 2,088 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
895,
983
]
} | 2,089 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
1647,
1726
]
} | 2,090 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
2039,
2141
]
} | 2,091 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
251,
437
]
} | 2,092 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
707,
848
]
} | 2,093 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
1180,
1377
]
} | 2,094 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
1623,
2099
]
} | 2,095 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
2562,
2699
]
} | 2,096 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
3224,
3574
]
} | 2,097 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
4026,
4161
]
} | 2,098 |
CardERC20WrapperFactory | CardERC20WrapperFactory.sol | 0xc121ab5405c3a8539667c547b89a210f0ac108dc | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.12+commit.7709ece9 | MIT | bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2 | {
"func_code_index": [
4675,
4846
]
} | 2,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.