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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
2550,
2758
]
} | 16,400 | |
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
3289,
3647
]
} | 16,401 | |
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
3930,
4086
]
} | 16,402 | |
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
4441,
4758
]
} | 16,403 | |
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
4950,
5009
]
} | 16,404 | ||
Casa | Casa.sol | 0x7472f396b30de368e289b49de16e6ccdbce464ed | Solidity | Casa | contract Casa is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.18+commit.9cf6e910 | bzzr://564091cb03bc0e1d83ff5687cac11b9e195e4081368b970683301ee6dd0254ae | {
"func_code_index": [
5242,
5431
]
} | 16,405 | |
SatisfactionToken | zeppelin-solidity/contracts/ownership/CanReclaimToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | CanReclaimToken | contract CanReclaimToken is Ownable {
using SafeERC20 for ERC20Basic;
/**
* @dev Reclaim all ERC20Basic compatible tokens
* @param token ERC20Basic The address of the token contract
*/
function reclaimToken(ERC20Basic token) external onlyOwner {
uint256 balance = token.balanceOf(this);
... | /**
* @title Contracts that should be able to recover tokens
* @author SylTi
* @dev This allow a contract to recover any ERC20 token received in a contract by transferring the balance to the contract owner.
* This will prevent any accidental loss of tokens.
*/ | NatSpecMultiLine | reclaimToken | function reclaimToken(ERC20Basic token) external onlyOwner {
uint256 balance = token.balanceOf(this);
token.safeTransfer(owner, balance);
}
| /**
* @dev Reclaim all ERC20Basic compatible tokens
* @param token ERC20Basic The address of the token contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
206,
361
]
} | 16,406 |
MeltedPunks | /D/code/melted-punks/contracts/MeltedPunks.sol | 0x1808cb10ad0dc7bb891efbad883da63ebf0e110c | Solidity | MeltedPunks | contract MeltedPunks is ERC721Enumerable, Ownable {
uint256 currentPrice = 30000000000000000;
uint256 maxSupply = 10000;
string currentContractURI = "ipfs://QmU41s9E4bkvLUDVgqf8JkDwyAxxivP9PuSndyMZhmXxnS";
string baseURI = "ipfs://QmQYaq4Ss3zD5dGkZNaz7HDLXt4uqpjaE4oXhuNJnFu7Mt/metadata/";
bool ... | meltPunk | function meltPunk(uint256 tokenId) public payable returns (uint256) {
require(msg.value >= currentPrice, "Must send enough ETH.");
require(
tokenId >= 0 && tokenId < 10000,
"Punk ID must be between -1 and 10000"
);
require(totalSupply() < maxSupply, "Maximum punks already melted.")... | //USER FUNCTIONS | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
502,
994
]
} | 16,407 | ||||
MeltedPunks | /D/code/melted-punks/contracts/MeltedPunks.sol | 0x1808cb10ad0dc7bb891efbad883da63ebf0e110c | Solidity | MeltedPunks | contract MeltedPunks is ERC721Enumerable, Ownable {
uint256 currentPrice = 30000000000000000;
uint256 maxSupply = 10000;
string currentContractURI = "ipfs://QmU41s9E4bkvLUDVgqf8JkDwyAxxivP9PuSndyMZhmXxnS";
string baseURI = "ipfs://QmQYaq4Ss3zD5dGkZNaz7HDLXt4uqpjaE4oXhuNJnFu7Mt/metadata/";
bool ... | withdraw | function withdraw() public {
require(msg.sender == owner(), "Only owner can withdraw funds.");
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
| //OWNER FUNCTIONS | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1022,
1235
]
} | 16,408 | ||||
MeltedPunks | /D/code/melted-punks/contracts/MeltedPunks.sol | 0x1808cb10ad0dc7bb891efbad883da63ebf0e110c | Solidity | MeltedPunks | contract MeltedPunks is ERC721Enumerable, Ownable {
uint256 currentPrice = 30000000000000000;
uint256 maxSupply = 10000;
string currentContractURI = "ipfs://QmU41s9E4bkvLUDVgqf8JkDwyAxxivP9PuSndyMZhmXxnS";
string baseURI = "ipfs://QmQYaq4Ss3zD5dGkZNaz7HDLXt4uqpjaE4oXhuNJnFu7Mt/metadata/";
bool ... | isPunkMelted | function isPunkMelted(uint256 tokenId) public view returns (bool) {
return _exists(tokenId);
}
| /*
READ FUNCTIONS
*/ | Comment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
2483,
2596
]
} | 16,409 | ||||
SatisfactionToken | zeppelin-solidity/contracts/ownership/HasNoTokens.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | HasNoTokens | contract HasNoTokens is CanReclaimToken {
/**
* @dev Reject all ERC223 compatible tokens
* @param from_ address The address that is transferring the tokens
* @param value_ uint256 the amount of the specified token
* @param data_ Bytes The data passed from the caller.
*/
function tokenFallback(addr... | /**
* @title Contracts that should not own Tokens
* @author Remco Bloemen <remco@2π.com>
* @dev This blocks incoming ERC223 tokens to prevent accidental loss of tokens.
* Should tokens (any ERC20Basic compatible) end up in the contract, it allows the
* owner to reclaim the tokens.
*/ | NatSpecMultiLine | tokenFallback | function tokenFallback(address from_, uint256 value_, bytes data_) external {
from_;
value_;
data_;
revert();
}
| /**
* @dev Reject all ERC223 compatible tokens
* @param from_ address The address that is transferring the tokens
* @param value_ uint256 the amount of the specified token
* @param data_ Bytes The data passed from the caller.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
291,
428
]
} | 16,410 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
259,
445
]
} | 16,411 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
723,
864
]
} | 16,412 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
1162,
1359
]
} | 16,413 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
1613,
2089
]
} | 16,414 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
2560,
2697
]
} | 16,415 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
3188,
3471
]
} | 16,416 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
3931,
4066
]
} | 16,417 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
4546,
4717
]
} | 16,418 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | YamGovernorAlpha | contract YamGovernorAlpha {
/// @notice The name of this contract
string public constant name = "YAM Governor Alpha";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256)... | // Original work from Compound: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Modified to work in the YAM system | LineComment | quorumVotes | function quorumVotes() public view returns (uint256) { return 200000 * 10**24; } // 4% of YAM
| /// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed | NatSpecSingleLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
264,
362
]
} | 16,419 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | YamGovernorAlpha | contract YamGovernorAlpha {
/// @notice The name of this contract
string public constant name = "YAM Governor Alpha";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256)... | // Original work from Compound: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Modified to work in the YAM system | LineComment | proposalThreshold | function proposalThreshold() public view returns (uint256) { return 50000 * 10**24; } // 1% of YAM
| /// @notice The number of votes required in order for a voter to become a proposer | NatSpecSingleLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
453,
556
]
} | 16,420 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | YamGovernorAlpha | contract YamGovernorAlpha {
/// @notice The name of this contract
string public constant name = "YAM Governor Alpha";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256)... | // Original work from Compound: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Modified to work in the YAM system | LineComment | proposalMaxOperations | function proposalMaxOperations() public pure returns (uint256) { return 10; } // 10 actions
| /// @notice The maximum number of actions that can be included in a proposal | NatSpecSingleLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
641,
737
]
} | 16,421 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | YamGovernorAlpha | contract YamGovernorAlpha {
/// @notice The name of this contract
string public constant name = "YAM Governor Alpha";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256)... | // Original work from Compound: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Modified to work in the YAM system | LineComment | votingDelay | function votingDelay() public pure returns (uint256) { return 1; } // 1 block
| /// @notice The delay before voting on a proposal may take place, once proposed | NatSpecSingleLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
825,
907
]
} | 16,422 |
YamGovernorAlpha | YamGovernorAlpha.sol | 0x2da253835967d6e721c6c077157f9c9742934aea | Solidity | YamGovernorAlpha | contract YamGovernorAlpha {
/// @notice The name of this contract
string public constant name = "YAM Governor Alpha";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256)... | // Original work from Compound: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Modified to work in the YAM system | LineComment | votingPeriod | function votingPeriod() public pure returns (uint256) { return 12345; } // ~2 days in blocks (assuming 14s blocks)
| /// @notice The duration of voting on a proposal, in blocks | NatSpecSingleLine | v0.5.15+commit.6a57276f | GNU GPLv3 | bzzr://89c5d8fff2ed81d2d8ef6c4a7f52b83068fbcffbaa43d9ec235f1ab15aebd098 | {
"func_code_index": [
975,
1094
]
} | 16,423 |
VouchCoin | VouchCoin.sol | 0xbe4411737170e852ea275d235145ceab77e0fe73 | Solidity | VouchCoin | contract VouchCoin is Ownable, ERC20Interface {
using SafeMath for uint;
uint public _totalSupply = 10000000000000000;
string public constant name = "VouchCoin";
string public constant symbol = "VHC";
uint public constant decimals = 8;
string public standard = "VouchCoin token v2.0";
mapping (a... | VouchCoin | function VouchCoin() public {
balances[owner] = _totalSupply;
emit Transfer(address(0), owner, _totalSupply);
}
| // Constructor | LineComment | v0.4.24+commit.e67f0147 | bzzr://0cfb24ddf06a887136d8e54a8fafe34753b3c342fd17acfdd860652e4759cd04 | {
"func_code_index": [
482,
609
]
} | 16,424 | |||
VouchCoin | VouchCoin.sol | 0xbe4411737170e852ea275d235145ceab77e0fe73 | Solidity | VouchCoin | contract VouchCoin is Ownable, ERC20Interface {
using SafeMath for uint;
uint public _totalSupply = 10000000000000000;
string public constant name = "VouchCoin";
string public constant symbol = "VHC";
uint public constant decimals = 8;
string public standard = "VouchCoin token v2.0";
mapping (a... | totalSupply | function totalSupply() public constant returns (uint _supply) {
return _totalSupply;
}
| // Total supply | LineComment | v0.4.24+commit.e67f0147 | bzzr://0cfb24ddf06a887136d8e54a8fafe34753b3c342fd17acfdd860652e4759cd04 | {
"func_code_index": [
631,
728
]
} | 16,425 | |||
VouchCoin | VouchCoin.sol | 0xbe4411737170e852ea275d235145ceab77e0fe73 | Solidity | VouchCoin | contract VouchCoin is Ownable, ERC20Interface {
using SafeMath for uint;
uint public _totalSupply = 10000000000000000;
string public constant name = "VouchCoin";
string public constant symbol = "VHC";
uint public constant decimals = 8;
string public standard = "VouchCoin token v2.0";
mapping (a... | balanceOf | function balanceOf(address _owner) public constant returns (uint balance) {
return balances[_owner];
}
| // Get the token balance of address | LineComment | v0.4.24+commit.e67f0147 | bzzr://0cfb24ddf06a887136d8e54a8fafe34753b3c342fd17acfdd860652e4759cd04 | {
"func_code_index": [
770,
883
]
} | 16,426 | |||
VouchCoin | VouchCoin.sol | 0xbe4411737170e852ea275d235145ceab77e0fe73 | Solidity | VouchCoin | contract VouchCoin is Ownable, ERC20Interface {
using SafeMath for uint;
uint public _totalSupply = 10000000000000000;
string public constant name = "VouchCoin";
string public constant symbol = "VHC";
uint public constant decimals = 8;
string public standard = "VouchCoin token v2.0";
mapping (a... | transfer | function transfer(address _to, uint _value) public returns (bool success) {
require(_to != 0x0);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _to, _value);
return true;
}
| // Transfer tokens from owner address | LineComment | v0.4.24+commit.e67f0147 | bzzr://0cfb24ddf06a887136d8e54a8fafe34753b3c342fd17acfdd860652e4759cd04 | {
"func_code_index": [
927,
1211
]
} | 16,427 | |||
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | admin | function admin() external ifAdmin returns (address) {
return _admin();
}
| /**
* @return The address of the proxy admin.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
989,
1072
]
} | 16,428 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | implementation | function implementation() external ifAdmin returns (address) {
return _implementation();
}
| /**
* @return The address of the implementation.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
1138,
1239
]
} | 16,429 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | changeAdmin | function changeAdmin(address newAdmin) external ifAdmin {
require(newAdmin != address(0), "Cannot change the admin of a proxy to the zero address");
emit AdminChanged(_admin(), newAdmin);
_setAdmin(newAdmin);
}
| /**
* @dev Changes the admin of the proxy.
* Only the current admin can call this function.
* @param newAdmin Address to transfer proxy administration to.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
1419,
1650
]
} | 16,430 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | upgradeTo | function upgradeTo(address newImplementation) external ifAdmin {
_upgradeTo(newImplementation);
}
| /**
* @dev Upgrade the backing implementation of the proxy.
* Only the admin can call this function.
* @param newImplementation Address of the new implementation.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
1838,
1946
]
} | 16,431 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | upgradeToAndCall | function upgradeToAndCall(address newImplementation, bytes calldata data) payable external ifAdmin {
_upgradeTo(newImplementation);
(bool success,) = newImplementation.delegatecall(data);
require(success);
}
| /**
* @dev Upgrade the backing implementation of the proxy and call a function
* on the new implementation.
* This is useful to initialize the proxied contract.
* @param newImplementation Address of the new implementation.
* @param data Data to send as msg.data in the low level call.
* It should include the... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
2471,
2699
]
} | 16,432 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | _admin | function _admin() internal view returns (address adm) {
bytes32 slot = ADMIN_SLOT;
assembly {
adm := sload(slot)
}
}
| /**
* @return The admin slot.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
2746,
2890
]
} | 16,433 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | _setAdmin | function _setAdmin(address newAdmin) internal {
bytes32 slot = ADMIN_SLOT;
assembly {
sstore(slot, newAdmin)
}
}
| /**
* @dev Sets the address of the proxy admin.
* @param newAdmin Address of the new proxy admin.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
3009,
3151
]
} | 16,434 |
AdminUpgradeabilityProxy | node_modules\@openzeppelin\upgrades\contracts\upgradeability\BaseAdminUpgradeabilityProxy.sol | 0xacdf425bf4c2bc8dfe024752b3f1e52ba050b3ca | Solidity | BaseAdminUpgradeabilityProxy | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
/**
* @dev Emitted when the administration has been transferred.
* @param previousAdmin Address of the previous admin.
* @param newAdmin Address of the new admin.
*/
event AdminChanged(address previousAdmin, address newAdmin);
... | /**
* @title BaseAdminUpgradeabilityProxy
* @dev This contract combines an upgradeability proxy with an authorization
* mechanism for administrative tasks.
* All external functions in this contract must be guarded by the
* `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
* feature proposal that... | NatSpecMultiLine | _willFallback | function _willFallback() internal {
require(msg.sender != _admin(), "Cannot call fallback function from the proxy admin");
super._willFallback();
}
| /**
* @dev Only fall back when the sender is not the admin.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://a461eba29a25e3e22e2883cf755e2cfdfe57c0acddec02b806b16e791486882a | {
"func_code_index": [
3228,
3391
]
} | 16,435 |
SatisfactionToken | contracts/lifecycle/CheckpointStorage.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | CheckpointStorage | contract CheckpointStorage {
/**
* @dev `Checkpoint` is the structure that attaches a block number to a
* @dev given value, the block number attached is the one that last changed the
* @dev value
*/
struct Checkpoint {
// `fromBlock` is the block number that the value was generated from
... | getValueAt | function getValueAt(Checkpoint[] storage checkpoints, uint _block) internal view returns (uint) {
if (checkpoints.length == 0)
return 0;
// Shortcut for the actual value
if (_block >= checkpoints[checkpoints.length - 1].fromBlock)
return checkpoints[checkpoints.length - 1].value;
if (_block < ch... | /**
* @dev `getValueAt` retrieves the number of tokens at a given block number
*
* @param checkpoints The history of values being queried
* @param _block The block number to retrieve the value at
* @return The number of tokens being queried
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
813,
1529
]
} | 16,436 | ||
SatisfactionToken | contracts/lifecycle/CheckpointStorage.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | CheckpointStorage | contract CheckpointStorage {
/**
* @dev `Checkpoint` is the structure that attaches a block number to a
* @dev given value, the block number attached is the one that last changed the
* @dev value
*/
struct Checkpoint {
// `fromBlock` is the block number that the value was generated from
... | updateValueAtNow | function updateValueAtNow(Checkpoint[] storage checkpoints, uint _value) internal {
if ((checkpoints.length == 0) || (checkpoints[checkpoints.length - 1].fromBlock < block.number)) {
Checkpoint storage newCheckPoint = checkpoints[checkpoints.length++];
newCheckPoint.fromBlock = uint128(block.number);
... | /**
* @dev `updateValueAtNow` used to update the `balances` map and the
* @dev `totalSupplyHistory`
*
* @param checkpoints The history of data being updated
* @param _value The new number of tokens
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
1760,
2280
]
} | 16,437 | ||
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
2897,
3110
]
} | 16,438 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
3167,
3411
]
} | 16,439 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
3473,
3578
]
} | 16,440 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
3642,
3751
]
} | 16,441 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
3817,
4182
]
} | 16,442 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return _uri;
}
| /**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
4314,
4415
]
} | 16,443 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _setBaseURI | function _setBaseURI(string memory baseURI) internal virtual returns (string memory) {
_uri = baseURI;
return _uri;
}
| /**
* @dev set Base URI for {tokenURI}.
* in child contracts.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
4507,
4652
]
} | 16,444 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor ap... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
4709,
5118
]
} | 16,445 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
5179,
5405
]
} | 16,446 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
5472,
5772
]
} | 16,447 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
5838,
6007
]
} | 16,448 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
6069,
6379
]
} | 16,449 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
6445,
6601
]
} | 16,450 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
6667,
6957
]
} | 16,451 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeTransfer | function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
7834,
8111
]
} | 16,452 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
8419,
8551
]
} | 16,453 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(o... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
8713,
9073
]
} | 16,454 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
9410,
9525
]
} | 16,455 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
9747,
10002
]
} | 16,456 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
10333,
10720
]
} | 16,457 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
10944,
11309
]
} | 16,458 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _transfer | function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals f... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
11641,
12190
]
} | 16,459 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
12303,
12482
]
} | 16,460 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onER... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
13042,
13890
]
} | 16,461 |
Ghostie | contracts/ERC721.sol | 0x6f7c8b1b6cc01f09132c1c9978722daea65a0c44 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
string private _uri = "https://www.ghosties.io/ipfs/ghostie/";
// Mapping from ... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://b902ca5b63f44b57c9bc341b33b702eb2f79de78e857e4b4d380d132fd048d35 | {
"func_code_index": [
14498,
14596
]
} | 16,462 |
ShillWin | ShillWin.sol | 0xc332355a8db21e5e7325eacf1a09902c3f221848 | Solidity | Context | contract Context {
constructor() internal {}
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns(address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns(address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://0674bec8a78c2cb9007c2708fe7c10c8d4b5a505b8b99f660953742fc42aed84 | {
"func_code_index": [
105,
207
]
} | 16,463 | ||
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer d... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
95,
288
]
} | 16,464 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer d... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
378,
670
]
} | 16,465 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer d... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
790,
914
]
} | 16,466 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer d... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
984,
1124
]
} | 16,467 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
uint previousBalances = balances[msg.sender] + balances[_to];
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
268,
803
]
} | 16,468 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
1009,
1121
]
} | 16,469 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
401,
858
]
} | 16,470 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
1490,
1685
]
} | 16,471 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
2009,
2140
]
} | 16,472 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* 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)
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
2352,
2621
]
} | 16,473 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public{
owner = msg.sender;
}
... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
638,
819
]
} | 16,474 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
513,
609
]
} | 16,475 | |
ARKToken | ARKToken.sol | 0xb0de41a591d6fb075f93cb59002e747694060ba8 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://5c0d3ae90abf2439a15748460e85f727daa0dfef78a44e149a06fa78ca81593a | {
"func_code_index": [
693,
791
]
} | 16,476 | |
kkICOTest80 | kkICOTest80.sol | 0xc6c5814fada23b09eda0c60b69ad246281547717 | Solidity | kkICOTest80 | contract kkICOTest80 {
string public name;
string public symbol;
uint256 public decimals;
uint256 public INITIAL_SUPPLY;
uint256 public rate;
address public owner; //init owner address
uint256 public amount;
function kkICOTest80() {
name... | function () payable {
uint256 tryAmount = div((mul(msg.value, rate)), 1 ether); //Don't let people buy more tokens than there are.
if (msg.value == 0 || msg.value < 0 || balanceOf(owner) < tryAmount) { //If zero ether is sent, kill. Do nothing.
throw;
}
amount = 0;... | //This function is called when Ether is sent to the contract address
//Even if 0 ether is sent. | LineComment | v0.4.11+commit.68ef5810 | bzzr://5535f9cb0fe00866fba86dcbce1416a8d3049458c9fad77f8d24ad35c83f718e | {
"func_code_index": [
853,
1620
]
} | 16,477 | ||||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
94,
154
]
} | 16,478 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
237,
310
]
} | 16,479 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
534,
616
]
} | 16,480 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
895,
983
]
} | 16,481 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
1647,
1726
]
} | 16,482 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | 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.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
2039,
2141
]
} | 16,483 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
100,
159
]
} | 16,484 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
226,
287
]
} | 16,485 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
363,
418
]
} | 16,486 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
497,
589
]
} | 16,487 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
1148,
1301
]
} | 16,488 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
1451,
1700
]
} | 16,489 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
910,
1015
]
} | 16,490 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | 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.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
1129,
1238
]
} | 16,491 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | 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... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
1872,
1970
]
} | 16,492 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
2030,
2143
]
} | 16,493 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
2201,
2333
]
} | 16,494 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | 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.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
2541,
2721
]
} | 16,495 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
2779,
2935
]
} | 16,496 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
3273,
3772
]
} | 16,497 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | 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.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
4532,
4706
]
} | 16,498 | ||
AKA | AKA.sol | 0xa6c8eda3005d899da5910d4a50bb73d8247b4837 | Solidity | AKA | contract AKA is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the va... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_ap... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://3c125e30689c808e59dae285dcf64506b1edc2f609b1c67d43f8bb742d05a44e | {
"func_code_index": [
5183,
5610
]
} | 16,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.