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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SpiritSeed | contracts/SpiritSeed.sol | 0x9b07bb421df4e2d52d5997da54a99cff33d5ed6b | Solidity | SpiritSeed | contract SpiritSeed is ERC1155, Ownable, Pausable, ERC1155Burnable
{
using SafeMath for uint256;
//Initialization
string public constant name = "SpiritSeed";
string public constant symbol = "SEED";
string public _BASE_URI = "https://ipfs.io/ipfs/QmXXAE5fQmPkx7Jkeoj1Kq6ANWSqVov5mCzgmAwf8Fmcxs/";
... | __unpause | function __unpause() public onlyOwner { _unpause(); }
| //Unpauses Contract | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
3942,
3999
]
} | 8,307 | ||||
ETHGain | ETHGain.sol | 0x8b866c709bf85303abf9fb9082475c31aaf02ea5 | Solidity | ETHGain | contract ETHGain is Ownable {
event Register(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event SponsorChange(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event Upgrade(uint indexed _user, uint _star, uint _price, uint _tim... | setStarPrice | function setStarPrice(uint _star, uint _price) public onlyOwner {
STAR_PRICE[_star] = _price;
}
| //https://etherconverter.online to Ether | LineComment | v0.5.7+commit.6da8b019 | OSL-3.0 | bzzr://40f84d12cfb377c283e85f230fb38399399ea3106145db3ad1cc9677ddb95bec | {
"func_code_index": [
4043,
4159
]
} | 8,308 | ||
ETHGain | ETHGain.sol | 0x8b866c709bf85303abf9fb9082475c31aaf02ea5 | Solidity | ETHGain | contract ETHGain is Ownable {
event Register(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event SponsorChange(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event Upgrade(uint indexed _user, uint _star, uint _price, uint _tim... | setStarFee | function setStarFee(uint _star, uint _price) public onlyOwner {
STAR_FEE[_star] = _price;
}
| //https://etherconverter.online to Ether | LineComment | v0.5.7+commit.6da8b019 | OSL-3.0 | bzzr://40f84d12cfb377c283e85f230fb38399399ea3106145db3ad1cc9677ddb95bec | {
"func_code_index": [
4208,
4320
]
} | 8,309 | ||
ETHGain | ETHGain.sol | 0x8b866c709bf85303abf9fb9082475c31aaf02ea5 | Solidity | ETHGain | contract ETHGain is Ownable {
event Register(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event SponsorChange(uint indexed _user, uint indexed _referrer, uint indexed _introducer, uint _time);
event Upgrade(uint indexed _user, uint _star, uint _price, uint _tim... | setUserData | function setUserData(uint _userID, address _wallet, uint _referrerID, uint _introducerID, address _referral1, address _referral2, address _referral3, uint star) public onlyOwner {
require(_userID > 0, 'Invalid user ID');
require(_wallet != address(0), 'Invalid user wallet');
require(_referrerID > 0, 'I... | //Null address is 0x0000000000000000000000000000000000000000 | LineComment | v0.5.7+commit.6da8b019 | OSL-3.0 | bzzr://40f84d12cfb377c283e85f230fb38399399ea3106145db3ad1cc9677ddb95bec | {
"func_code_index": [
4512,
6082
]
} | 8,310 | ||
ETH20Token | ETH20Token.sol | 0xda7a43a22299b516b7b39b594c823000dce34fbc | Solidity | ETH20Token | contract ETH20Token is ERC20Pausable {
string public constant name = "ETH20 token";
string public constant symbol = "ETH20";
uint8 public constant decimals = 8;
uint256 public constant INITIAL_SUPPLY = 10000000 * (10 ** uint256(decimals));
address public owner = msg.sender;
constructor() public {
... | changeOwner | function changeOwner(address _newOwner)
onlyOwner
{
require(_newOwner != 0x0);
owner = _newOwner;
}
| /// 改变合约的所有者 | NatSpecSingleLine | v0.4.24+commit.e67f0147 | None | bzzr://0cf9e314980ef9df58eb8ea067099885cf319e98593b085dd48ec75fc6da230a | {
"func_code_index": [
500,
620
]
} | 8,311 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setMintPassToken | function setMintPassToken(address _mintPassToken) external override onlyRole(DEFAULT_ADMIN_ROLE) {
mintPassFactory = MintPassFactory(_mintPassToken);
}
| /**
* @notice Set the mintpass contract address
*
* @param _mintPassToken the respective Mint Pass contract address
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4656,
4828
]
} | 8,312 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setBaseURI | function setBaseURI(string memory _baseTokenURI) external override onlyRole(DEFAULT_ADMIN_ROLE) {
baseTokenURI = _baseTokenURI;
}
| /**
* @notice Change the base URI for returning metadata
*
* @param _baseTokenURI the respective base URI
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4960,
5113
]
} | 8,313 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | pause | function pause() external override onlyRole(DEFAULT_ADMIN_ROLE) {
_pause();
}
| /**
* @notice Pause redeems until unpause is called
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5182,
5275
]
} | 8,314 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | unpause | function unpause() external override onlyRole(DEFAULT_ADMIN_ROLE) {
_unpause();
}
| /**
* @notice Unpause redeems until pause is called
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5344,
5441
]
} | 8,315 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setRedeemStart | function setRedeemStart(uint256 passID, uint256 _windowOpen) external override onlyRole(DEFAULT_ADMIN_ROLE) {
redemptionWindows[passID].windowOpens = _windowOpen;
}
| /**
* @notice Configure time to enable redeem functionality
*
* @param _windowOpen UNIX timestamp for redeem start
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5588,
5776
]
} | 8,316 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setRedeemClose | function setRedeemClose(uint256 passID, uint256 _windowClose) external override onlyRole(DEFAULT_ADMIN_ROLE) {
redemptionWindows[passID].windowCloses = _windowClose;
}
| /**
* @notice Configure time to enable redeem functionality
*
* @param _windowClose UNIX timestamp for redeem close
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5918,
6103
]
} | 8,317 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setMaxRedeemPerTxn | function setMaxRedeemPerTxn(uint256 passID, uint256 _maxRedeemPerTxn) external override onlyRole(DEFAULT_ADMIN_ROLE) {
redemptionWindows[passID].maxRedeemPerTxn = _maxRedeemPerTxn;
}
| /**
* @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index
*
* @param _maxRedeemPerTxn number of passes that can be redeemed
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
6300,
6506
]
} | 8,318 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | isRedemptionOpen | function isRedemptionOpen(uint256 passID) public view override returns (bool) {
if(paused()){
return false;
}
return block.timestamp > redemptionWindows[passID].windowOpens && block.timestamp < redemptionWindows[passID].windowCloses;
}
| /**
* @notice Check if redemption window is open
*
* @param passID the pass index to check
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
6623,
6903
]
} | 8,319 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | redeem | function redeem(uint256[] calldata mpIndexes, uint256[] calldata amounts) external override{
require(msg.sender == tx.origin, "Redeem: not allowed from contract");
require(!paused(), "Redeem: paused");
//check to make sure all are valid then re-loop for redemption
for(uint256 i = 0; i < mpInde... | /**
* @notice Redeem specified amount of MintPass tokens
*
* @param mpIndexes the tokenIDs of MintPasses to redeem
* @param amounts the amount of MintPasses to redeem
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
7101,
8885
]
} | 8,320 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | setIndividualTokenURI | function setIndividualTokenURI(uint256 id, string memory uri) external override onlyRole(DEFAULT_ADMIN_ROLE){
require(_exists(id), "ERC721Metadata: Token does not exist");
tokenData[id].tokenURI = uri;
tokenData[id].exists = true;
}
| /**
* @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index
*
* @param id of token
* @param uri to point the token to
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
9295,
9562
]
} | 8,321 | ||
Habibi | contracts/Habibi.sol | 0x9ce696322a7495b83f279db6080314cf4d9f8c1f | Solidity | Habibi | contract Habibi is IHabibi, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
using Counters for Counters.Counter;
Counters.Counter private earlyIDCounter;
Counters.Counter private generalCounter;
mapping(uint256 ... | /*
* @title ERC721 token for Habibi, redeemable through burning Habibis MintPass tokens
*/ | Comment | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
if(tokenData[tokenId].exists){
return tokenData[tokenId].tokenURI;
}
return string(abi.encodePacked(baseTokenURI, toH(keccak256... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
9628,
10012
]
} | 8,322 | ||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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... | 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-solidity/pull/522
if (a == 0) {
return 0;
}
uint256... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
90,
486
]
} | 8,323 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
598,
877
]
} | 8,324 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
992,
1131
]
} | 8,325 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
1196,
1335
]
} | 8,326 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
1470,
1587
]
} | 8,327 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string name, string symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @return the name of the token.
*/
funct... | name | function name() public view returns(string) {
return _name;
}
| /**
* @return the name of the token.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
313,
385
]
} | 8,328 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string name, string symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @return the name of the token.
*/
funct... | symbol | function symbol() public view returns(string) {
return _symbol;
}
| /**
* @return the symbol of the token.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
441,
517
]
} | 8,329 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string name, string symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @return the name of the token.
*/
funct... | decimals | function decimals() public view returns(uint8) {
return _decimals;
}
| /**
* @return the number of decimals of the token.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
585,
664
]
} | 8,330 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
281,
369
]
} | 8,331 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | balanceOf | function balanceOf(address owner) public view returns (uint256) {
return _balances[owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
574,
677
]
} | 8,332 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | allowance | function allowance(
address owner,
address spender
)
public
view
returns (uint256)
{
return _allowed[owner][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner address The address which owns the funds.
* @param spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
999,
1161
]
} | 8,333 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | transfer | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| /**
* @dev Transfer token for a specified address
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
1317,
1450
]
} | 8,334 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | approve | function approve(address spender, uint256 value) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
2074,
2303
]
} | 8,335 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | transferFrom | function transferFrom(
address from,
address to,
uint256 value
)
public
returns (bool)
{
require(value <= _allowed[from][msg.sender]);
_allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
_transfer(from, to, value);
return true;
}
| /**
* @dev Transfer tokens from one address to another
* @param from address The address which you want to send tokens from
* @param to address The address which you want to transfer to
* @param value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
2580,
2884
]
} | 8,336 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | increaseAllowance | function increaseAllowance(
address spender,
uint256 addedValue
)
public
returns (bool)
{
require(spender != address(0));
_allowed[msg.sender][spender] = (
_allowed[msg.sender][spender].add(addedValue));
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
return true;
}
... | /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param spender T... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
3343,
3689
]
} | 8,337 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | decreaseAllowance | function decreaseAllowance(
address spender,
uint256 subtractedValue
)
public
returns (bool)
{
require(spender != address(0));
_allowed[msg.sender][spender] = (
_allowed[msg.sender][spender].sub(subtractedValue));
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
return... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param spender T... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
4153,
4509
]
} | 8,338 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(value <= _balances[from]);
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
4714,
5001
]
} | 8,339 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | _mint | function _mint(address account, uint256 amount) internal {
require(account != 0);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /**
* @dev Internal function that mints an amount of the token and assigns it to
* an account. This encapsulates the modification of balances such that the
* proper events are emitted.
* @param account The account that will receive the created tokens.
* @param amount The amount that will be created.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
5335,
5582
]
} | 8,340 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | _burn | function _burn(address account, uint256 amount) internal {
require(account != 0);
require(amount <= _balances[account]);
_totalSupply = _totalSupply.sub(amount);
_balances[account] = _balances[account].sub(amount);
emit Transfer(account, address(0), amount);
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account.
* @param account The account whose tokens will be burnt.
* @param amount The amount that will be burnt.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
5800,
6093
]
} | 8,341 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view re... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
require(amount <= _allowed[account][msg.sender]);
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
// this function needs to emit an event with the updated approval.
_allowed[account][msg.sender] = _allowed[a... | /**
* @dev Internal function that burns an amount of the token of a given
* account, deducting from the sender's allowance for said account. Uses the
* internal burn function.
* @param account The account whose tokens will be burnt.
* @param amount The amount that will be burnt.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
6406,
6811
]
} | 8,342 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | EthPolynomialCurvedToken | contract EthPolynomialCurvedToken is EthBondingCurvedToken {
uint256 public exponent;
uint256 public inverseSlope;
/// @dev constructor Initializes the bonding curve
/// @param name The name of the token
/// @param decimals The number of decimals to use
/// @... | curveIntegral | function curveIntegral(uint256 t) internal returns (uint256) {
uint256 nexp = exponent.add(1);
uint256 norm = 10 ** (uint256(decimals()) * uint256(nexp)) - 18;
// Calculate integral of t^exponent
return
(t ** nexp).div(nexp).div(inverseSlope).div(10 ** 18);
}
| /// @dev Calculate the integral from 0 to t
/// @param t The number to integrate to | NatSpecSingleLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
837,
1155
]
} | 8,343 | |||
Convergent_Billboard | Convergent_Billboard.sol | 0x837ae66bfbcdee3f5d07a051c17401e5636d77b3 | Solidity | Convergent_Billboard | contract Convergent_Billboard is EthPolynomialCurvedToken {
using SafeMath for uint256;
uint256 public cashed; // Amount of tokens that have been "cashed out."
uint256 public maxTokens; // Total amount of Billboard tokens to be sold.
uint256 public requiredAm... | mint | function mint(uint256 numTokens) public payable {
uint256 newTotal = totalSupply().add(numTokens);
if (newTotal > maxTokens) {
super.mint(maxTokens.sub(totalSupply()));
// The super.mint() function will not allow 0
// as an argument rendering this as sufficient
// to enforc... | /// Overwrite | NatSpecSingleLine | v0.4.25+commit.59dbf8f1 | bzzr://ddfc285b7df0055254c643558f25c61c418fe3a49309ae28af80967206d8a311 | {
"func_code_index": [
927,
1369
]
} | 8,344 | |||
EthStarterFarming | /Volumes/Data/Projects/BscStarter/source/crispy-octo/contracts/ethereum/EthStarterFarming.sol | 0x9dfda6ca37734d69b0ebc5b65f98501ea7296893 | Solidity | EthStarterFarming | contract EthStarterFarming is ReentrancyGuard, Ownable {
using SafeMath for uint256;
using Address for address;
using SafeERC20 for IERC20;
event Staked(address indexed from, uint256 amountETH, uint256 amountLP);
event Withdrawn(address indexed to, uint256 amountETH, uint256 amountLP);
event Cl... | tokenPrice | function tokenPrice() public view returns (uint256) {
uint256 bnbAmount = IERC20(weth).balanceOf(pairAddress);
uint256 tokenAmount = IERC20(startToken).balanceOf(pairAddress);
return bnbAmount.mul(1e18).div(tokenAmount);
}
| // Token price in eth | LineComment | v0.6.12+commit.27d51765 | {
"func_code_index": [
8729,
8983
]
} | 8,345 | ||||
EthStarterFarming | /Volumes/Data/Projects/BscStarter/source/crispy-octo/contracts/ethereum/EthStarterFarming.sol | 0x9dfda6ca37734d69b0ebc5b65f98501ea7296893 | Solidity | EthStarterFarming | contract EthStarterFarming is ReentrancyGuard, Ownable {
using SafeMath for uint256;
using Address for address;
using SafeERC20 for IERC20;
event Staked(address indexed from, uint256 amountETH, uint256 amountLP);
event Withdrawn(address indexed to, uint256 amountETH, uint256 amountLP);
event Cl... | _checkFarming | function _checkFarming() internal {
require(
farmingStartTimestamp <= block.timestamp,
"Please wait until farming started"
);
if (!farmingStarted) {
farmingStarted = true;
lastUpdateTimestamp = block.timestamp;
}
}
| // Check if farming is started | LineComment | v0.6.12+commit.27d51765 | {
"func_code_index": [
9867,
10169
]
} | 8,346 | ||||
SpartaSpear | SpartaSpear.sol | 0x41cfae8dc572a847d4c71d229a2b861afa6968fa | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
e... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://8caeffb3eb27f50b2d0542322000951aceaffbfd253b3deba55caec432e73956 | {
"func_code_index": [
268,
664
]
} | 8,347 | ||
SpartaSpear | SpartaSpear.sol | 0x41cfae8dc572a847d4c71d229a2b861afa6968fa | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | balanceOf | function balanceOf(address _owner) public constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://8caeffb3eb27f50b2d0542322000951aceaffbfd253b3deba55caec432e73956 | {
"func_code_index": [
870,
986
]
} | 8,348 | ||
SpartaSpear | SpartaSpear.sol | 0x41cfae8dc572a847d4c71d229a2b861afa6968fa | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://8caeffb3eb27f50b2d0542322000951aceaffbfd253b3deba55caec432e73956 | {
"func_code_index": [
401,
858
]
} | 8,349 | ||
SpartaSpear | SpartaSpear.sol | 0x41cfae8dc572a847d4c71d229a2b861afa6968fa | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | approve | function approve(address _spender, uint256 _value) public returns (bool) {
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://8caeffb3eb27f50b2d0542322000951aceaffbfd253b3deba55caec432e73956 | {
"func_code_index": [
1490,
1754
]
} | 8,350 | ||
SpartaSpear | SpartaSpear.sol | 0x41cfae8dc572a847d4c71d229a2b861afa6968fa | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://8caeffb3eb27f50b2d0542322000951aceaffbfd253b3deba55caec432e73956 | {
"func_code_index": [
2078,
2223
]
} | 8,351 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
94,
154
]
} | 8,352 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
237,
310
]
} | 8,353 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
534,
616
]
} | 8,354 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
895,
983
]
} | 8,355 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1647,
1726
]
} | 8,356 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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);
/**... | /*
Mintable Token
*/ | Comment | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
2039,
2141
]
} | 8,357 |
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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 () {
address msgSender = _msgSend... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
497,
589
]
} | 8,358 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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 () {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1148,
1301
]
} | 8,359 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | 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 () {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1451,
1700
]
} | 8,360 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
693,
806
]
} | 8,361 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
864,
996
]
} | 8,362 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1204,
1384
]
} | 8,363 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1442,
1598
]
} | 8,364 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
1740,
1914
]
} | 8,365 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_ap... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
2391,
2818
]
} | 8,366 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
3222,
3442
]
} | 8,367 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - sub... | /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
3940,
4322
]
} | 8,368 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 sende... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
4807,
5416
]
} | 8,369 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
5693,
6036
]
} | 8,370 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
6364,
6863
]
} | 8,371 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
7538,
7889
]
} | 8,372 | ||
MintableERC20 | MintableERC20.sol | 0xd628f9ff5bbf1cd61acc1b7b9d6dc7798a1c33f2 | Solidity | MintableERC20 | contract MintableERC20 is IERC20, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
constructor (uint8 decimal ) {
_decimals = decimal;
... | _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.8.0+commit.c7dfd78e | None | ipfs://8cf3499756a5ba796f21a398f12523c32b5db0cdea7f53e02ec7753e7049e120 | {
"func_code_index": [
8487,
8584
]
} | 8,373 | ||
TestVesting | TestVesting.sol | 0xac576a8ea6a48fb03f1d86723d454d816da7e3e1 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://0a1972208016959aa22ef35424ddc370e70bd2ca16d2a87ef02a36ba9bc99993 | {
"func_code_index": [
336,
396
]
} | 8,374 | |
TestVesting | TestVesting.sol | 0xac576a8ea6a48fb03f1d86723d454d816da7e3e1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, tr... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://0a1972208016959aa22ef35424ddc370e70bd2ca16d2a87ef02a36ba9bc99993 | {
"func_code_index": [
89,
266
]
} | 8,375 | |
TestVesting | TestVesting.sol | 0xac576a8ea6a48fb03f1d86723d454d816da7e3e1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, tr... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://0a1972208016959aa22ef35424ddc370e70bd2ca16d2a87ef02a36ba9bc99993 | {
"func_code_index": [
350,
630
]
} | 8,376 | |
TestVesting | TestVesting.sol | 0xac576a8ea6a48fb03f1d86723d454d816da7e3e1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, tr... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://0a1972208016959aa22ef35424ddc370e70bd2ca16d2a87ef02a36ba9bc99993 | {
"func_code_index": [
744,
860
]
} | 8,377 | |
TestVesting | TestVesting.sol | 0xac576a8ea6a48fb03f1d86723d454d816da7e3e1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, tr... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://0a1972208016959aa22ef35424ddc370e70bd2ca16d2a87ef02a36ba9bc99993 | {
"func_code_index": [
924,
1054
]
} | 8,378 | |
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
92,
152
]
} | 8,379 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
233,
306
]
} | 8,380 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
524,
606
]
} | 8,381 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
879,
967
]
} | 8,382 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
1618,
1697
]
} | 8,383 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | 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);
/**
... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
2002,
2104
]
} | 8,384 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
250,
436
]
} | 8,385 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
705,
846
]
} | 8,386 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
1135,
1332
]
} | 8,387 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
1577,
2053
]
} | 8,388 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
2513,
2650
]
} | 8,389 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
3130,
3413
]
} | 8,390 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
3862,
3997
]
} | 8,391 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
4466,
4637
]
} | 8,392 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
590,
1214
]
} | 8,393 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
2129,
2531
]
} | 8,394 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
3270,
3450
]
} | 8,395 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
3670,
3871
]
} | 8,396 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
4231,
4462
]
} | 8,397 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | 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.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
4708,
5029
]
} | 8,398 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _deadAddress;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
523,
607
]
} | 8,399 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _deadAddress;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
... | transferOwnership | function transferOwnership() public {
require(_owner == address(0), "owner is zero address");
_owner = _deadAddress;
}
| /**
* @dev Transfers ownership of the contract to a new account.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
696,
842
]
} | 8,400 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _deadAddress;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_deadAddress = _owner;
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.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
1393,
1578
]
} | 8,401 | ||
PittyInuToken | PittyInuToken.sol | 0x8bf247b7585f355180ef986fa22bec2fc975f295 | Solidity | PittyInuToken | contract PittyInuToken is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => uint256) private _vOwned;
mapping (address => mapping (address => ui... | // Contract implementation | LineComment | //to recieve ETH from uniswapV2Router when swapping | LineComment | v0.7.0+commit.9e61f92b | GNU GPLv3 | ipfs://50626a07762980f5165f52553fff292d2e7654ea1fcdb1c511d0f5889354392c | {
"func_code_index": [
16003,
16037
]
} | 8,402 | ||
FoundNounToken | contracts/FoundNounToken.sol | 0x70b44ea398a33593af1cb348f3837b89a85d4f91 | Solidity | FoundNounToken | contract FoundNounToken is Ownable, ERC721Enumerable {
using Strings for uint256;
uint256 public constant max_tokens = 10000;
uint8 public constant mint_limit = 10;
// The noun seeds
mapping(uint256 => INounsSeeder.Seed) public seeds;
// Number of mints per wallet
mapping(addres... | setDescriptor | function setDescriptor(INounsDescriptor _descriptor) external onlyOwner whenDescriptorNotLocked {
descriptor = _descriptor;
}
| /**
* @notice Set the token URI descriptor.
* @dev Only callable by the owner when not locked.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
2633,
2777
]
} | 8,403 | ||||
FoundNounToken | contracts/FoundNounToken.sol | 0x70b44ea398a33593af1cb348f3837b89a85d4f91 | Solidity | FoundNounToken | contract FoundNounToken is Ownable, ERC721Enumerable {
using Strings for uint256;
uint256 public constant max_tokens = 10000;
uint8 public constant mint_limit = 10;
// The noun seeds
mapping(uint256 => INounsSeeder.Seed) public seeds;
// Number of mints per wallet
mapping(addres... | lockDescriptor | function lockDescriptor() external onlyOwner whenDescriptorNotLocked {
isDescriptorLocked = true;
}
| /**
* @notice Lock the descriptor.
* @dev This cannot be reversed and is only callable by the owner when not locked.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
2923,
3041
]
} | 8,404 | ||||
FoundNounToken | contracts/FoundNounToken.sol | 0x70b44ea398a33593af1cb348f3837b89a85d4f91 | Solidity | FoundNounToken | contract FoundNounToken is Ownable, ERC721Enumerable {
using Strings for uint256;
uint256 public constant max_tokens = 10000;
uint8 public constant mint_limit = 10;
// The noun seeds
mapping(uint256 => INounsSeeder.Seed) public seeds;
// Number of mints per wallet
mapping(addres... | setSeeder | function setSeeder(INounsSeeder _seeder) external onlyOwner whenSeederNotLocked {
seeder = _seeder;
}
| /**
* @notice Set the token seeder.
* @dev Only callable by the owner when not locked.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
3157,
3277
]
} | 8,405 | ||||
FoundNounToken | contracts/FoundNounToken.sol | 0x70b44ea398a33593af1cb348f3837b89a85d4f91 | Solidity | FoundNounToken | contract FoundNounToken is Ownable, ERC721Enumerable {
using Strings for uint256;
uint256 public constant max_tokens = 10000;
uint8 public constant mint_limit = 10;
// The noun seeds
mapping(uint256 => INounsSeeder.Seed) public seeds;
// Number of mints per wallet
mapping(addres... | lockSeeder | function lockSeeder() external onlyOwner whenSeederNotLocked {
isSeederLocked = true;
}
| /**
* @notice Lock the seeder.
* @dev This cannot be reversed and is only callable by the owner when not locked.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
3419,
3525
]
} | 8,406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.