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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SuperOneToken | SuperOneToken.sol | 0xb149d8c556d888785ad13adb67ed29dc64edcd71 | Solidity | ERC20Mintable | contract ERC20Mintable is ERC20, MinterRole {
/**
* @dev See `ERC20._mint`.
*
* Requirements:
*
* - the caller must have the `MinterRole`.
*/
function mint(address account, uint256 amount) public onlyMinter returns (bool) {
_mint(account, amount);
return t... | /**
* @dev Extension of `ERC20` that adds a set of accounts with the `MinterRole`,
* which have permission to mint (create) new tokens as they see fit.
*
* At construction, the deployer of the contract is the only minter.
*/ | NatSpecMultiLine | mint | function mint(address account, uint256 amount) public onlyMinter returns (bool) {
_mint(account, amount);
return true;
}
| /**
* @dev See `ERC20._mint`.
*
* Requirements:
*
* - the caller must have the `MinterRole`.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://a67ac69edad8d6af51988e6bce78ab9ce8b6a6981c9fe5cea4eec75c4815d904 | {
"func_code_index": [
184,
332
]
} | 1,800 | |
SuperOneToken | SuperOneToken.sol | 0xb149d8c556d888785ad13adb67ed29dc64edcd71 | Solidity | ERC20Capped | contract ERC20Capped is ERC20Mintable {
uint256 private _cap;
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor (uint256 cap) public {
require(cap > 0, "ERC20Capped: cap is 0");
_cap = cap;
... | /**
* @dev Extension of `ERC20Mintable` that adds a cap to the supply of tokens.
*/ | NatSpecMultiLine | cap | function cap() public view returns (uint256) {
return _cap;
}
| /**
* @dev Returns the cap on the token's total supply.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://a67ac69edad8d6af51988e6bce78ab9ce8b6a6981c9fe5cea4eec75c4815d904 | {
"func_code_index": [
406,
486
]
} | 1,801 | |
SuperOneToken | SuperOneToken.sol | 0xb149d8c556d888785ad13adb67ed29dc64edcd71 | Solidity | ERC20Capped | contract ERC20Capped is ERC20Mintable {
uint256 private _cap;
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor (uint256 cap) public {
require(cap > 0, "ERC20Capped: cap is 0");
_cap = cap;
... | /**
* @dev Extension of `ERC20Mintable` that adds a cap to the supply of tokens.
*/ | NatSpecMultiLine | _mint | function _mint(address account, uint256 value) internal {
require(totalSupply().add(value) <= _cap, "ERC20Capped: cap exceeded");
super._mint(account, value);
}
| /**
* @dev See `ERC20Mintable.mint`.
*
* Requirements:
*
* - `value` must not cause the total supply to go over the cap.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://a67ac69edad8d6af51988e6bce78ab9ce8b6a6981c9fe5cea4eec75c4815d904 | {
"func_code_index": [
654,
842
]
} | 1,802 | |
LogicManager | LogicManager.sol | 0x3c51ea0d1d0aed9a4da689f8092c20e51e30a01b | Solidity | Owned | contract Owned {
// The owner
address public owner;
event OwnerChanged(address indexed _newOwner);
/**
* @dev Throws if the sender is not the owner.
*/
modifier onlyOwner {
require(msg.sender == owner, "Must be owner");
_;
}
constructor() public {... | changeOwner | function changeOwner(address _newOwner) external onlyOwner {
require(_newOwner != address(0), "Address must not be null");
owner = _newOwner;
emit OwnerChanged(_newOwner);
}
| /**
* @dev Lets the owner transfer ownership of the contract to a new owner.
* @param _newOwner The new owner.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://714c85ff2e33b84b9be095b3ec67a480dc131346a86f58ae9d3e2f774e8dc1cf | {
"func_code_index": [
497,
707
]
} | 1,803 | ||
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | KriptoPark | function KriptoPark() public {
symbol = "PARK";
name = "KriptoPark";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[0xBCC379700A51bC482DF1AF1034d4431E32F613d2] = _totalSupply; //MEW address here
Transfer(address(0), 0xBCC379700A51bC482DF1AF1034d4431E32F613d2, _totalSup... | // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
457,
836
]
} | 1,804 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
1024,
1145
]
} | 1,805 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
1365,
1494
]
} | 1,806 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
1838,
2115
]
} | 1,807 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
2623,
2831
]
} | 1,808 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
3362,
3720
]
} | 1,809 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
4003,
4159
]
} | 1,810 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
4514,
4831
]
} | 1,811 | |
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
5023,
5082
]
} | 1,812 | ||
KriptoPark | KriptoPark.sol | 0x91ad3d885b9ac34a2295a01f3a92270c87ab7e94 | Solidity | KriptoPark | contract KriptoPark is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://608126aa0a8ed81469606f54bb87277043dbc6dd2e8ac4ff907a04e932d7dea2 | {
"func_code_index": [
5315,
5504
]
} | 1,813 | |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
399,
491
]
} | 1,814 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1201,
1398
]
} | 1,815 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
374,
455
]
} | 1,816 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
719,
798
]
} | 1,817 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
944,
1021
]
} | 1,818 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1733,
1850
]
} | 1,819 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
2376,
2489
]
} | 1,820 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
2962,
3022
]
} | 1,821 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3176,
3260
]
} | 1,822 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3587,
3662
]
} | 1,823 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3813,
3906
]
} | 1,824 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4483,
4630
]
} | 1,825 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _su... | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
* taken from BoringBananaCo Implmentation
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return _supportedInterfaces[interfaceId];
}
| /**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
711,
866
]
} | 1,826 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _su... | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
* taken from BoringBananaCo Implmentation
*/ | NatSpecMultiLine | _registerInterface | function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
| /**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 inval... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1268,
1474
]
} | 1,827 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
184,
912
]
} | 1,828 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1017,
1362
]
} | 1,829 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1485,
1941
]
} | 1,830 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _add | function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
retur... | /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
905,
1324
]
} | 1,831 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _remove | function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an ... | /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1495,
2920
]
} | 1,832 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _contains | function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3001,
3135
]
} | 1,833 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _length | function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3216,
3330
]
} | 1,834 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _at | function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3679,
3804
]
} | 1,835 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _values | function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
| /**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4349,
4465
]
} | 1,836 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4714,
4844
]
} | 1,837 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5015,
5151
]
} | 1,838 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5232,
5377
]
} | 1,839 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5458,
5580
]
} | 1,840 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5929,
6065
]
} | 1,841 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | values | function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
| /**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6610,
6741
]
} | 1,842 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6990,
7147
]
} | 1,843 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7318,
7481
]
} | 1,844 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7562,
7734
]
} | 1,845 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7815,
7937
]
} | 1,846 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
8286,
8449
]
} | 1,847 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | values | function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
assembly {
result := store
}
return result;
}
| /**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
8994,
9265
]
} | 1,848 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
9508,
9644
]
} | 1,849 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
9815,
9957
]
} | 1,850 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
10038,
10189
]
} | 1,851 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
10270,
10389
]
} | 1,852 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
10738,
10880
]
} | 1,853 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | values | function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
assembly {
result := store
}
return result;
}
| /**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
11425,
11693
]
} | 1,854 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _set | function _set(
Map storage map,
bytes32 key,
bytes32 value
) private returns (bool) {
map._values[key] = value;
return map._keys.add(key);
}
| /**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
919,
1119
]
} | 1,855 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _remove | function _remove(Map storage map, bytes32 key) private returns (bool) {
delete map._values[key];
return map._keys.remove(key);
}
| /**
* @dev Removes a key-value pair from a map. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1289,
1445
]
} | 1,856 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _contains | function _contains(Map storage map, bytes32 key) private view returns (bool) {
return map._keys.contains(key);
}
| /**
* @dev Returns true if the key is in the map. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1524,
1655
]
} | 1,857 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _length | function _length(Map storage map) private view returns (uint256) {
return map._keys.length();
}
| /**
* @dev Returns the number of key-value pairs in the map. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1745,
1859
]
} | 1,858 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _at | function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
bytes32 key = map._keys.at(index);
return (key, map._values[key]);
}
| /**
* @dev Returns the key-value pair stored at position `index` in the map. O(1).
*
* Note that there are no guarantees on the ordering of entries inside the
* array, and it may change when more entries are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
2219,
2402
]
} | 1,859 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _tryGet | function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
bytes32 value = map._values[key];
if (value == bytes32(0)) {
return (_contains(map, key), bytes32(0));
} else {
return (true, value);
}
}
| /**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
2545,
2840
]
} | 1,860 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _get | function _get(Map storage map, bytes32 key) private view returns (bytes32) {
bytes32 value = map._values[key];
require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key");
return value;
}
| /**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
2996,
3237
]
} | 1,861 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | _get | function _get(
Map storage map,
bytes32 key,
string memory errorMessage
) private view returns (bytes32) {
bytes32 value = map._values[key];
require(value != 0 || _contains(map, key), errorMessage);
return value;
}
| /**
* @dev Same as {_get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {_tryGet}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3522,
3805
]
} | 1,862 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | set | function set(
UintToAddressMap storage map,
uint256 key,
address value
) internal returns (bool) {
return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
}
| /**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4124,
4348
]
} | 1,863 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | remove | function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
return _remove(map._inner, bytes32(key));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4509,
4656
]
} | 1,864 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | contains | function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
return _contains(map._inner, bytes32(key));
}
| /**
* @dev Returns true if the key is in the map. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4735,
4891
]
} | 1,865 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | length | function length(UintToAddressMap storage map) internal view returns (uint256) {
return _length(map._inner);
}
| /**
* @dev Returns the number of elements in the map. O(1).
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4974,
5102
]
} | 1,866 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | at | function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
(bytes32 key, bytes32 value) = _at(map._inner, index);
return (uint256(key), address(uint160(uint256(value))));
}
| /**
* @dev Returns the element stored at position `index` in the set. O(1).
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5445,
5686
]
} | 1,867 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | tryGet | function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
(bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
return (success, address(uint160(uint256(value))));
}
| /**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5869,
6116
]
} | 1,868 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | get | function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
return address(uint160(uint256(_get(map._inner, bytes32(key)))));
}
| /**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6272,
6448
]
} | 1,869 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | EnumerableMap | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions... | /**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enu... | NatSpecMultiLine | get | function get(
UintToAddressMap storage map,
uint256 key,
string memory errorMessage
) internal view returns (address) {
return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
}
| /**
* @dev Same as {get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryGet}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6731,
6983
]
} | 1,870 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
606,
998
]
} | 1,871 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
1928,
2250
]
} | 1,872 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3007,
3187
]
} | 1,873 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3412,
3646
]
} | 1,874 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4016,
4281
]
} | 1,875 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4532,
5047
]
} | 1,876 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5227,
5431
]
} | 1,877 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5618,
6018
]
} | 1,878 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6200,
6405
]
} | 1,879 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6594,
6995
]
} | 1,880 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7218,
7935
]
} | 1,881 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
106,
165
]
} | 1,882 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
236,
297
]
} | 1,883 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
398,
476
]
} | 1,884 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
528,
698
]
} | 1,885 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
132,
192
]
} | 1,886 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
375,
479
]
} | 1,887 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
655,
729
]
} | 1,888 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _holderTokens[owner].length();
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3475,
3701
]
} | 1,889 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
3758,
3940
]
} | 1,890 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4002,
4107
]
} | 1,891 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4171,
4280
]
} | 1,892 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = baseURI();
// If there is no base URI, return the token URI.... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
4346,
5143
]
} | 1,893 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | baseURI | function baseURI() public view virtual returns (string memory) {
return _baseURI;
}
| /**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a prefix in {tokenURI} to each token's URI, or
* to the token ID if no specific URI is set for that token ID.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5377,
5479
]
} | 1,894 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
return _holderTokens[owner].at(index);
}
| /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5558,
5725
]
} | 1,895 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
// _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
return _tokenOwners.length();
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
5796,
6012
]
} | 1,896 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
(uint256 tokenId, ) = _tokenOwners.at(index);
return tokenId;
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6084,
6261
]
} | 1,897 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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 || ERC721.isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor ap... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6318,
6727
]
} | 1,898 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
6788,
7014
]
} | 1,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.