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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
... | /*
* CryptoMiningWar - Blockchain-based strategy game
* Author: InspiGames
* Website: https://cryptominingwar.github.io/
*/ | Comment | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
1010,
1162
]
} | 27,700 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | PullPayment | contract PullPayment {
using SafeMath for uint256;
mapping(address => uint256) public payments;
uint256 public totalPayments;
/**
* @dev Withdraw accumulated balance, called by payee.
*/
function withdrawPayments() public {
address payee = msg.sender;
uint256 payment = payments[payee]... | withdrawPayments | function withdrawPayments() public {
address payee = msg.sender;
uint256 payment = payments[payee];
require(payment != 0);
require(address(this).balance >= payment);
totalPayments = totalPayments.sub(payment);
payments[payee] = 0;
payee.transfer(payment);
}
| /**
* @dev Withdraw accumulated balance, called by payee.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
210,
514
]
} | 27,701 | |||
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | PullPayment | contract PullPayment {
using SafeMath for uint256;
mapping(address => uint256) public payments;
uint256 public totalPayments;
/**
* @dev Withdraw accumulated balance, called by payee.
*/
function withdrawPayments() public {
address payee = msg.sender;
uint256 payment = payments[payee]... | asyncSend | function asyncSend(address dest, uint256 amount) internal {
payments[dest] = payments[dest].add(amount);
totalPayments = totalPayments.add(amount);
}
| /**
* @dev Called by the payer to store the sent amount as credit to be pulled.
* @param dest The destination address of the funds.
* @param amount The amount to transfer.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
707,
872
]
} | 27,702 | |||
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | CryptoEngineer | contract CryptoEngineer is PullPayment{
// engineer info
address public administrator;
uint256 public prizePool = 0;
uint256 public numberOfEngineer = 8;
uint256 public numberOfBoosts = 5;
address public gameSponsor;
uint256 public gameSponsorPrice = 0.32 ether;
uint256 public VIRUS... | isContractMiniGame | function isContractMiniGame() public pure returns(bool _isContractMiniGame)
{
_isContractMiniGame = true;
}
| /**
* @dev MainContract used this function to verify game's contract
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
3966,
4094
]
} | 27,703 | |||
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | CryptoEngineer | contract CryptoEngineer is PullPayment{
// engineer info
address public administrator;
uint256 public prizePool = 0;
uint256 public numberOfEngineer = 8;
uint256 public numberOfBoosts = 5;
address public gameSponsor;
uint256 public gameSponsorPrice = 0.32 ether;
uint256 public VIRUS... | setupMiniGame | function setupMiniGame( uint256 /*_miningWarRoundNumber*/, uint256 /*_miningWarDeadline*/ ) public
{
require(msg.sender == miningWarAddress);
MiningWar.fallback.value(SafeMath.div(SafeMath.mul(prizePool, 5), 100))();
| /**
* @dev Main Contract call this function to setup mini game.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
4355,
4599
]
} | 27,704 | |||
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | setMiningWarInterface | function setMiningWarInterface(address _addr) public isAdministrator
{
CryptoMiningWarInterface miningWarInterface = CryptoMiningWarInterface(_addr);
require(miningWarInterface.isMiningWarContract() == true);
miningWarAddress = _addr;
MiningWar = miningWarI... | //--------------------------------------------------------------------------
// SETTING CONTRACT MINI GAME
//-------------------------------------------------------------------------- | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,705 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | removeContractMiniGame | function removeContractMiniGame(address _addr) public isAdministrator
{
miniGames[_addr] = false;
} | /**
* @dev remove mini game contract from main contract
* @param _addr mini game contract address
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,706 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | upgrade | function upgrade(address addr) public isAdministrator
{
selfdestruct(addr);
} | //@dev use this function in case of bug | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,707 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | buyBooster | function buyBooster(uint256 idx) public payable
{
require(idx < numberOfBoosts);
BoostData storage b = boostData[idx];
if (msg.value < b.basePrice || msg.sender == b.owner) revert();
address beneficiary = b.owner;
uint256 devFeePrize = devFee(b.basePrice);
... | //--------------------------------------------------------------------------
// BOOSTER
//-------------------------------------------------------------------------- | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,708 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | becomeGameSponsor | function becomeGameSponsor() public payable disableContract
{
uint256 gameSponsorPriceFee = SafeMath.div(SafeMath.mul(gameSponsorPrice, 150), 100);
require(msg.value >= gameSponsorPriceFee);
require(msg.sender != gameSponsor);
//
uint256 repayPrice = SafeMath.div(SafeM... | /**
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,709 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | setBoostData | function setBoostData(uint256 idx, address owner, uint256 boostRate, uint256 basePrice) public onlyContractsMiniGame
{
require(owner != 0x0);
BoostData storage b = boostData[idx];
b.owner = owner;
b.boostRate = boostRate;
b.basePrice = basePrice;
} | // ----------------------------------------------------------------------------------------
// USING FOR MINI GAME CONTRACT
// --------------------------------------------------------------------------------------- | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,710 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | addVirus | function addVirus(address _addr, uint256 _value) public onlyContractsMiniGame
{
Player storage p = players[_addr];
uint256 additionalVirus = SafeMath.mul(_value,VIRUS_MINING_PERIOD);
p.virusNumber = SafeMath.add(p.virusNumber, additionalVirus);
emit ChangeVirus(_ad... | /**
* @dev add virus for player
* @param _addr player address
* @param _value number of virus
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,711 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | subVirus | function subVirus(address _addr, uint256 _value) public onlyContractsMiniGame
{
updateVirus(_addr);
Player storage p = players[_addr];
uint256 subtractVirus = SafeMath.mul(_value,VIRUS_MINING_PERIOD);
if ( p.virusNumber < subtractVirus ) { revert(); }
... | /**
* @dev subtract virus of player
* @param _addr player address
* @param _value number virus subtract
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,712 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | claimPrizePool | function claimPrizePool(address _addr, uint256 _value) public onlyContractsMiniGame
{
require(prizePool > _value);
prizePool = SafeMath.sub(prizePool, _value);
MiniGameInterface MiniGame = MiniGameInterface( _addr );
MiniGame. | /**
* @dev claim price pool to next new game
* @param _addr mini game contract address
* @param _value eth claim;
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,713 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | buyEngineer | function buyEngineer(uint256[8] engineerNumbers) public payable disableContract
{
updateVirus(msg.sender);
Player storage p = players[msg.sender];
uint256 priceCrystals = 0;
uint256 priceEth = 0;
uint256 research = 0;
for (uint256 engineerId... | /**
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,714 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | updateVirus | function updateVirus(address _addr) private
{
Player storage p = players[_addr];
p.virusNumber = calCurrentVirus(_addr);
p.lastUpdateTime = now;
} | /**
* @dev update virus for player
* @param _addr player address
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,715 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | updateResearch | function updateResearch(address _addr, uint256 _research) private
{
Player storage p = players[_addr];
p.research = SafeMath.add(p.research, _research);
emit UpdateResearch(_addr, p.research);
} | /**
* @dev update research for player
* @param _addr player address
* @param _research number research want to add
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,716 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | getPlayerData | function getPlayerData(address _addr)
public
view
returns(
uint256 _virusNumber,
uint256 _currentVirus,
uint256 _research,
uint256 _researchPerDay,
uint256 _lastUpdateTime,
uint256[8] _engineersCount
)
{
Player storage p = pl... | /**
* @dev get player data
* @param _addr player address
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,717 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | addPrizePool | function addPrizePool(uint256 _value) private
{
prizePool = SafeMath.add(prizePool, _value);
} | //--------------------------------------------------------------------------
// INTERNAL
//-------------------------------------------------------------------------- | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,718 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | addMiningWarPrizePool | function addMiningWarPrizePool(uint256 _value) private
{
MiningWar. | /**
* @dev add 5% value of transaction payable
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,719 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | calCurrentCrystals | function calCurrentCrystals(address _addr) public view returns(uint256 _currentCrystals)
{
_currentCrystals = SafeMath.div(MiningWar.calCurrentCrystals(_addr), CRTSTAL_MINING_PERIOD);
} | /**
* @dev calculate current crystals of player
* @param _addr player address
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,720 | |
CryptoEngineer | CryptoEngineer.sol | 0xb2d6000d4a7fe8b1358d54a9bc21f2badf91d849 | Solidity | <NA> | <NA> | <NA> | <NA> | distributedToOwner | function distributedToOwner(uint256 _value) private
{
gameSponsor.transfer(_value);
administrator.transfer(_value);
} | /**
* @dev with transaction payable send 5% value for admin and sponsor
* @param _value fee
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://777a9ddd60feb32fdcda5527703325f6d4fe4ca85817fd7c2a7f92eb4e1f4fdc | {
"func_code_index": [
-1,
-1
]
} | 27,721 | |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
965,
1086
]
} | 27,722 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
1306,
1435
]
} | 27,723 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
1779,
2061
]
} | 27,724 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
2569,
2782
]
} | 27,725 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
3313,
3676
]
} | 27,726 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
3959,
4115
]
} | 27,727 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
4470,
4792
]
} | 27,728 |
EKLOWToken | EKLOWToken.sol | 0xdb1d3c688b6778d1f29fce62663357d560eea61b | Solidity | EKLOWToken | contract EKLOWToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://0dd5d21c5416f8df19295607e5188859f8df30dd35a55cd43ec9f1b4abcf67e2 | {
"func_code_index": [
4984,
5043
]
} | 27,729 | |
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
750,
852
]
} | 27,730 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
961,
1067
]
} | 27,731 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the v... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1687,
1782
]
} | 27,732 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1838,
1948
]
} | 27,733 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
2002,
2131
]
} | 27,734 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | 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 | {
"func_code_index": [
2330,
2506
]
} | 27,735 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | 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 | {
"func_code_index": [
2560,
2713
]
} | 27,736 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | 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 | {
"func_code_index": [
2847,
3017
]
} | 27,737 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | 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")... | /**
* @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 `amount`.
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
3480,
3962
]
} | 27,738 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | 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` cannot be t... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
4353,
4569
]
} | 27,739 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, curre... | /**
* @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` cannot be t... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
5052,
5461
]
} | 27,740 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _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);
uint2... | /**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This 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.
* - `recipie... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
5931,
6648
]
} | 27,741 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _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);
_afterToke... | /** @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:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
6920,
7313
]
} | 27,742 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _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 balance"... | /**
* @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 | {
"func_code_index": [
7629,
8209
]
} | 27,743 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _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, spend... | /**
* @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 address.
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
8628,
9002
]
} | 27,744 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _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 transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` i... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
9582,
9707
]
} | 27,745 | ||
VestingWallet | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _afterTokenTransfer | function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to`... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
10291,
10415
]
} | 27,746 | ||
HashGarageSpecials | /D/nftgarage/contrato/contracts/ERC721Tradable.sol | 0xc89821c78be73ec1461f197e3cdcdb52a7e6bf74 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
uint256 private _currentTokenId = 0;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAdd... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | mintTo | function mintTo(address _to) public onlyOwner {
uint256 newTokenId = _getNextTokenId();
_mint(_to, newTokenId);
_incrementTokenId();
}
| /**
* @dev Mints a token to an address with a tokenURI.
* @param _to address of the future owner of the token
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
583,
749
]
} | 27,747 | ||
HashGarageSpecials | /D/nftgarage/contrato/contracts/ERC721Tradable.sol | 0xc89821c78be73ec1461f197e3cdcdb52a7e6bf74 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
uint256 private _currentTokenId = 0;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAdd... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _getNextTokenId | function _getNextTokenId() private view returns (uint256) {
return _currentTokenId.add(1);
}
| /**
* @dev calculates the next token ID based on value of _currentTokenId
* @return uint256 for the next token ID
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
887,
995
]
} | 27,748 | ||
HashGarageSpecials | /D/nftgarage/contrato/contracts/ERC721Tradable.sol | 0xc89821c78be73ec1461f197e3cdcdb52a7e6bf74 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
uint256 private _currentTokenId = 0;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAdd... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _incrementTokenId | function _incrementTokenId() private {
_currentTokenId++;
}
| /**
* @dev increments the value of _currentTokenId
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1065,
1140
]
} | 27,749 | ||
HashGarageSpecials | /D/nftgarage/contrato/contracts/ERC721Tradable.sol | 0xc89821c78be73ec1461f197e3cdcdb52a7e6bf74 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
uint256 private _currentTokenId = 0;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAdd... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator)
override
public
view
returns (bool)
{
// Whitelist OpenSea proxy contract for easy trading.
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
if (address(proxyRegistry.proxies(owner)) == operator) {
return tr... | /**
* Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1524,
1960
]
} | 27,750 | ||
HashGarageSpecials | /D/nftgarage/contrato/contracts/ERC721Tradable.sol | 0xc89821c78be73ec1461f197e3cdcdb52a7e6bf74 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
uint256 private _currentTokenId = 0;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAdd... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _msgSender | function _msgSender()
internal
override
view
returns (address sender)
{
return ContextMixin.msgSender();
}
| /**
* This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2095,
2253
]
} | 27,751 | ||
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | claimTokens | function claimTokens(uint256 amount, address delegate, bytes32[] calldata merkleProof) external {
bytes32 leaf = keccak256(abi.encodePacked(msg.sender, amount));
(bool valid, uint256 index) = MerkleProof.verify(merkleProof, merkleRoot, leaf);
require(valid, "ENS: Valid proof required.");
require(!isClai... | /**
* @dev Claims airdropped tokens.
* @param amount The amount of the claim being made.
* @param delegate The address the tokenholder wants to delegate their votes to.
* @param merkleProof A merkle proof proving the claim is valid.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
1435,
1998
]
} | 27,752 | |
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | sweep | function sweep(address dest) external onlyOwner {
require(block.timestamp > claimPeriodEnds, "ENS: Claim period not yet ended");
_transfer(address(this), dest, balanceOf(address(this)));
}
| /**
* @dev Allows the owner to sweep unclaimed tokens after the claim period ends.
* @param dest The address to sweep the tokens to.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
2155,
2367
]
} | 27,753 | |
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | isClaimed | function isClaimed(uint256 index) public view returns (bool) {
return claimed.get(index);
}
| /**
* @dev Returns true if the claim at the given index in the merkle tree has already been made.
* @param index The index into the merkle tree.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
2536,
2643
]
} | 27,754 | |
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | setMerkleRoot | function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
require(merkleRoot == bytes32(0), "ENS: Merkle root already set");
merkleRoot = _merkleRoot;
emit MerkleRootChanged(_merkleRoot);
}
| /**
* @dev Sets the merkle root. Only callable if the root is not yet set.
* @param _merkleRoot The merkle root to set.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
2787,
3015
]
} | 27,755 | |
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | mint | function mint(address dest, uint256 amount) external onlyOwner {
require(amount <= (totalSupply() * mintCap) / 10000, "ENS: Mint exceeds maximum amount");
require(block.timestamp >= nextMint, "ENS: Cannot mint yet");
nextMint = block.timestamp + minimumMintInterval;
_mint(dest, amount);
}
| /**
* @dev Mints new tokens. Can only be executed every `minimumMintInterval`, by the owner, and cannot
* exceed `mintCap / 10000` fraction of the current total supply.
* @param dest The address to mint the new tokens to.
* @param amount The quantity of tokens to mint.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
3324,
3654
]
} | 27,756 | |
ENSToken | contracts/ENSToken.sol | 0xc18360217d8f7ab5e7c516566761ea12ce7f9d72 | Solidity | ENSToken | contract ENSToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
using BitMaps for BitMaps.BitMap;
uint256 public constant minimumMintInterval = 365 days;
uint256 public constant mintCap = 200; // 2%
bytes32 public merkleRoot;
uint256 public nextMint; // Timestamp
uint256 public claimPeriodEnds;... | /**
* @dev An ERC20 token for ENS.
* Besides the addition of voting capabilities, we make a couple of customisations:
* - Airdrop claim functionality via `claimTokens`. At creation time the tokens that
* should be available for the airdrop are transferred to the token contract address;
* ... | NatSpecMultiLine | _afterTokenTransfer | function _afterTokenTransfer(address from, address to, uint256 amount)
internal
override(ERC20, ERC20Votes)
{
super._afterTokenTransfer(from, to, amount);
}
| // The following functions are overrides required by Solidity. | LineComment | v0.8.7+commit.e28d00a7 | MIT | {
"func_code_index": [
3724,
3916
]
} | 27,757 | |
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
92,
152
]
} | 27,758 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
233,
306
]
} | 27,759 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
524,
606
]
} | 27,760 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
879,
967
]
} | 27,761 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
1618,
1697
]
} | 27,762 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
2002,
2104
]
} | 27,763 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
250,
436
]
} | 27,764 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
705,
846
]
} | 27,765 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
1135,
1332
]
} | 27,766 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
1577,
2053
]
} | 27,767 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
2513,
2650
]
} | 27,768 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
3130,
3413
]
} | 27,769 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
3862,
3997
]
} | 27,770 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
4466,
4637
]
} | 27,771 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
590,
1214
]
} | 27,772 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
2129,
2531
]
} | 27,773 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
3270,
3450
]
} | 27,774 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
3670,
3871
]
} | 27,775 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
4231,
4462
]
} | 27,776 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | 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.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
4708,
5029
]
} | 27,777 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
562,
646
]
} | 27,778 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
1196,
1349
]
} | 27,779 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
1496,
1745
]
} | 27,780 | ||
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | Solidity | CellInu | contract CellInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => b... | // Contract implementation | LineComment | manualSwap | function manualSwap() external onlyOwner() {
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
| // We are exposing these functions to be able to manual swap and send
// in case the token is highly valued and 5M becomes too much | LineComment | v0.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
15445,
15606
]
} | 27,781 |
CellInu | CellInu.sol | 0xe1103af5ccddf6a769a4f665bde932b16621bd93 | Solidity | CellInu | contract CellInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => b... | // Contract implementation | LineComment | //to recieve ETH from uniswapV2Router when swapping | LineComment | v0.6.12+commit.27d51765 | GNU GPLv3 | ipfs://b3cb9401201132122775933fed88a2ea11095c3d587b7e835fe7230fced8ef84 | {
"func_code_index": [
19801,
19835
]
} | 27,782 | ||
OverweightGiraffes | OverweightGiraffes.sol | 0x3352e3bcff77ec644989061980d60a9e610ba24e | Solidity | OverweightGiraffes | contract OverweightGiraffes is Ownable, ERC721Enumerable {
using SafeMath for uint256;
mapping (uint256 => string) private _tokenURIs;
mapping (uint256 => uint256) private _portionOfClaimableGiraffesTimesAHundred;
uint256 public constant giraffePrice = 40000000000000000; //0.04 ETH
... | reserveGiraffes | function reserveGiraffes(uint256 numberOfTokens) public onlyOwner {
uint256 i;
for (i = 0; i < numberOfTokens; i++) {
uint256 index = totalSupply();
if (index < maxGiraffes) {
setGiraffePortionTimesHundredByIndex(index, 0);
_safeMint(msg.sender, index);
}
... | /**
* Set some Giraffes aside
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://ab13dcc5d5fd77c3da07beacf42902fa9f6831805d6e2cf31453b46f3929009f | {
"func_code_index": [
1630,
1999
]
} | 27,783 | ||
OverweightGiraffes | OverweightGiraffes.sol | 0x3352e3bcff77ec644989061980d60a9e610ba24e | Solidity | OverweightGiraffes | contract OverweightGiraffes is Ownable, ERC721Enumerable {
using SafeMath for uint256;
mapping (uint256 => string) private _tokenURIs;
mapping (uint256 => uint256) private _portionOfClaimableGiraffesTimesAHundred;
uint256 public constant giraffePrice = 40000000000000000; //0.04 ETH
... | startSale | function startSale() public onlyOwner {
saleIsActive = true;
uint256 supply = totalSupply();
for (uint256 i = 0; i < supply; i++) {
setGiraffePortionTimesHundredByIndex(i, 0);
}
}
| /*
* Pause sale if active, make active if paused
*/ | Comment | v0.8.6+commit.11564f7e | MIT | ipfs://ab13dcc5d5fd77c3da07beacf42902fa9f6831805d6e2cf31453b46f3929009f | {
"func_code_index": [
3150,
3388
]
} | 27,784 | ||
OverweightGiraffes | OverweightGiraffes.sol | 0x3352e3bcff77ec644989061980d60a9e610ba24e | Solidity | OverweightGiraffes | contract OverweightGiraffes is Ownable, ERC721Enumerable {
using SafeMath for uint256;
mapping (uint256 => string) private _tokenURIs;
mapping (uint256 => uint256) private _portionOfClaimableGiraffesTimesAHundred;
uint256 public constant giraffePrice = 40000000000000000; //0.04 ETH
... | mintGiraffe | function mintGiraffe(uint256 numberOfTokens) public payable {
require(saleIsActive, "Sale must be active to mint a Giraffe");
require(
numberOfTokens <= maxGiraffesPurchase,
"Can only mint 10 Giraffes at a time"
);
require(
totalSupply().add(numberOfTokens) <= maxGiraffes,... | /**
* Mints Giraffes
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://ab13dcc5d5fd77c3da07beacf42902fa9f6831805d6e2cf31453b46f3929009f | {
"func_code_index": [
3930,
4779
]
} | 27,785 | ||
OverweightGiraffes | OverweightGiraffes.sol | 0x3352e3bcff77ec644989061980d60a9e610ba24e | Solidity | OverweightGiraffes | contract OverweightGiraffes is Ownable, ERC721Enumerable {
using SafeMath for uint256;
mapping (uint256 => string) private _tokenURIs;
mapping (uint256 => uint256) private _portionOfClaimableGiraffesTimesAHundred;
uint256 public constant giraffePrice = 40000000000000000; //0.04 ETH
... | claimRemainingGiraffes | function claimRemainingGiraffes(uint256 claimAmount) public {
require(!saleIsActive, "Sale must have ended to claim remaining giraffes");
uint256 balance = balanceOf(msg.sender) - 1;
require(balance >= 1, "User must have giraffes in wallet");
uint256 claimableGiraffes = 0;
uint256 maxClaimableG... | /**
* Claim users portion of giraffes
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://ab13dcc5d5fd77c3da07beacf42902fa9f6831805d6e2cf31453b46f3929009f | {
"func_code_index": [
5456,
7548
]
} | 27,786 | ||
FGPP | contracts/FGPP.sol | 0xa0c654aca08ff6b87a64946f2a1a62e01534cd3a | Solidity | FGPP | contract FGPP is ERC721Enumerable, Ownable, RandomlyAssigned {
using Strings for uint256;
string public baseExtension = ".json";
uint256 public cost = 0.03 ether;
uint256 public maxFGPP = 7998;
uint256 public maxMintAmount = 20;
bool public paused = false;
string public baseURI = "https://i... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://1da4b2e040f92779d9608a9023171d775e1a5502c917a56959f634bf207b84dc | {
"func_code_index": [
502,
607
]
} | 27,787 | ||
FGPP | contracts/FGPP.sol | 0xa0c654aca08ff6b87a64946f2a1a62e01534cd3a | Solidity | FGPP | contract FGPP is ERC721Enumerable, Ownable, RandomlyAssigned {
using Strings for uint256;
string public baseExtension = ".json";
uint256 public cost = 0.03 ether;
uint256 public maxFGPP = 7998;
uint256 public maxMintAmount = 20;
bool public paused = false;
string public baseURI = "https://i... | mint | function mint(uint256 _mintAmount) public payable {
require(!paused);
require(_mintAmount > 0);
require(_mintAmount <= maxMintAmount);
require(totalSupply() + _mintAmount <= maxFGPP);
require(msg.value >= cost * _mintAmount);
for (uint256 i = 1; i <= _mintAmount; i++) {
uint256 mintIndex = ne... | // public | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://1da4b2e040f92779d9608a9023171d775e1a5502c917a56959f634bf207b84dc | {
"func_code_index": [
623,
1078
]
} | 27,788 | ||
FGPP | contracts/FGPP.sol | 0xa0c654aca08ff6b87a64946f2a1a62e01534cd3a | Solidity | FGPP | contract FGPP is ERC721Enumerable, Ownable, RandomlyAssigned {
using Strings for uint256;
string public baseExtension = ".json";
uint256 public cost = 0.03 ether;
uint256 public maxFGPP = 7998;
uint256 public maxMintAmount = 20;
bool public paused = false;
string public baseURI = "https://i... | withdraw | function withdraw() public payable onlyOwner {
require(payable(msg.sender).send(address(this).balance));
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://1da4b2e040f92779d9608a9023171d775e1a5502c917a56959f634bf207b84dc | {
"func_code_index": [
1882,
1999
]
} | 27,789 | ||
POPSHIB | POPSHIB.sol | 0xef573591fe164427d5fd4b11f62df47c06b66e88 | Solidity | POPSHIB | contract POPSHIB is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balance;
mapping (address => uint256) private _lastTX;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFromFee... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.7.6+commit.7338295f | None | ipfs://ecd21b7af566d9c86cec9bcf53dd0e385ca085cf0a01877e76e25f34e29d4f9c | {
"func_code_index": [
7346,
7380
]
} | 27,790 | ||||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSMath | contract DSMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x);
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x);
}
function mul(uint x, uint y) internal pure returns (uint z) {
requir... | rpow | function rpow(uint x, uint n) internal pure returns (uint z) {
z = n % 2 != 0 ? x : RAY;
for (n /= 2; n != 0; n /= 2) {
x = rmul(x, x);
if (n % 2 != 0) {
z = rmul(z, x);
}
}
}
| // This famous algorithm is called "exponentiation by squaring"
// and calculates x^n with x as fixed-point and n as regular unsigned.
//
// It's O(log n), instead of O(n) for naive repeated multiplication.
//
// These facts are why it works:
//
// If n is even, then x^n = (x^2)^(n/2).
// If n is odd, then x^n = x *... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
1905,
2177
]
} | 27,791 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | totalSupply | function totalSupply() public view returns (uint) {
return _supply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
417,
505
]
} | 27,792 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | balanceOf | function balanceOf(address src) public view returns (uint) {
return _balances[src];
}
| /**
* @dev Gets the balance of the specified address.
* @param src The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
705,
809
]
} | 27,793 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | allowance | function allowance(address src, address guy) public view returns (uint) {
return _approvals[src][guy];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param src address The address which owns the funds.
* @param guy address The address which will spend the funds.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
1035,
1158
]
} | 27,794 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transfer | function transfer(address dst, uint wad) public returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
| /**
* @dev Transfer token for a specified address
* @param dst The address to transfer to.
* @param wad The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
1319,
1447
]
} | 27,795 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transferFrom | function transferFrom(address src, address dst, uint wad)
public
returns (bool)
{
if (src != msg.sender) {
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
}
_balances[src] = sub(_balances[src], wad);
_balances[dst] = add(_balances[dst], wad);
emit Tr... | /**
* @dev Transfer tokens from one address to another
* @param src address The address which you want to send tokens from
* @param dst address The address which you want to transfer to
* @param wad uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
1723,
2137
]
} | 27,796 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | approve | function approve(address guy, uint wad) public returns (bool) {
_approvals[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
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://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
2758,
2949
]
} | 27,797 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | increaseAllowance | function increaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = add(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
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 src The a... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
3396,
3701
]
} | 27,798 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | decreaseAllowance | function decreaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
return true;
}
| /**
* @dev Decrese 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 src The ad... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
4147,
4450
]
} | 27,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.