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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Enumerable | contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
//... | /**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | _addTokenToAllTokensEnumeration | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| /**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
5337,
5506
]
} | 2,807 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Enumerable | contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
//... | /**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | _removeTokenFromOwnerEnumeration | function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
ui... | /**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).... | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
6128,
7281
]
} | 2,808 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Enumerable | contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
//... | /**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | _removeTokenFromAllTokensEnumeration | function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length.sub(1);
uint256 tokenIndex = _a... | /**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
7571,
8658
]
} | 2,809 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Gets the token name.
* @return string representing the token name
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1078,
1168
]
} | 2,810 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Gets the token symbol.
* @return string representing the token symbol
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1278,
1372
]
} | 2,811 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
// Even if there is a base URI, it is only appended to non-empty token-specific URIs
if (bytes(_... | /**
* @dev Returns the URI for a given token ID. May return an empty string.
*
* If the token's URI is non-empty and a base URI was set (via
* {_setBaseURI}), it will be added to the token ID's URI as a prefix.
*
* Reverts if the token ID does not exist.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1680,
2242
]
} | 2,812 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | _setTokenURI | function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
| /**
* @dev Internal function to set the token URI for a given token.
*
* Reverts if the token ID does not exist.
*
* TIP: if all token IDs share a prefix (e.g. if your URIs look like
* `http://api.myproject.com/token/<id>`), use {_setBaseURI} to store
* it and save gas.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
2572,
2784
]
} | 2,813 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | _setBaseURI | function _setBaseURI(string memory baseURI) internal {
_baseURI = baseURI;
}
| /**
* @dev Internal function to set the base URI for all token IDs. It is
* automatically added as a prefix to the value returned in {tokenURI}.
*
* _Available since v2.5.0._
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
3000,
3095
]
} | 2,814 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | baseURI | function baseURI() external view returns (string memory) {
return _baseURI;
}
| /**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
3331,
3427
]
} | 2,815 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Metadata | contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*... | _burn | function _burn(address owner, uint256 tokenId) internal {
super._burn(owner, tokenId);
// Clear metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
| /**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use _burn(uint256) instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned by the msg.sender
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
3724,
3976
]
} | 2,816 | ||
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, ... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | mint | function mint(address to, uint256 tokenId) public onlyMinter returns (bool) {
_mint(to, tokenId);
return true;
}
| /**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
290,
430
]
} | 2,817 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, ... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | safeMint | function safeMint(address to, uint256 tokenId) public onlyMinter returns (bool) {
_safeMint(to, tokenId);
return true;
}
| /**
* @dev Function to safely mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
681,
829
]
} | 2,818 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, ... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | safeMint | function safeMint(address to, uint256 tokenId, bytes memory _data) public onlyMinter returns (bool) {
_safeMint(to, tokenId, _data);
return true;
}
| /**
* @dev Function to safely mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @param _data bytes data to send along with a safe transfer check.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1154,
1329
]
} | 2,819 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721MetadataMintable | contract ERC721MetadataMintable is ERC721Metadata, ERC721Mintable {
/**
* @dev Function to mint tokens
* @param to The address that will receive the minted tokens.
* @param tokenId The token id to mint.
* @param tokenURI The token URI of the minted token.
* @return A boolean that indi... | /**
* @title ERC721MetadataMintable
* @dev ERC721 minting logic with metadata
*/ | NatSpecMultiLine | mintWithTokenURI | function mintWithTokenURI(address to, uint256 tokenId, string memory tokenURI) public onlyMinter returns (bool) {
_mint(to, tokenId);
_setTokenURI(tokenId, tokenURI);
return true;
}
| /**
* @dev Function to mint tokens
* @param to The address that will receive the minted tokens.
* @param tokenId The token id to mint.
* @param tokenURI The token URI of the minted token.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
369,
587
]
} | 2,820 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | Pausable | contract Pausable is Context, PauserRole {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Unpaused(address account);
bool private ... | /**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your co... | NatSpecMultiLine | paused | function paused() public view returns (bool) {
return _paused;
}
| /**
* @dev Returns true if the contract is paused, and false otherwise.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
563,
646
]
} | 2,821 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | Pausable | contract Pausable is Context, PauserRole {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Unpaused(address account);
bool private ... | /**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your co... | NatSpecMultiLine | pause | function pause() public onlyPauser whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
| /**
* @dev Called by a pauser to pause, triggers stopped state.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1143,
1266
]
} | 2,822 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | Pausable | contract Pausable is Context, PauserRole {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Unpaused(address account);
bool private ... | /**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your co... | NatSpecMultiLine | unpause | function unpause() public onlyPauser whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
| /**
* @dev Called by a pauser to unpause, returns to normal state.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
1356,
1481
]
} | 2,823 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Burnable | contract ERC721Burnable is Context, BurnerRole, ERC721 {
/**
* @dev Burns a specific ERC721 token.
* @param tokenId uint256 id of the ERC721 token to be burned.
*/
function burn(uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner... | /**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
_burn(tokenId);
}
| /**
* @dev Burns a specific ERC721 token.
* @param tokenId uint256 id of the ERC721 token to be burned.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
188,
430
]
} | 2,824 |
TAIT | TAIT.sol | 0x91eb270469976168bc099b25cf02838c29656aab | Solidity | ERC721Burnable | contract ERC721Burnable is Context, BurnerRole, ERC721 {
/**
* @dev Burns a specific ERC721 token.
* @param tokenId uint256 id of the ERC721 token to be burned.
*/
function burn(uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner... | /**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | operatorBurn | function operatorBurn(uint256 tokenId) public onlyBurner returns (bool) {
_burn(tokenId);
}
| /**
* @dev Permits burns of a specific ERC721 token by Burner Role.
* @param tokenId uint256 id of the ERC721 token to be burned.
*/ | NatSpecMultiLine | v0.5.13+commit.5b0b510c | MIT | bzzr://517d20cc1d72f1cd9f7a238cb696f06b038f2c6b956874ccaa2959a78ce6ac7a | {
"func_code_index": [
593,
703
]
} | 2,825 |
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
104,
168
]
} | 2,826 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
261,
338
]
} | 2,827 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
584,
670
]
} | 2,828 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
971,
1063
]
} | 2,829 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
1770,
1853
]
} | 2,830 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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 r... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
2194,
2300
]
} | 2,831 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
290,
496
]
} | 2,832 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
805,
958
]
} | 2,833 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
1287,
1504
]
} | 2,834 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
1789,
2309
]
} | 2,835 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
2817,
2966
]
} | 2,836 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
3494,
3801
]
} | 2,837 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
4298,
4445
]
} | 2,838 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
4962,
5149
]
} | 2,839 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
658,
1322
]
} | 2,840 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
2301,
2727
]
} | 2,841 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
3538,
3726
]
} | 2,842 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
3970,
4183
]
} | 2,843 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
4587,
4830
]
} | 2,844 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | 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.
*
* Amon... | 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");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
5100,
5437
]
} | 2,845 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
622,
718
]
} | 2,846 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
1324,
1493
]
} | 2,847 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | 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.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
1656,
1925
]
} | 2,848 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = now + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
2109,
2352
]
} | 2,849 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(now > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
2431,
2753
]
} | 2,850 | ||
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | APEXLegendsETH | contract APEXLegendsETH is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | // Contract implementation | LineComment | manualSwap | function manualSwap() external onlyOwner() {
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
| // We are exposing these functions to be able to manual swap and send
// in case the token is highly valued and 5M becomes too much | LineComment | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
12343,
12520
]
} | 2,851 |
APEXLegendsETH | APEXLegendsETH.sol | 0xa02fc77d8d273b9c38df3f55935dab2a9f0f7511 | Solidity | APEXLegendsETH | contract APEXLegendsETH is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | // Contract implementation | LineComment | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | None | ipfs://93a0a729510f8ce08aec575ea70e44ea54f917b4abf747d025e0bf02aa2ccf0c | {
"func_code_index": [
16891,
16929
]
} | 2,852 | ||
Creatures | Operators.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | Solidity | Operators | contract Operators is Ownable
{
mapping (address=>bool) operatorAddress;
modifier onlyOperator() {
require(isOperator(msg.sender), "Access denied");
_;
}
function isOwner(address _addr) public view returns (bool) {
return owner() == _addr;
}
function isOpe... | withdrawERC20 | function withdrawERC20(IERC20 _tokenContract, address _admin) external onlyOwner
{
uint256 balance = _tokenContract.balanceOf(address(this));
_tokenContract.transfer(_admin, balance);
}
| /**
* @dev Owner can claim any tokens that transferred
* to this contract address
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
873,
1091
]
} | 2,853 | ||
Creatures | Ownable.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | 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 () internal {
address 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.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
506,
598
]
} | 2,854 |
Creatures | Ownable.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | 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 () internal {
address 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.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
1157,
1310
]
} | 2,855 |
Creatures | Ownable.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | 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 () internal {
address 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.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
1460,
1709
]
} | 2,856 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
259,
445
]
} | 2,857 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
723,
864
]
} | 2,858 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
1162,
1359
]
} | 2,859 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
1613,
2089
]
} | 2,860 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
2560,
2697
]
} | 2,861 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
3188,
3471
]
} | 2,862 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
3931,
4066
]
} | 2,863 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
4546,
4717
]
} | 2,864 |
CropsToken | @openzeppelin/contracts/math/SafeMath.sol | 0x9d05d91c914dcb40a80040d1f7a8bcdbe8d1b9b7 | Solidity | CropsToken | contract CropsToken is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
event LogBurn(uint256 decayrate, uint256 totalSupply);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed sp... | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d8a31935358b9affb2bb4e85a8390c66b3b266be2d249ecc07c7ac3c52859914 | {
"func_code_index": [
8051,
8148
]
} | 2,865 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
94,
154
]
} | 2,866 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
237,
310
]
} | 2,867 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
534,
616
]
} | 2,868 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
895,
983
]
} | 2,869 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
1647,
1726
]
} | 2,870 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
2039,
2141
]
} | 2,871 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
259,
445
]
} | 2,872 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
723,
864
]
} | 2,873 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
1162,
1359
]
} | 2,874 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
1613,
2089
]
} | 2,875 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
2560,
2697
]
} | 2,876 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
3188,
3471
]
} | 2,877 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
3931,
4066
]
} | 2,878 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
4546,
4717
]
} | 2,879 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
606,
1230
]
} | 2,880 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// 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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
2160,
2562
]
} | 2,881 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
3318,
3496
]
} | 2,882 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
3721,
3922
]
} | 2,883 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
4292,
4523
]
} | 2,884 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
4774,
5095
]
} | 2,885 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
569,
653
]
} | 2,886 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
1212,
1365
]
} | 2,887 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
1515,
1764
]
} | 2,888 |
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | name | function name() public pure returns (string memory) {
return _name;
}
| //////////////////////////////////////////////////////////////////////////////////////////////////////// | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
3422,
3510
]
} | 2,889 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | setPair | function setPair(address _newpair) external onlyOwner {
require(_newpair != address(0), "ERC20: _newpair cannot be the zero address");
pair = _newpair;
}
| // @dev set Pair | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
6561,
6742
]
} | 2,890 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | setRouter | function setRouter(address _newrouter) external onlyOwner {
IRouter02 _router = IRouter02(_newrouter);
router = _router;
}
| // @dev set Router | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
6773,
6923
]
} | 2,891 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | transfer | function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| //////////////////////////////////////////////////////////////////////////////////////////////////////// | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
12559,
12731
]
} | 2,892 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | _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] && _isExclude... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
15721,
16561
]
} | 2,893 | ||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | //to recieve ETH from pancakeRouter when swaping | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
22587,
22621
]
} | 2,894 | ||||
BINGBONG | BINGBONG.sol | 0xca06e3b0b500110abb83a9ad1ac487a257a65936 | Solidity | BINGBONG | contract BINGBONG is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address private constant DEAD = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping... | swapAndLiquify | function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
// split the contract balance into marketing and liquidity
uint256 forMarketing = contractTokenBalance.mul(_marketingFee).div(_marketingFee.add(_liquidityFee));
uint256 forLiquidity = contractTokenBalance.sub(forMarketi... | //////////////////////////////////////////////////////////////////////////////////////////////////////// | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://e1ebe1167a82568c53668079afa6b5c25ae22a0ccdb2cb1e7c6cfb860d7f7c5b | {
"func_code_index": [
22958,
24381
]
} | 2,895 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
callOptionalReturn(
token,
abi.encodeWithSelector(token.transfer.selector, to, value)... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | callOptionalReturn | function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checke... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
2698,
3879
]
} | 2,896 |
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (addres... | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
265,
368
]
} | 2,897 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Ownable | 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 () internal {
_owner = _msgSender();
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
454,
538
]
} | 2,898 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Ownable | 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 () internal {
_owner = _msgSender();
... | isOwner | function isOwner() public view returns (bool) {
return _msgSender() == _owner;
}
| /**
* @dev Returns true if the caller is the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
820,
919
]
} | 2,899 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Ownable | 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 () internal {
_owner = _msgSender();
... | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
1265,
1410
]
} | 2,900 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Ownable | 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 () internal {
_owner = _msgSender();
... | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
1560,
1674
]
} | 2,901 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | Ownable | 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 () internal {
_owner = _msgSender();
... | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
1775,
2009
]
} | 2,902 | ||
VampTokenSale | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x61b76f7a6af4e96ca726d6ca04bf9c378d58ce57 | Solidity | VampTokenSale | contract VampTokenSale is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 public usdt = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7);
address public collector = 0x45a6b8BdfC1FAa745720165e0B172A3D6D4EC897;
string public name = "VAMP Presale";
IERC20 public V... | addWhiteListedAddresses | function addWhiteListedAddresses(address[] memory _addresses) public onlyOwner {
require(_addresses.length > 0);
for (uint i = 0; i < _addresses.length; i++) {
whitelistedAddress[_addresses[i]] = true;
}
}
| /* function refund() external onlyAfter(endTime) {
require(!softCapReached);
uint256 balance = sold[msg.sender];
require(balance > 0);
uint256 refund = balance / tokensPerUSDT;
msg.sender.transfer(refund);
delete sold[msg.sender];
weiRefunded = weiRefunded.add(refund);
token.refundPresale(msg.sender, b... | Comment | v0.5.17+commit.d19bba13 | MIT | bzzr://a0ebbbc9c369ca7c04641f10be3baaeb2998ae7c800e82b5b22e20409d7241bb | {
"func_code_index": [
3280,
3528
]
} | 2,903 | ||
Creatures | ERC721URIStorage.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | Solidity | ERC721URIStorage | abstract contract ERC721URIStorage is ERC721, Operators {
using Strings for uint256;
// Optional mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override r... | /**
* @dev this contract used just for override some
* OpneZeppelin tokenURI() behavior
* so we need redeclare _tokenURIs becouse in OpenZeppelin
* ERC721 it has private visibility
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = baseURI();
// If there is no base URI, return the token UR... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
251,
1008
]
} | 2,904 |
Creatures | ERC721URIStorage.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | Solidity | ERC721URIStorage | abstract contract ERC721URIStorage is ERC721, Operators {
using Strings for uint256;
// Optional mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override r... | /**
* @dev this contract used just for override some
* OpneZeppelin tokenURI() behavior
* so we need redeclare _tokenURIs becouse in OpenZeppelin
* ERC721 it has private visibility
*/ | NatSpecMultiLine | _setTokenURI | function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual override {
require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
| /**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
1159,
1390
]
} | 2,905 |
Creatures | ERC721URIStorage.sol | 0xd227df494367a8b769b4bf2bbebd0388a8758741 | Solidity | ERC721URIStorage | abstract contract ERC721URIStorage is ERC721, Operators {
using Strings for uint256;
// Optional mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override r... | /**
* @dev this contract used just for override some
* OpneZeppelin tokenURI() behavior
* so we need redeclare _tokenURIs becouse in OpenZeppelin
* ERC721 it has private visibility
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual override {
super._burn(tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
| /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | MIT | ipfs://308c7d0f38216f626771d86f2b5b3091893bd5f12659a801a1f13db0060ec78f | {
"func_code_index": [
1614,
1825
]
} | 2,906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.