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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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 ... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
5227,
5431
]
} | 58,961 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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 ... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
5618,
6018
]
} | 58,962 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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 ... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
6200,
6405
]
} | 58,963 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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 ... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
6594,
6995
]
} | 58,964 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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 ... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
7218,
7935
]
} | 58,965 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
528,
698
]
} | 58,966 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
374,
455
]
} | 58,967 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
103,
265
]
} | 58,968 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
719,
798
]
} | 58,969 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
944,
1021
]
} | 58,970 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1733,
1850
]
} | 58,971 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2376,
2489
]
} | 58,972 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2962,
3022
]
} | 58,973 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3176,
3260
]
} | 58,974 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3587,
3662
]
} | 58,975 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3813,
3906
]
} | 58,976 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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.
*/
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4483,
4630
]
} | 58,977 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the total amount of tokens stored by the contract.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
132,
192
]
} | 58,978 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
375,
479
]
} | 58,979 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
655,
729
]
} | 58,980 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | name | function name() external view returns (string memory);
| /**
* @dev Returns the token collection name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
106,
165
]
} | 58,981 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token collection symbol.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
236,
297
]
} | 58,982 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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... | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory);
| /**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
398,
476
]
} | 58,983 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | tryAdd | function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
| /**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
161,
388
]
} | 58,984 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | trySub | function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
| /**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
536,
735
]
} | 58,985 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | tryMul | function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
885,
1393
]
} | 58,986 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | tryDiv | function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1544,
1744
]
} | 58,987 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | tryMod | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1905,
2105
]
} | 58,988 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2347,
2450
]
} | 58,989 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2728,
2831
]
} | 58,990 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3085,
3188
]
} | 58,991 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3484,
3587
]
} | 58,992 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consu... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4049,
4152
]
} | 58,993 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterp... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4626,
4871
]
} | 58,994 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an ... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
5364,
5608
]
} | 58,995 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
6266,
6510
]
} | 58,996 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
971,
1281
]
} | 58,997 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1340,
1553
]
} | 58,998 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1610,
1854
]
} | 58,999 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1916,
2021
]
} | 59,000 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2085,
2194
]
} | 59,001 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
| /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2260,
2599
]
} | 59,002 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2842,
2941
]
} | 59,003 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
2998,
3414
]
} | 59,004 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3475,
3701
]
} | 59,005 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
3768,
4068
]
} | 59,006 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4134,
4303
]
} | 59,007 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4365,
4709
]
} | 59,008 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
4775,
4965
]
} | 59,009 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
5031,
5364
]
} | 59,010 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _safeTransfer | function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
6241,
6561
]
} | 59,011 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
6869,
7001
]
} | 59,012 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
7163,
7516
]
} | 59,013 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
7853,
7968
]
} | 59,014 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _safeMint | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
8190,
8516
]
} | 59,015 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
8847,
9234
]
} | 59,016 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
9458,
9823
]
} | 59,017 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
//... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
10155,
10738
]
} | 59,018 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
10851,
11030
]
} | 59,019 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _checkOnERC721Received | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
11590,
12394
]
} | 59,020 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
12961,
13092
]
} | 59,021 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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());
... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
399,
491
]
} | 59,022 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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());
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1050,
1149
]
} | 59,023 | ||
FishTankNFT | @openzeppelin/contracts/utils/Strings.sol | 0x31b94da59767a9bc1c2bed8236ccb6f15b794d8b | 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());
... | 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.7+commit.e28d00a7 | None | ipfs://236d001cf64d6155763c65a9c7f57925bcfd40f6b997f2c347b1bed579227211 | {
"func_code_index": [
1299,
1496
]
} | 59,024 | ||
Utils | contracts/Utils.sol | 0xc9e69b6a134deda6c42c8df027d0672538030eca | Solidity | Utils | contract Utils is Ownable {
using ECDSA for bytes32;
mapping(address => bool) public controllers;
mapping(uint => address) private _randomSource;
uint16 private _randomIndex = 0;
uint private _randomCalls = 0;
constructor() {
// Fill random source addresses
_randomS... | /**
* Some util functions
*/ | NatSpecMultiLine | hashTransaction | function hashTransaction(address minter) private pure returns (bytes32) {
bytes32 argsHash = keccak256(abi.encodePacked(minter));
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", argsHash));
}
| // | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://2d7b64a25178d512655ff6b38fdc1ef4a45ec44edb0e4bceb195ba9f2443198b | {
"func_code_index": [
2549,
2790
]
} | 59,025 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
92,
152
]
} | 59,026 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
233,
306
]
} | 59,027 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
524,
606
]
} | 59,028 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
879,
967
]
} | 59,029 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1618,
1697
]
} | 59,030 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
2002,
2104
]
} | 59,031 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryAdd | function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
| /**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
157,
384
]
} | 59,032 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | trySub | function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
| /**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
528,
727
]
} | 59,033 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMul | function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
873,
1381
]
} | 59,034 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryDiv | function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1528,
1728
]
} | 59,035 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMod | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1885,
2085
]
} | 59,036 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
2318,
2421
]
} | 59,037 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consu... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
3193,
3296
]
} | 59,038 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterp... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
3758,
3969
]
} | 59,039 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invali... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
4674,
4884
]
} | 59,040 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
5528,
5738
]
} | 59,041 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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;
// solhint-disable-next-line no-inline-assembly
... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
590,
1017
]
} | 59,042 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1932,
2334
]
} | 59,043 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
3073,
3251
]
} | 59,044 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
3471,
3671
]
} | 59,045 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
4031,
4262
]
} | 59,046 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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");
// solhint-disa... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
4508,
5043
]
} | 59,047 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
5218,
5422
]
} | 59,048 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
5604,
6031
]
} | 59,049 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
6208,
6413
]
} | 59,050 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 return f... | /**
* @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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
6597,
7025
]
} | 59,051 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 () {
_owner = _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.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
450,
542
]
} | 59,052 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 () {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1093,
1246
]
} | 59,053 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | 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 () {
_owner = _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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
1393,
1642
]
} | 59,054 |
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | MGINU | contract MGINU is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
//
string private _name = "MetalGearInu";
string private _symbol = "MGINU";
uint256 private _tTotal = 1000 * 10**9 * 10**uint256(_decimals);
// ... | //to recieve ETH | LineComment | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
6999,
7033
]
} | 59,055 | ||||
MGINU | MGINU.sol | 0xa80b091d274e33fff5fdcb722fefc6cc3992deb9 | Solidity | MGINU | contract MGINU is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
//
string private _name = "MetalGearInu";
string private _symbol = "MGINU";
uint256 private _tTotal = 1000 * 10**9 * 10**uint256(_decimals);
// ... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipie... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.7+commit.e28d00a7 | None | ipfs://631f9c7d61c8f9415952aab44cc1b83c5c1546d1dc1786731247de5e7a6c5116 | {
"func_code_index": [
13541,
14364
]
} | 59,056 | ||
SZOInvestNewQouta | SZOInvestNewQouta.sol | 0xe55175344973157a97aa5f6c8902b6fc39fd090f | Solidity | Ownable | contract Ownable {
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all events will be saved as log files
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)... | transferOwnership | function transferOwnership(address _newOwner, string memory newOwnerName) public onlyOwner{
uint256 idx;
if(ownerToProfile[_newOwner] == 0)
{
idx = ownerName.push(newOwnerName);
ownerToProfile[_newOwner] = idx;
}
emit OwnershipTransferred(owner,_newOwner);
newOwner = _newOwner;
}... | // This function has only one Owner. The ownership can be transferrable and only
// the current Owner will only be able to execute this function.
// Onwer can be Contract address | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://3996a3df81b71f3cb38fb08276fa3d821440ca5440dc2e8cbf984077d58fa689 | {
"func_code_index": [
1053,
1394
]
} | 59,057 | ||
SZOInvestNewQouta | SZOInvestNewQouta.sol | 0xe55175344973157a97aa5f6c8902b6fc39fd090f | Solidity | Ownable | contract Ownable {
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all events will be saved as log files
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)... | newOwnerConfirm | function newOwnerConfirm() public returns(bool){
if(newOwner == msg.sender)
{
owner = newOwner;
newOwner = address(0);
return true;
}
return false;
}
| // Function to confirm New Owner can execute | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://3996a3df81b71f3cb38fb08276fa3d821440ca5440dc2e8cbf984077d58fa689 | {
"func_code_index": [
1447,
1677
]
} | 59,058 | ||
SZOInvestNewQouta | SZOInvestNewQouta.sol | 0xe55175344973157a97aa5f6c8902b6fc39fd090f | Solidity | Ownable | contract Ownable {
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all events will be saved as log files
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)... | addOwner | function addOwner(address _newOwner,string memory newOwnerName) public onlyOwners{
require(owners[_newOwner] == false,"SZO/ERROR-already-owner");
require(newOwner != msg.sender,"SZO/ERROR-same-owner-add");
if(ownerToProfile[_newOwner] == 0)
{
uint256 idx = ownerName.push(newOwnerName);
ownerToProfil... | // Function to add Owner into a list. The person who wanted to add a new owner into this list but be an existing
// member of the Owners list. The log will be saved and can be traced / monitor who’s called this function. | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://3996a3df81b71f3cb38fb08276fa3d821440ca5440dc2e8cbf984077d58fa689 | {
"func_code_index": [
2165,
2606
]
} | 59,059 | ||
SZOInvestNewQouta | SZOInvestNewQouta.sol | 0xe55175344973157a97aa5f6c8902b6fc39fd090f | Solidity | Ownable | contract Ownable {
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all events will be saved as log files
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)... | removeOwner | function removeOwner(address _owner) public onlyOwners{
require(_owner != msg.sender,"SZO/ERROR-remove-yourself"); // can't remove your self
owners[_owner] = false;
emit RemoveOwner(_owner);
}
| // Function to remove the Owner from the Owners list. The person who wanted to remove any owner from Owners
// List must be an existing member of the Owners List. The owner cannot evict himself from the Owners
// List by his own, this is to ensure that there is at least one Owner of this ShuttleOne Smart Contract.
// T... | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://3996a3df81b71f3cb38fb08276fa3d821440ca5440dc2e8cbf984077d58fa689 | {
"func_code_index": [
3014,
3228
]
} | 59,060 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.