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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | produceWiner | function produceWiner() private {
//get the blockhash of the target blcok number
blcokHash = blockhash(blockNumber);
//convert hash to decimal
numberOfBlcokHash = uint(blcokHash);
//make sure that the block has been generated
require(numberOfBlcokHash != 0);
//calculating index of the... | //private function:hunt for the lucky dog | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
625,
1473
]
} | 11,400 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | goWiner | function goWiner() public {
produceWiner();
}
| //public function:hunt for the lucky dog | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
1520,
1584
]
} | 11,401 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | betYours | function betYours() public payable OnlyBet() {
//make sure that the block has not been generated
blcokHash = blockhash(blockNumber);
numberOfBlcokHash = uint(blcokHash);
require(numberOfBlcokHash == 0);
//add the player to the player list
sumOfPlayers = players.push(msg.sender);
}
| //public function:bet | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
1612,
1957
]
} | 11,402 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getTeamAddress | function getTeamAddress() public view returns(address addr) {
addr = teamAddress;
}
| //get the address of team | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
2525,
2627
]
} | 11,403 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getLowPrice | function getLowPrice() public view returns(uint low) {
low = lowestOffer;
}
| //get the minimum bet ETH | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
2659,
2753
]
} | 11,404 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getPlayerAddress | function getPlayerAddress(uint index) public view returns(address addr) {
addr = players[index];
}
| //get the player address from the index | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
2799,
2916
]
} | 11,405 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getSumOfPlayers | function getSumOfPlayers() public view returns(uint sum) {
sum = sumOfPlayers;
}
| //get sum of players | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
2943,
3042
]
} | 11,406 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getBlockNumber | function getBlockNumber() public view returns(uint num) {
num = blockNumber;
}
| //get the target blcok number | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
3078,
3175
]
} | 11,407 | |||
Game01 | Game01.sol | 0xd20ae1b3c922b4e8ae9eb6e3f4302e71b8c12970 | Solidity | Game01 | contract Game01 {
//the address of our team
address public teamAddress;
//addresses of players
address[] public players;
//sum of players
uint public sumOfPlayers;
//minimum bet
uint public lowestOffer;
//target block number
uint public blockNumber;
//store the has... | getBalances | function getBalances() public view returns(uint balace) {
balace = address(this).balance;
}
| //get the balance of contract(bonus pools) | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://b4672b88db4e3acd30772b8395fcdf64192d39762cac65405745ba95ad7f2ea6 | {
"func_code_index": [
3224,
3334
]
} | 11,408 | |||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
event NotPausable();
bool public paused = false;
bool public canPause = true;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused || msg.se... | pause | function pause() onlyOwner whenNotPaused public {
require(canPause == true);
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
595,
739
]
} | 11,409 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
event NotPausable();
bool public paused = false;
bool public canPause = true;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused || msg.se... | unpause | function unpause() onlyOwner whenPaused public {
require(paused == true);
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
823,
951
]
} | 11,410 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
event NotPausable();
bool public paused = false;
bool public canPause = true;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused || msg.se... | notPausable | function notPausable() onlyOwner public{
paused = false;
canPause = false;
emit NotPausable();
}
| /**
* @dev Prevent the token from ever being paused again
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
1033,
1166
]
} | 11,411 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | Mintable | contract Mintable is BasicToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that will rec... | mint | function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
return true;
}
| /**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
475,
758
]
} | 11,412 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | Mintable | contract Mintable is BasicToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that will rec... | finishMinting | function finishMinting() onlyOwner canMint public returns (bool) {
mintingFinished = true;
emit MintFinished();
return true;
}
| /**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
875,
1022
]
} | 11,413 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | PausableToken | contract PausableToken is BasicToken, ERC20Detailed, Pausable, ERC20Burnable, Mintable {
string public constant NAME = "Korea Racing Gold Pay";
string public constant SYMBOL = "KRGP";
uint256 public constant DECIMALS = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * 10**8;
/**
*... | transfer | function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transfer(_to, _value);
}
| /**
* @dev Transfer tokens when not paused
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
369,
510
]
} | 11,414 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | PausableToken | contract PausableToken is BasicToken, ERC20Detailed, Pausable, ERC20Burnable, Mintable {
string public constant NAME = "Korea Racing Gold Pay";
string public constant SYMBOL = "KRGP";
uint256 public constant DECIMALS = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * 10**8;
/**
*... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transferFrom(_from, _to, _value);
}
| /**
* @dev transferFrom function to tansfer tokens when token is not paused
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
614,
785
]
} | 11,415 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | PausableToken | contract PausableToken is BasicToken, ERC20Detailed, Pausable, ERC20Burnable, Mintable {
string public constant NAME = "Korea Racing Gold Pay";
string public constant SYMBOL = "KRGP";
uint256 public constant DECIMALS = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * 10**8;
/**
*... | approve | function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
return super.approve(_spender, _value);
}
| /**
* @dev approve spender when not paused
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
856,
1005
]
} | 11,416 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | PausableToken | contract PausableToken is BasicToken, ERC20Detailed, Pausable, ERC20Burnable, Mintable {
string public constant NAME = "Korea Racing Gold Pay";
string public constant SYMBOL = "KRGP";
uint256 public constant DECIMALS = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * 10**8;
/**
*... | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) {
return super.increaseApproval(_spender, _addedValue);
}
| /**
* @dev increaseApproval of spender when not paused
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
1088,
1270
]
} | 11,417 | ||
PausableToken | PausableToken.sol | 0xdcef1d522d76509860ea7936cb581f283200fc64 | Solidity | PausableToken | contract PausableToken is BasicToken, ERC20Detailed, Pausable, ERC20Burnable, Mintable {
string public constant NAME = "Korea Racing Gold Pay";
string public constant SYMBOL = "KRGP";
uint256 public constant DECIMALS = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * 10**8;
/**
*... | decreaseApproval | function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) {
return super.decreaseApproval(_spender, _subtractedValue);
}
| /**
* @dev decreaseApproval of spender when not paused
**/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://e4082f857b981989b593d95df561a14b938558df776414e0a92684ae492f95c1 | {
"func_code_index": [
1353,
1545
]
} | 11,418 | ||
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
374,
455
]
} | 11,419 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
719,
798
]
} | 11,420 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
944,
1021
]
} | 11,421 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1733,
1850
]
} | 11,422 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2376,
2489
]
} | 11,423 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2962,
3022
]
} | 11,424 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3176,
3260
]
} | 11,425 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3587,
3662
]
} | 11,426 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3813,
3906
]
} | 11,427 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4483,
4630
]
} | 11,428 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
528,
698
]
} | 11,429 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
106,
165
]
} | 11,430 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
236,
297
]
} | 11,431 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
398,
476
]
} | 11,432 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
103,
265
]
} | 11,433 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
606,
998
]
} | 11,434 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1928,
2250
]
} | 11,435 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3007,
3187
]
} | 11,436 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3412,
3646
]
} | 11,437 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4016,
4281
]
} | 11,438 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4532,
5047
]
} | 11,439 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
5227,
5431
]
} | 11,440 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 verifyCallRe... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
5618,
6018
]
} | 11,441 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
6200,
6405
]
} | 11,442 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
6594,
6995
]
} | 11,443 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | verifyCallResult | function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
... | /**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
7218,
7935
]
} | 11,444 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
184,
912
]
} | 11,445 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1017,
1362
]
} | 11,446 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1485,
1941
]
} | 11,447 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
971,
1281
]
} | 11,448 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1340,
1553
]
} | 11,449 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1610,
1854
]
} | 11,450 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1916,
2021
]
} | 11,451 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2085,
2194
]
} | 11,452 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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(), ".json")) :... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2260,
2608
]
} | 11,453 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2851,
2950
]
} | 11,454 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3007,
3423
]
} | 11,455 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3484,
3710
]
} | 11,456 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 {
_setApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3777,
3937
]
} | 11,457 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4003,
4172
]
} | 11,458 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4234,
4578
]
} | 11,459 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4644,
4834
]
} | 11,460 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4900,
5233
]
} | 11,461 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
6110,
6430
]
} | 11,462 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
6738,
6870
]
} | 11,463 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
7032,
7385
]
} | 11,464 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
7722,
7837
]
} | 11,465 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
8059,
8385
]
} | 11,466 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
8716,
9103
]
} | 11,467 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
9327,
9692
]
} | 11,468 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
10024,
10607
]
} | 11,469 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
10720,
10899
]
} | 11,470 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
| /**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
11036,
11356
]
} | 11,471 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
11916,
12720
]
} | 11,472 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
13287,
13418
]
} | 11,473 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the total amount of tokens stored by the contract.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
132,
192
]
} | 11,474 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
| /**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
375,
479
]
} | 11,475 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) external view returns (uint256);
| /**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
655,
729
]
} | 11,476 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
605,
834
]
} | 11,477 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
| /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
913,
1174
]
} | 11,478 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1245,
1363
]
} | 11,479 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1435,
1673
]
} | 11,480 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnume... | /**
* @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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
2281,
2875
]
} | 11,481 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToOwnerEnumeration | function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
| /**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3171,
3397
]
} | 11,482 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToAllTokensEnumeration | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| /**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
3593,
3762
]
} | 11,483 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromOwnerEnumeration | function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 ... | /**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
4384,
5377
]
} | 11,484 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromAllTokensEnumeration | function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allT... | /**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
5667,
6751
]
} | 11,485 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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() {
_transferOwnership(_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 | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
408,
500
]
} | 11,486 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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() {
_transferOwnership(_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 {
_transferOwnership(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1059,
1167
]
} | 11,487 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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() {
_transferOwnership(_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");
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1317,
1523
]
} | 11,488 |
BAYC4POOR | BAYC4POOR.sol | 0x426109c5ec3f5c0beab79fe6cb7ccf62bf468136 | 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() {
_transferOwnership(_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) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://5e508df301d2d10e7f601ce904df00e7d3a05170da7fa6a46bfde17c35808418 | {
"func_code_index": [
1678,
1874
]
} | 11,489 |
Trextokenclassic | Trextokenclassic.sol | 0x16c51a28cdd664b6b713fbb1e473ff40d151b020 | 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;
}
/*
* @d... | /*
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | Comment | 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.
*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://3b79485c20865cb933fc1f691d2eee68d1103c3dccfeccc3144827844419219e | {
"func_code_index": [
94,
301
]
} | 11,490 | |
Trextokenclassic | Trextokenclassic.sol | 0x16c51a28cdd664b6b713fbb1e473ff40d151b020 | 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;
}
/*
* @d... | /*
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | Comment | 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.
*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://3b79485c20865cb933fc1f691d2eee68d1103c3dccfeccc3144827844419219e | {
"func_code_index": [
390,
690
]
} | 11,491 | |
Trextokenclassic | Trextokenclassic.sol | 0x16c51a28cdd664b6b713fbb1e473ff40d151b020 | 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;
}
/*
* @d... | /*
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | Comment | 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).
*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://3b79485c20865cb933fc1f691d2eee68d1103c3dccfeccc3144827844419219e | {
"func_code_index": [
809,
937
]
} | 11,492 | |
Trextokenclassic | Trextokenclassic.sol | 0x16c51a28cdd664b6b713fbb1e473ff40d151b020 | 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;
}
/*
* @d... | /*
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | Comment | 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.
*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://3b79485c20865cb933fc1f691d2eee68d1103c3dccfeccc3144827844419219e | {
"func_code_index": [
1094,
1240
]
} | 11,493 | |
SelectToken | gist-1f87777a8e5027809ee13e6029c9b3ee/SelectToken.sol | 0x01fb70ea8acfdd5435c8e8bd1531d96d57ced0ec | Solidity | SelectToken | contract SelectToken is ERC20, Ownable {
/**
* @dev Initializes the contract with correct parameters.
*/
constructor() ERC20("SmartElectrum", "SELECT") {
_mint(msg.sender, 100_000_000 * 10 ** decimals());
}
/**
* @notice Destroy given amount of tokens and reduce t... | /**
* @title Implementation of ERC20 interface
* @author Michal Wojcik
* @notice This is SmartElectrum project ERC20 token implementation
*/ | NatSpecMultiLine | burnTokens | function burnTokens(uint amount) external onlyOwner() {
_burn(msg.sender, amount);
}
| /**
* @notice Destroy given amount of tokens and reduce the total supply.
* Can be called ONLY by contract OWNER.
* @param amount amount of tokens to destroy
* @dev Emits a {Transfer} event with `to` set to the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | Unlicense | ipfs://6e97df5a390a09b2e0da706d66bd3f6e95e3d1620570bade0aed0125f60b1963 | {
"func_code_index": [
524,
627
]
} | 11,494 |
GOFGV2USDTPool | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0xa7299cda1eed61772558ef20decaf854887a3c5b | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, addr... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | callOptionalReturn | function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checke... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://c8b1f441e68cd6caae122b3381b1758188a413d966f263467007efc2cef74a76 | {
"func_code_index": [
2127,
3246
]
} | 11,495 |
GOFGV2USDTPool | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0xa7299cda1eed61772558ef20decaf854887a3c5b | Solidity | GOFGV2USDTPool | contract GOFGV2USDTPool is GOFTokenWrapper, IRewardDistributionRecipient {
IERC20 public gof = IERC20(0x488E0369f9BC5C40C002eA7c1fe4fd01A198801c);
uint256 public constant DURATION = 7 days;
uint256 public constant startTime = 1605096000; //utc+8 2020-11-11 20:00:00
uint256 public periodFinis... | rewardPerToken | function rewardPerToken() public view returns (uint256) {
if (totalSupply() == 0) {
return rewardPerTokenStored;
}
return
rewardPerTokenStored.add(
lastTimeRewardApplicable()
.sub(lastUpdateTime)
.mul(rewardRate)
.mul(_guni... | /**
* Calculate the rewards for each token
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://c8b1f441e68cd6caae122b3381b1758188a413d966f263467007efc2cef74a76 | {
"func_code_index": [
1451,
1878
]
} | 11,496 | ||
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (addres... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
265,
368
]
} | 11,497 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
251,
437
]
} | 11,498 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
707,
848
]
} | 11,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.