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
SolidarityDnToken
SolidarityDnToken.sol
0x299bdf0e6878e958177a4cde76411fc17138a2b0
Solidity
SolidarityDnToken
contract SolidarityDnToken is ERC20Mintable { // name of the token string private _name = "SolidarityDnToken"; // symbol of the token string private _symbol = "SOLDN"; // decimals of the token uint8 private _decimals = 18; // limit of emission (minting) uint256 public emissio...
/** * @title The main project contract. * @author https://grox.solutions */
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @return the name of the token. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
None
bzzr://241cf645f2f5629c7849fdd192492ef5387929b54ac35e8c200ba9deebc3443f
{ "func_code_index": [ 3337, 3425 ] }
56,361
SolidarityDnToken
SolidarityDnToken.sol
0x299bdf0e6878e958177a4cde76411fc17138a2b0
Solidity
SolidarityDnToken
contract SolidarityDnToken is ERC20Mintable { // name of the token string private _name = "SolidarityDnToken"; // symbol of the token string private _symbol = "SOLDN"; // decimals of the token uint8 private _decimals = 18; // limit of emission (minting) uint256 public emissio...
/** * @title The main project contract. * @author https://grox.solutions */
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @return the symbol of the token. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
None
bzzr://241cf645f2f5629c7849fdd192492ef5387929b54ac35e8c200ba9deebc3443f
{ "func_code_index": [ 3487, 3579 ] }
56,362
SolidarityDnToken
SolidarityDnToken.sol
0x299bdf0e6878e958177a4cde76411fc17138a2b0
Solidity
SolidarityDnToken
contract SolidarityDnToken is ERC20Mintable { // name of the token string private _name = "SolidarityDnToken"; // symbol of the token string private _symbol = "SOLDN"; // decimals of the token uint8 private _decimals = 18; // limit of emission (minting) uint256 public emissio...
/** * @title The main project contract. * @author https://grox.solutions */
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @return the number of decimals of the token. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
None
bzzr://241cf645f2f5629c7849fdd192492ef5387929b54ac35e8c200ba9deebc3443f
{ "func_code_index": [ 3653, 3741 ] }
56,363
SolidarityDnToken
SolidarityDnToken.sol
0x299bdf0e6878e958177a4cde76411fc17138a2b0
Solidity
SolidarityDnToken
contract SolidarityDnToken is ERC20Mintable { // name of the token string private _name = "SolidarityDnToken"; // symbol of the token string private _symbol = "SOLDN"; // decimals of the token uint8 private _decimals = 18; // limit of emission (minting) uint256 public emissio...
/** * @title The main project contract. * @author https://grox.solutions */
NatSpecMultiLine
_isContract
function _isContract(address addr) internal view returns (bool) { uint size; assembly { size := extcodesize(addr) } return size > 0; }
/** * @return true if the address is a сontract */
NatSpecMultiLine
v0.5.12+commit.7709ece9
None
bzzr://241cf645f2f5629c7849fdd192492ef5387929b54ac35e8c200ba9deebc3443f
{ "func_code_index": [ 3812, 3983 ] }
56,364
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 89, 266 ] }
56,365
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 350, 630 ] }
56,366
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 744, 860 ] }
56,367
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, tr...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 924, 1054 ] }
56,368
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
IOwned
contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public view returns (address) {} function transferOwnership(address _newOwner) public; function acceptOwnership() public; }
/* Owned contract interface */
Comment
owner
function owner() public view returns (address) {}
// this function isn't abstract since the compiler emits automatically generated getter functions as external
LineComment
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 134, 188 ] }
56,369
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
ITokenConverter
contract ITokenConverter { function convertibleTokenCount() public view returns (uint16); function convertibleToken(uint16 _tokenIndex) public view returns (address); function getReturn(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount) public view returns (uint256); function convert(IER...
/* EIP228 Token Converter interface */
Comment
change
function change(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount, uint256 _minReturn) public returns (uint256);
// deprecated, backward compatibility
LineComment
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 470, 599 ] }
56,370
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
admined
contract admined { //This token contract is administered address public admin; //Admin address is public /** * @dev Contract constructor * define initial administrator */ constructor() internal { admin = msg.sender; //Set initial admin to contract creator emit Admined(a...
/** * @title Admin parameters * @dev Define administration parameters for this contract */
NatSpecMultiLine
transferAdminship
function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered require(_newAdmin != 0); admin = _newAdmin; emit TransferAdminship(admin); }
/** * @dev Function to set new admin address * @param _newAdmin The address to transfer administration to */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 597, 801 ] }
56,371
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public constant returns (uint256 bal) { return balances[_owner]; }
/** * @notice Get the balance of an _owner address. * @param _owner The address to be query. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 707, 827 ] }
56,372
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); //If you dont want that people destroy token if(_to == address(this)){ burnToken(msg.sender, _value); sell(msg.sender,_value); return true; } else { balances[msg...
/** * @notice transfer _value tokens to address _to * @param _to The address to transfer to. * @param _value The amount to be transferred. * @return success with boolean value true if done */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 1052, 1595 ] }
56,373
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_to != address(0)); //If you dont want that people destroy token balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); balances[_to]...
/** * @notice Transfer _value tokens from address _from to address _to using allowance msg.sender allowance on _from * @param _from The address where tokens comes. * @param _to The address to transfer to. * @param _value The amount to be transferred. * @return success with boolean value true if done */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 1937, 2380 ] }
56,374
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool success) { require((_value == 0) || (allowed[msg.sender][_spender] == 0)); //exploit mitigation allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @notice Assign allowance _value to _spender address to use the msg.sender balance * @param _spender The address to be allowed to spend. * @param _value The amount to be allowed. * @return success with boolean value true */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 2642, 2952 ] }
56,375
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @notice Get the allowance of an specified address to use another address balance. * @param _owner The address of the owner of the tokens. * @param _spender The address of the allowed spender. * @return remaining with the allowance value */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 3231, 3384 ] }
56,376
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
mintToken
function mintToken(address _target, uint256 _mintedAmount) private { balances[_target] = SafeMath.add(balances[_target], _mintedAmount); totalSupply = SafeMath.add(totalSupply, _mintedAmount); emit Transfer(0, this, _mintedAmount); emit Transfer(this, _target, _mintedAmount); }
/** * @dev Mint token to an specified address. * @param _target The address of the receiver of the tokens. * @param _mintedAmount amount to mint. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 3561, 3885 ] }
56,377
MEGA
MEGA.sol
0x8ea0469e13d6dd23fb163f428fb1cea9cd4294e8
Solidity
MEGA
contract MEGA is admined,IERC20Token { //Standar definition of an ERC20Token using SafeMath for uint256; //SafeMath is used for uint256 operations /////////////////////////////////////////////////////////////////////////////////////// /// Token Related /// /////////////////////////////////////...
/** * @title ERC20Token * @notice Token definition contract */
NatSpecMultiLine
burnToken
function burnToken(address _target, uint256 _burnedAmount) private { balances[_target] = SafeMath.sub(balances[_target], _burnedAmount); totalSupply = SafeMath.sub(totalSupply, _burnedAmount); emit Burned(_target, _burnedAmount); }
/** * @dev Burn token of an specified address. * @param _target The address of the holder of the tokens. * @param _burnedAmount amount to burn. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://6c8b72b1f7e90d45f027dac77afc5dd0de48f4cd601c2c5235d1f328da73c1f0
{ "func_code_index": [ 4060, 4328 ] }
56,378
BlankFaceHaylos
BlankFaceHaylosCollab.sol
0xc4e27c3f0706945932adee2b1d5ce118b70f3fe2
Solidity
BlankFaceHaylos
contract BlankFaceHaylos is ERC721Enumerable, Ownable, Functions, Metadata { using Strings for uint256; BLANKFACE private blankface; uint256 public constant COLLECTION1_MAX = 10000; uint256 public constant COLLECTION2_MAX = 10000; uint256 public constant COLLECTION3_MAX = 10000; uint256 public c...
addToCollection1
function addToCollection1(address[] calldata addresses) external override onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "Can't add the null address"); _Collection1[addresses[i]] = true; _Collection1Claimed[addresses[i]] > 0 ? _Collection1Claimed[addre...
//Collection1
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://088568d4a6e2414908455c2680a5059e53403e6d0bc2886325281f7c5ffd2d5b
{ "func_code_index": [ 1726, 2082 ] }
56,379
BlankFaceHaylos
BlankFaceHaylosCollab.sol
0xc4e27c3f0706945932adee2b1d5ce118b70f3fe2
Solidity
BlankFaceHaylos
contract BlankFaceHaylos is ERC721Enumerable, Ownable, Functions, Metadata { using Strings for uint256; BLANKFACE private blankface; uint256 public constant COLLECTION1_MAX = 10000; uint256 public constant COLLECTION2_MAX = 10000; uint256 public constant COLLECTION3_MAX = 10000; uint256 public c...
addToCollection2
function addToCollection2(address[] calldata addresses) external override onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "Can't add the null address"); _Collection2[addresses[i]] = true; _Collection2Claimed[addresses[i]] > 0 ? _Collection2Claimed[addre...
//Collection2
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://088568d4a6e2414908455c2680a5059e53403e6d0bc2886325281f7c5ffd2d5b
{ "func_code_index": [ 2692, 3048 ] }
56,380
BlankFaceHaylos
BlankFaceHaylosCollab.sol
0xc4e27c3f0706945932adee2b1d5ce118b70f3fe2
Solidity
BlankFaceHaylos
contract BlankFaceHaylos is ERC721Enumerable, Ownable, Functions, Metadata { using Strings for uint256; BLANKFACE private blankface; uint256 public constant COLLECTION1_MAX = 10000; uint256 public constant COLLECTION2_MAX = 10000; uint256 public constant COLLECTION3_MAX = 10000; uint256 public c...
addToCollection3
function addToCollection3(address[] calldata addresses) external override onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "Can't add the null address"); _Collection3[addresses[i]] = true; _Collection3Claimed[addresses[i]] > 0 ? _Collection3Claimed[addre...
//Collection3
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://088568d4a6e2414908455c2680a5059e53403e6d0bc2886325281f7c5ffd2d5b
{ "func_code_index": [ 3658, 4014 ] }
56,381
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC165
interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This f...
/** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 374, 455 ] }
56,382
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) external view returns (uint256 balance);
/** * @dev Returns the number of tokens in ``owner``'s account. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 719, 798 ] }
56,383
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) external view returns (address owner);
/** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 944, 1021 ] }
56,384
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId ) external;
/** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token mus...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1733, 1850 ] }
56,385
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
transferFrom
function transferFrom( address from, address to, uint256 tokenId ) external;
/** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If th...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2376, 2489 ] }
56,386
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
approve
function approve(address to, uint256 tokenId) external;
/** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2962, 3022 ] }
56,387
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
getApproved
function getApproved(uint256 tokenId) external view returns (address operator);
/** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3176, 3260 ] }
56,388
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address operator, bool _approved) external;
/** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3587, 3662 ] }
56,389
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address owner, address operator) external view returns (bool);
/** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3813, 3906 ] }
56,390
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external;
/** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {appro...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4483, 4630 ] }
56,391
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721Receiver
interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other valu...
/** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */
NatSpecMultiLine
onERC721Received
function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4);
/** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by ...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 528, 698 ] }
56,392
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the token collection name. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 106, 165 ] }
56,393
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token collection symbol. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 236, 297 ] }
56,394
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
tokenURI
function tokenURI(uint256 tokenId) external view returns (string memory);
/** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 398, 476 ] }
56,395
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) ...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 606, 998 ] }
56,396
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); }
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1928, 2250 ] }
56,397
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3007, 3187 ] }
56,398
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3412, 3646 ] }
56,399
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4016, 4281 ] }
56,400
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract");...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4532, 5048 ] }
56,401
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5228, 5432 ] }
56,402
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallR...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5619, 6020 ] }
56,403
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 6202, 6407 ] }
56,404
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCall...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 6596, 6998 ] }
56,405
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toString
function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 ...
/** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 184, 912 ] }
56,406
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toHexString
function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); }
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1017, 1362 ] }
56,407
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toHexString
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } ...
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1485, 1941 ] }
56,408
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC165
abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
/** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interface...
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 103, 265 ] }
56,409
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 971, 1281 ] }
56,410
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; }
/** * @dev See {IERC721-balanceOf}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1340, 1553 ] }
56,411
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; }
/** * @dev See {IERC721-ownerOf}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1610, 1854 ] }
56,412
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev See {IERC721Metadata-name}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1916, 2021 ] }
56,413
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev See {IERC721Metadata-symbol}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2085, 2194 ] }
56,414
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
tokenURI
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; }
/** * @dev See {IERC721Metadata-tokenURI}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2260, 2599 ] }
56,415
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_baseURI
function _baseURI() internal view virtual returns (string memory) { return ""; }
/** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2842, 2941 ] }
56,416
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
approve
function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor...
/** * @dev See {IERC721-approve}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2998, 3414 ] }
56,417
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
getApproved
function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; }
/** * @dev See {IERC721-getApproved}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3475, 3701 ] }
56,418
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); }
/** * @dev See {IERC721-setApprovalForAll}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3768, 4068 ] }
56,419
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; }
/** * @dev See {IERC721-isApprovedForAll}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4134, 4303 ] }
56,420
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
transferFrom
function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); }
/** * @dev See {IERC721-transferFrom}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4365, 4709 ] }
56,421
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); }
/** * @dev See {IERC721-safeTransferFrom}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4775, 4965 ] }
56,422
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); }
/** * @dev See {IERC721-safeTransferFrom}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5031, 5364 ] }
56,423
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_safeTransfer
function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); }
/** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is eq...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 6241, 6561 ] }
56,424
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_exists
function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); }
/** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 6869, 7001 ] }
56,425
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_isApprovedOrOwner
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s...
/** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 7163, 7516 ] }
56,426
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_safeMint
function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); }
/** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 7853, 7968 ] }
56,427
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_safeMint
function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); }
/** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 8190, 8516 ] }
56,428
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_mint
function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Tra...
/** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 8847, 9234 ] }
56,429
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_burn
function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), toke...
/** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 9458, 9823 ] }
56,430
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_transfer
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); //...
/** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 10155, 10738 ] }
56,431
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_approve
function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); }
/** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 10851, 11030 ] }
56,432
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_checkOnERC721Received
function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721...
/** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param to...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 11590, 12398 ] }
56,433
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {}
/** * @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 zero, ``...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 12965, 13096 ] }
56,434
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @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 virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 399, 491 ] }
56,435
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1050, 1149 ] }
56,436
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(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
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1299, 1496 ] }
56,437
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 161, 388 ] }
56,438
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 536, 735 ] }
56,439
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 885, 1393 ] }
56,440
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1544, 1744 ] }
56,441
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1905, 2105 ] }
56,442
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2347, 2450 ] }
56,443
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2728, 2831 ] }
56,444
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3085, 3188 ] }
56,445
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3484, 3587 ] }
56,446
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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 (consu...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4049, 4152 ] }
56,447
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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}. * * Counterp...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4626, 4871 ] }
56,448
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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 * uses an ...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5364, 5608 ] }
56,449
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
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) ...
/** * @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.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 6266, 6510 ] }
56,450
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ECDSA
library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the ...
/** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */
NatSpecMultiLine
recover
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { byt...
/** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half ord...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 1039, 2314 ] }
56,451
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ECDSA
library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the ...
/** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */
NatSpecMultiLine
recover
function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s);...
/** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 2569, 2945 ] }
56,452
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ECDSA
library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the ...
/** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */
NatSpecMultiLine
recover
function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yel...
/** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3071, 4585 ] }
56,453
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ECDSA
library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the ...
/** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */
NatSpecMultiLine
toEthSignedMessageHash
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); }
/** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4880, 5154 ] }
56,454
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
ECDSA
library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the ...
/** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */
NatSpecMultiLine
toTypedDataHash
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); }
/** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5499, 5700 ] }
56,455
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
JPandFriends
contract JPandFriends is Context, ERC721, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _whiteListCount; uint256 public salePrice = 37 * 10**15; uint256 public constant MAX_ELEMENTS = 4000; address...
setPrice
function setPrice(uint256 _price) public onlyOwner{ salePrice = _price; }
// Set price
LineComment
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3292, 3384 ] }
56,456
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
JPandFriends
contract JPandFriends is Context, ERC721, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _whiteListCount; uint256 public salePrice = 37 * 10**15; uint256 public constant MAX_ELEMENTS = 4000; address...
withdraw
function withdraw() public onlyOwner{ uint amount = address(this).balance; // send all Ether to owner // Owner can receive Ether since the address of owner is payable (bool success, ) = owner().call{value: amount}(""); require(success, "Failed to send Ether"); }
// Function to withdraw all Ether and tokens from this contract.
LineComment
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 3540, 3861 ] }
56,457
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
JPandFriends
contract JPandFriends is Context, ERC721, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _whiteListCount; uint256 public salePrice = 37 * 10**15; uint256 public constant MAX_ELEMENTS = 4000; address...
updateRoyalties
function updateRoyalties(address payable recipient, uint256 bps) external onlyOwner { _royaltyRecipient = recipient; _royaltyBps = bps; emit UpdateRoyalty(recipient, bps); }
/** * @dev Update royalties */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4564, 4774 ] }
56,458
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
JPandFriends
contract JPandFriends is Context, ERC721, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _whiteListCount; uint256 public salePrice = 37 * 10**15; uint256 public constant MAX_ELEMENTS = 4000; address...
getRoyalties
function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; bps = new uint256[](1); bps[0] = _royaltyBps; ...
/** * ROYALTY FUNCTIONS */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 4823, 5217 ] }
56,459
JPandFriends
JPandFriends.sol
0x633cfa9ac099d18c1b33736892427f0a7c1d120a
Solidity
JPandFriends
contract JPandFriends is Context, ERC721, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _whiteListCount; uint256 public salePrice = 37 * 10**15; uint256 public constant MAX_ELEMENTS = 4000; address...
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) { return ERC721.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; }...
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://327342c26e4311f78fa2b6b056476c26fc567aa663743e220575714fa19536a8
{ "func_code_index": [ 5988, 6325 ] }
56,460