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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EPXToken | EPXToken.sol | 0x35baa72038f127f9f8c8f9b491049f64f377914d | Solidity | EPXToken | contract EPXToken is ERC20Interface {
// token setup variables
string public constant name = "EthPoker.io EPX";
string public constant standard = "EPX";
string public constant symbol = "EPX";
uint8 public constant decimals = 4; ... | function () public payable {
revert();
}
| // Reject sent ETH | LineComment | v0.4.18+commit.9cf6e910 | bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd | {
"func_code_index": [
4756,
4807
]
} | 16,700 | ||||
EPXToken | EPXToken.sol | 0x35baa72038f127f9f8c8f9b491049f64f377914d | Solidity | EPXToken | contract EPXToken is ERC20Interface {
// token setup variables
string public constant name = "EthPoker.io EPX";
string public constant standard = "EPX";
string public constant symbol = "EPX";
uint8 public constant decimals = 4; ... | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // Contract owner able to transfer any airdropped or ERC20 tokens that are sent to the token contract address (mistakenly or as part of airdrop campaign) | LineComment | v0.4.18+commit.9cf6e910 | bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd | {
"func_code_index": [
4967,
5148
]
} | 16,701 | |||
TixlToken | contracts/TixlToken.sol | 0xdc4462c744e528e9e77d1d3ace094960d90a90e3 | Solidity | TixlToken | contract TixlToken is ERC20 {
uint256 private _initialCap = 900000000 * 10**uint(18);
/**
* @dev We know this variable is redundant but we keep it to make clear that the cap is always the initial cap
* and can never be increased.
*/
uint256 private _cap = _initialCap;
constructor () ERC20("T... | cap | function cap() public view returns (uint256) {
return _cap;
}
| /**
* @dev Returns the cap on the token's total supply.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://14498cf1348391dcf6084c2c893874d3af3ad825cc781672af9ca1ba16b50aa8 | {
"func_code_index": [
458,
530
]
} | 16,702 | ||
TixlToken | contracts/TixlToken.sol | 0xdc4462c744e528e9e77d1d3ace094960d90a90e3 | Solidity | TixlToken | contract TixlToken is ERC20 {
uint256 private _initialCap = 900000000 * 10**uint(18);
/**
* @dev We know this variable is redundant but we keep it to make clear that the cap is always the initial cap
* and can never be increased.
*/
uint256 private _cap = _initialCap;
constructor () ERC20("T... | initialCap | function initialCap() public view returns (uint256) {
return _initialCap;
}
| /**
* @dev Returns the initial cap of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://14498cf1348391dcf6084c2c893874d3af3ad825cc781672af9ca1ba16b50aa8 | {
"func_code_index": [
596,
682
]
} | 16,703 | ||
TixlToken | contracts/TixlToken.sol | 0xdc4462c744e528e9e77d1d3ace094960d90a90e3 | Solidity | TixlToken | contract TixlToken is ERC20 {
uint256 private _initialCap = 900000000 * 10**uint(18);
/**
* @dev We know this variable is redundant but we keep it to make clear that the cap is always the initial cap
* and can never be increased.
*/
uint256 private _cap = _initialCap;
constructor () ERC20("T... | burn | function burn(uint256 amount) public virtual {
_burn(msg.sender, amount);
_cap = _cap - amount;
}
| /**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://14498cf1348391dcf6084c2c893874d3af3ad825cc781672af9ca1ba16b50aa8 | {
"func_code_index": [
783,
898
]
} | 16,704 | ||
TixlToken | contracts/TixlToken.sol | 0xdc4462c744e528e9e77d1d3ace094960d90a90e3 | Solidity | TixlToken | contract TixlToken is ERC20 {
uint256 private _initialCap = 900000000 * 10**uint(18);
/**
* @dev We know this variable is redundant but we keep it to make clear that the cap is always the initial cap
* and can never be increased.
*/
uint256 private _cap = _initialCap;
constructor () ERC20("T... | burnFrom | function burnFrom(address account, uint256 amount) public virtual {
uint256 decreasedAllowance = allowance(account, msg.sender).sub(amount, "ERC20: burn amount exceeds allowance");
_approve(account, msg.sender, decreasedAllowance);
_burn(account, amount);
}
| /**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://14498cf1348391dcf6084c2c893874d3af3ad825cc781672af9ca1ba16b50aa8 | {
"func_code_index": [
1190,
1468
]
} | 16,705 | ||
TixlToken | contracts/TixlToken.sol | 0xdc4462c744e528e9e77d1d3ace094960d90a90e3 | Solidity | TixlToken | contract TixlToken is ERC20 {
uint256 private _initialCap = 900000000 * 10**uint(18);
/**
* @dev We know this variable is redundant but we keep it to make clear that the cap is always the initial cap
* and can never be increased.
*/
uint256 private _cap = _initialCap;
constructor () ERC20("T... | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
if (from == address(0)) { // When minting tokens
require(totalSupply().add(amount) <= _cap, "ERC20Capped: cap exceeded");
}
}
| /**
* @dev See {ERC20-_beforeTokenTransfer}.
*
* Requirements:
*
* - minted tokens must not cause the total supply to go over the cap.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://14498cf1348391dcf6084c2c893874d3af3ad825cc781672af9ca1ba16b50aa8 | {
"func_code_index": [
1636,
1937
]
} | 16,706 | ||
wLoki | openzeppelin-solidity/contracts/ownership/CanReclaimToken.sol | 0x5ff668ddfdcbb7505f41ed56e626e4d4719dcb26 | 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 | MIT | bzzr://996658368a04e3f591c50723a27f16b281eb6ecf0c544a0e8e812e67af8751d9 | {
"func_code_index": [
207,
365
]
} | 16,707 |
NFTWorlds | contracts/NFTWorlds.sol | 0xbd4455da5929d5639ee098abfaa3241e9ae111af | Solidity | NFTWorlds | contract NFTWorlds is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
using ECDSA for bytes32;
/**
* @dev Mint Related
* */
string public ipfsGateway = "https://ipfs.nftworlds.com/ipfs/";
bool public mintEnabled = false;
uint public totalMinted = 0;
uint public mintSupplyC... | tokenURI | function tokenURI(uint _tokenId) override public view returns (string memory) {
require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
return string(abi.encodePacked(ipfsGateway, tokenMetadataIPFSHashes[_tokenId]));
}
| /************
* Metadata *
************/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
4780,
5034
]
} | 16,708 | ||||
NFTWorlds | contracts/NFTWorlds.sol | 0xbd4455da5929d5639ee098abfaa3241e9ae111af | Solidity | NFTWorlds | contract NFTWorlds is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
using ECDSA for bytes32;
/**
* @dev Mint Related
* */
string public ipfsGateway = "https://ipfs.nftworlds.com/ipfs/";
bool public mintEnabled = false;
uint public totalMinted = 0;
uint public mintSupplyC... | joinWhitelist | function joinWhitelist(bytes calldata _signature) public {
require(verifyOwnerSignature(keccak256(abi.encode(_msgSender())), _signature), "Invalid Signature");
require(!mintEnabled, "Whitelist is not available");
require(whitelistAddressCount < maxWhitelistCount, "Whitelist is full");
require(!whitelist[_msgSen... | /*************
* Whitelist *
*************/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
9949,
10397
]
} | 16,709 | ||||
NFTWorlds | contracts/NFTWorlds.sol | 0xbd4455da5929d5639ee098abfaa3241e9ae111af | Solidity | NFTWorlds | contract NFTWorlds is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
using ECDSA for bytes32;
/**
* @dev Mint Related
* */
string public ipfsGateway = "https://ipfs.nftworlds.com/ipfs/";
bool public mintEnabled = false;
uint public totalMinted = 0;
uint public mintSupplyC... | verifyOwnerSignature | function verifyOwnerSignature(bytes32 hash, bytes memory signature) private view returns(bool) {
return hash.toEthSignedMessageHash().recover(signature) == owner();
}
| /************
* Security *
************/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
10449,
10623
]
} | 16,710 | ||||
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | addLocker | function addLocker(address _address) public validAddress(_address) onlyOwner {
locker[_address] = true;
}
| // owner may add or remove a locker address for the contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
1830,
1954
]
} | 16,711 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | setUnlockEarlier | function setUnlockEarlier(uint256 _earlier) public onlyOwner {
earlier = add(earlier, _earlier);
}
| // fast-forward the timelocks for all accounts | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
2140,
2257
]
} | 16,712 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | setUnlockLater | function setUnlockLater(uint256 _later) public onlyOwner {
later = add(later, _later);
}
| // delay the timelocks for all accounts | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
2305,
2412
]
} | 16,713 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | balanceUnlocked | function balanceUnlocked(address _address) public view returns (uint256 _balance) {
_balance = balanceP[_address];
uint256 i = 0;
while (i < lockNum[_address]) {
if (add(now, earlier) >= add(lockTime[_address][i], later)) _balance = add(_balance, lockValue[_address][i]);
i++;
}
... | // show unlocked balance of an account | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
2459,
2837
]
} | 16,714 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | balanceLocked | function balanceLocked(address _address) public view returns (uint256 _balance) {
_balance = 0;
uint256 i = 0;
while (i < lockNum[_address]) {
if (add(now, earlier) < add(lockTime[_address][i], later)) _balance = add(_balance, lockValue[_address][i]);
i++;
}
return _balance;
... | // show timelocked balance of an account | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
2886,
3245
]
} | 16,715 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | balanceOf | function balanceOf(address _address) public view returns (uint256 _balance) {
_balance = balanceP[_address];
uint256 i = 0;
while (i < lockNum[_address]) {
_balance = add(_balance, lockValue[_address][i]);
i++;
}
return _balance;
}
| // standard ERC20 balanceOf with timelock added | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
3301,
3613
]
} | 16,716 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | showTime | function showTime(address _address) public view validAddress(_address) returns (uint256[] _time) {
uint i = 0;
uint256[] memory tempLockTime = new uint256[](lockNum[_address]);
while (i < lockNum[_address]) {
tempLockTime[i] = sub(add(lockTime[_address][i], later), earlier);
i++;
}... | // show timelocks in an account | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
3653,
4039
]
} | 16,717 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | showValue | function showValue(address _address) public view validAddress(_address) returns (uint256[] _value) {
return lockValue[_address];
}
| // show values locked in an account's timelocks | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
4095,
4244
]
} | 16,718 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | calcUnlock | function calcUnlock(address _address) private {
uint256 i = 0;
uint256 j = 0;
uint256[] memory currentLockTime;
uint256[] memory currentLockValue;
uint256[] memory newLockTime = new uint256[](lockNum[_address]);
uint256[] memory newLockValue = new uint256[](lockNum[_address]);
current... | // Calculate and process the timelock states of an account | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
4311,
5620
]
} | 16,719 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | transfer | function transfer(address _to, uint256 _value) public validAddress(_to) returns (bool success) {
if (lockNum[msg.sender] > 0) calcUnlock(msg.sender);
require(balanceP[msg.sender] >= _value && _value >= 0);
balanceP[msg.sender] = sub(balanceP[msg.sender], _value);
balanceP[_to] = add(balanceP[_to], _... | // standard ERC20 transfer | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
5655,
6081
]
} | 16,720 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | transferLocked | function transferLocked(address _to, uint256[] _time, uint256[] _value) public validAddress(_to) returns (bool success) {
require(_value.length == _time.length);
if (lockNum[msg.sender] > 0) calcUnlock(msg.sender);
uint256 i = 0;
uint256 totalValue = 0;
while (i < _value.length) {
to... | // transfer Token with timelocks | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
6122,
7342
]
} | 16,721 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | transferLockedFrom | function transferLockedFrom(address _from, address _to, uint256[] _time, uint256[] _value) public
validAddress(_from) validAddress(_to) returns (bool success) {
require(locker[msg.sender]);
require(_value.length == _time.length);
if (lockNum[_from] > 0) calcUnlock(_from);
uint256 i = 0;
uin... | // lockers set by owners may transfer Token with timelocks | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
7409,
8813
]
} | 16,722 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public validAddress(_from) validAddress(_to) returns (bool success) {
if (lockNum[_from] > 0) calcUnlock(_from);
require(balanceP[_from] >= _value && _value >= 0 && allowance[_from][msg.sender] >= _value);
allowance[_from][msg.sender] = su... | // standard ERC20 transferFrom | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
8852,
9412
]
} | 16,723 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | approve | function approve(address _spender, uint256 _value) public validAddress(_spender) returns (bool success) {
if (lockNum[msg.sender] > 0) calcUnlock(msg.sender);
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| // should only be called when first setting an allowance | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
9477,
9783
]
} | 16,724 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | increaseApproval | function increaseApproval(address _spender, uint _value) public returns (bool) {
allowance[msg.sender][_spender] = add(allowance[msg.sender][_spender], _value);
emit Approval(msg.sender, _spender, allowance[msg.sender][_spender]);
return true;
}
| // increase or decrease allowance | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
9825,
10101
]
} | 16,725 | |
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | function () public payable {
revert();
}
| // safety methods | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
10534,
10593
]
} | 16,726 | ||
Token | Token.sol | 0x99641ef8bdeddc76d8253aa3e8604087490667dc | Solidity | Token | contract Token is SafeMath, Owned {
uint256 private constant DAY_IN_SECONDS = 86400;
string public constant standard = "0.861057";
string public name = "";
string public symbol = "";
uint8 public decimals = 0;
uint256 public totalSupply = 0;
mapping (address => uint256) public balance... | // the main ERC20-compliant contract | LineComment | emptyWrongEther | function emptyWrongEther() onlyOwner public {
uint256 amount = address(this).balance;
require(amount > 0);
msg.sender.transfer(amount);
emit WrongEtherEmptied(msg.sender, amount);
}
| // shouldn't happen, just in case | LineComment | v0.4.24+commit.e67f0147 | bzzr://893fe52c4cd3e93fbc5973c1595e8e0d0b91085ecb36938ee0d630f5b9457909 | {
"func_code_index": [
10964,
11185
]
} | 16,727 | |
UniTradeStaker00 | UniTradeStaker00.sol | 0x5b32cdda19ea68f8e3a8511455ef39a9d178c5ca | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://199a41ed639ca90c3c15c4fea03eb563bc3058a79ad5269ac13954739fac40d0 | {
"func_code_index": [
497,
581
]
} | 16,728 |
UniTradeStaker00 | UniTradeStaker00.sol | 0x5b32cdda19ea68f8e3a8511455ef39a9d178c5ca | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://199a41ed639ca90c3c15c4fea03eb563bc3058a79ad5269ac13954739fac40d0 | {
"func_code_index": [
1139,
1292
]
} | 16,729 |
UniTradeStaker00 | UniTradeStaker00.sol | 0x5b32cdda19ea68f8e3a8511455ef39a9d178c5ca | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://199a41ed639ca90c3c15c4fea03eb563bc3058a79ad5269ac13954739fac40d0 | {
"func_code_index": [
1442,
1691
]
} | 16,730 |
SilkyFinanceStaking2 | contracts/CurveRewards.sol | 0x8b9d61053c7eaa04690942e1c3944e64470d6376 | Solidity | SilkyFinanceStaking2 | contract SilkyFinanceStaking2 is LPTokenWrapper, IRewardDistributionRecipient {
// Token to be rewarded
IERC20 public yfi = IERC20(address(0));
uint256 public constant DURATION = 200 days;
uint256 public periodFinish = 0;
uint256 public rewardRate = 0;
uint256 public lastUpdateTime;
... | stake | function stake(uint256 amount) public updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
super.stake(amount);
emit Staked(msg.sender, amount);
}
| // stake visibility is public as overriding LPTokenWrapper's stake() function | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://c68b287eeb7fc14ba3e5f1ad06aff61696f234cdeff760e4b5ef79adf5d68352 | {
"func_code_index": [
2118,
2314
]
} | 16,731 | ||
duos | duos.sol | 0xf04bc80900f2248878b2ad9478f3109239862c66 | Solidity | duos | contract duos is EIP20Interface {
uint256 constant private MAX_UINT256 = 2**256 - 1;
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowed;
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
... | duos | function duos(
uint256 _initialAmount,
string _tokenName,
uint8 _decimalUnits,
string _tokenSymbol
) public {
balances[msg.sender] = _initialAmount; // Give the creator all initial tokens
totalSupply = _initialAmount; // Update total supply
name =... | //An identifier: eg SBX | LineComment | v0.4.21+commit.dfe3193c | MIT | bzzr://7ae776c8a161786967268a7a8938d4fe7d1332cdbfd9c070ebdc39fbef572cca | {
"func_code_index": [
721,
1374
]
} | 16,732 | ||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _delegate | function _delegate(address implementation) internal {
// solhint-disable-next-line no-inline-assembly
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memo... | /**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
223,
1114
]
} | 16,733 | ||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _implementation | function _implementation() internal virtual view returns (address);
| /**
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
1293,
1364
]
} | 16,734 | ||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _fallback | function _fallback() internal {
_beforeFallback();
_delegate(_implementation());
}
| /**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
1590,
1696
]
} | 16,735 | ||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
1889,
1950
]
} | 16,736 | ||||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
2106,
2166
]
} | 16,737 | ||||
TransparentUpgradeableProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0x323590872a33b91c24aee638241c28cd8ff967ff | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _beforeFallback | function _beforeFallback() internal virtual {
}
| /**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overriden should call `super._beforeFallback()`.
*/ | NatSpecMultiLine | v0.7.4+commit.3f05b770 | {
"func_code_index": [
2444,
2499
]
} | 16,738 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(transfersEnabled);
require(parentSnapShotBlock < block.number);
require(_to != address(0));
uint256 lastBalance = balanceOfAt(msg.sender, block.number);
require(_value <= lastBalance);
return doTransfer(msg.sender, _to,... | /**
* @dev Transfer token for a specified address
*
* @param _to address The address which you want to transfer to
* @param _value uint256 the amout of tokens to be transfered
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
2220,
2582
]
} | 16,739 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | transferAndCall | function transferAndCall(address _to, uint256 _value, bytes _data) public payable returns (bool) {
require(_to != address(this));
transfer(_to, _value);
// solium-disable-next-line security/no-call-value
require(_to.call.value(msg.value)(_data));
return true;
}
| /**
* @dev Addition to ERC20 token methods. Transfer tokens to a specified
* @dev address and execute a call with the sent data on the same transaction
*
* @param _to address The address which you want to transfer to
* @param _value uint256 the amout of tokens to be transfered
* @param _data ABI-encoded con... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
3033,
3329
]
} | 16,740 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(transfersEnabled);
require(parentSnapShotBlock < block.number);
require(_to != address(0));
require(_value <= allowed[_from][msg.sender]);
uint256 lastBalance = balanceOfAt(_from, block.number);
require... | /**
* @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.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
3615,
4114
]
} | 16,741 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | transferFromAndCall | function transferFromAndCall(
address _from,
address _to,
uint256 _value,
bytes _data
)
public payable returns (bool)
{
require(_to != address(this));
transferFrom(_from, _to, _value);
// solium-disable-next-line security/no-call-value
require(_to.call.value(msg.value)(_data));
retur... | /**
* @dev Addition to ERC20 token methods. Transfer tokens from one address to
* @dev another and make a contract call on the same transaction
*
* @param _from The address which you want to send tokens from
* @param _to The address which you want to transfer to
* @param _value The amout of tokens to be tra... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
4608,
4967
]
} | 16,742 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | 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.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
5605,
5800
]
} | 16,743 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | 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.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
6130,
6261
]
} | 16,744 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | 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;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* @dev approve should be called when allowed[_spender] == 0. To increment
* @dev allowed value is better to use this function to avoid 2 calls (and wait until
* t@dev he first transaction is mined)
* @dev From MonolithDAO Token.s... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
6753,
7022
]
} | 16,745 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | increaseApprovalAndCall | function increaseApprovalAndCall(address _spender, uint _addedValue, bytes _data) public payable returns (bool) {
require(_spender != address(this));
increaseApproval(_spender, _addedValue);
// solium-disable-next-line security/no-call-value
require(_spender.call.value(msg.value)(_data));
return tr... | /**
* @dev Addition to StandardToken methods. Increase the amount of tokens that
* @dev an owner allowed to a spender and execute a call with the sent data.
*
* @dev approve should be called when allowed[_spender] == 0. To increment
* @dev allowed value is better to use this function to avoid 2 calls (and wai... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
7671,
8012
]
} | 16,746 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | decreaseApproval | function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
emit Approva... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* @dev approve should be called when allowed[_spender] == 0. To decrement
* @dev allowed value is better to use this function to avoid 2 calls (and wait until
* @dev the first transaction is mined)
* @dev From MonolithDAO Token.s... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
8509,
8924
]
} | 16,747 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | decreaseApprovalAndCall | function decreaseApprovalAndCall(address _spender, uint _subtractedValue, bytes _data) public payable returns (bool) {
require(_spender != address(this));
decreaseApproval(_spender, _subtractedValue);
// solium-disable-next-line security/no-call-value
require(_spender.call.value(msg.value)(_data));
... | /**
* @dev Addition to StandardToken methods. Decrease the amount of tokens that
* @dev an owner allowed to a spender and execute a call with the sent data.
*
* @dev approve should be called when allowed[_spender] == 0. To decrement
* @dev allowed value is better to use this function to avoid 2 calls (and wai... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
9578,
9929
]
} | 16,748 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
return balanceOfAt(_owner, block.number);
}
| /**
* @param _owner The address that's balance is being requested
* @return The balance of `_owner` at the current block
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
10071,
10192
]
} | 16,749 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | balanceOfAt | function balanceOfAt(address _owner, uint256 _blockNumber) public view returns (uint256) {
// These next few lines are used when the balance of the token is
// requested before a check point was ever created for this token, it
// requires that the `parentToken.balanceOfAt` be queried at the
// genesis bl... | /**
* @dev Queries the balance of `_owner` at a specific `_blockNumber`
*
* @param _owner The address from which the balance will be retrieved
* @param _blockNumber The block number when the balance is queried
* @return The balance at `_blockNumber`
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
10475,
11344
]
} | 16,750 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupplyAt(block.number);
}
| /**
* @dev This function makes it easy to get the total number of tokens
*
* @return The total number of tokens
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
11481,
11584
]
} | 16,751 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | totalSupplyAt | function totalSupplyAt(uint256 _blockNumber) public view returns(uint256) {
// These next few lines are used when the totalSupply of the token is
// requested before a check point was ever created for this token, it
// requires that the `parentToken.totalSupplyAt` be queried at the
// genesis block for... | /**
* @dev Total amount of tokens at a specific `_blockNumber`.
*
* @param _blockNumber The block number when the totalSupply is queried
* @return The total amount of tokens at `_blockNumber`
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
11805,
12654
]
} | 16,752 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | mint | function mint(address _to, uint256 _amount) public onlyOwner canMint returns (bool) {
uint256 curTotalSupply = totalSupply();
uint256 lastBalance = balanceOf(_to);
updateValueAtNow(totalSupplyHistory, curTotalSupply.add(_amount));
updateValueAtNow(balances[_to], lastBalance.add(_amount));
emit Mint(_... | /**
* @dev Function to mint tokens
*
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
12901,
13316
]
} | 16,753 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | finishMinting | function finishMinting() public onlyOwner canMint returns (bool) {
mintingFinished = true;
emit MintFinished();
return true;
}
| /**
* @dev Function to stop minting new tokens.
*
* @return True if the operation was successful.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
13439,
13586
]
} | 16,754 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | burn | function burn(uint256 _value) public {
uint256 lastBalance = balanceOf(msg.sender);
require(_value <= lastBalance);
address burner = msg.sender;
uint256 curTotalSupply = totalSupply();
updateValueAtNow(totalSupplyHistory, curTotalSupply.sub(_value));
updateValueAtNow(balances[burner], lastBalance.... | /**
* @dev Burns a specific amount of tokens.
*
* @param _value uint256 The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
13717,
14104
]
} | 16,755 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | burnFrom | function burnFrom(address _from, uint256 _value) public {
require(_value <= allowed[_from][msg.sender]);
uint256 lastBalance = balanceOfAt(_from, block.number);
require(_value <= lastBalance);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
address burner = _from;
uint256 cu... | /**
* @dev Burns a specific amount of tokens from an address
*
* @param _from address The address which you want to send tokens from
* @param _value uint256 The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
14324,
14866
]
} | 16,756 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | enableTransfers | function enableTransfers(bool _transfersEnabled) public onlyOwner canMint {
transfersEnabled = _transfersEnabled;
}
| /**
* @dev Enables token holders to transfer their tokens freely if true
*
* @param _transfersEnabled True if transfers are allowed in the clone
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
15036,
15162
]
} | 16,757 | ||
SatisfactionToken | contracts/token/SatisfactionToken.sol | 0x683ce91b8b37484c876c376ffa8a2ce76105d467 | Solidity | SatisfactionToken | contract SatisfactionToken is ERC20, CheckpointStorage, NoOwner {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Mint(address indexed to, uint256 amount);
event MintFinished();
event Burn(ad... | doTransfer | function doTransfer(address _from, address _to, uint256 _value, uint256 _lastBalance) internal returns (bool) {
if (_value == 0) {
return true;
}
updateValueAtNow(balances[_from], _lastBalance.sub(_value));
uint256 previousBalance = balanceOfAt(_to, block.number);
updateValueAtNow(balances[_to],... | /**
* @dev This is the actual transfer function in the token contract, it can
* @dev only be called by other functions in this contract.
*
* @param _from The address holding the tokens being transferred
* @param _to The address of the recipient
* @param _value The amount of tokens to be transferred
* @par... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://2f90dcf8611e1320a24dec64cec72558e793b59be83889ef69a170c9b0127d1a | {
"func_code_index": [
15600,
16030
]
} | 16,758 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
971,
1281
]
} | 16,759 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
1340,
1553
]
} | 16,760 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
1610,
1854
]
} | 16,761 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
1916,
2021
]
} | 16,762 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
2085,
2194
]
} | 16,763 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
| /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
2260,
2599
]
} | 16,764 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
2758,
3174
]
} | 16,765 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
3235,
3461
]
} | 16,766 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
3528,
3688
]
} | 16,767 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
3754,
3923
]
} | 16,768 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
3985,
4329
]
} | 16,769 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
4395,
4585
]
} | 16,770 | ||
Cryptopunkshybrid | @openzeppelin/contracts/token/ERC721/ERC721.sol | 0x69bdc27f99c88697144463e1a76b3eef1ef6735f | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a | {
"func_code_index": [
4651,
4984
]
} | 16,771 | ||
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return currentIndex;
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
1780,
1877
]
} | 16,772 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view override returns (uint256) {
require(index < totalSupply(), "ERC721A: global index out of bounds");
return index;
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
1943,
2123
]
} | 16,773 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index)
public
view
override
returns (uint256)
{
require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
uint256 numMintedSoFar = totalSupply();
uint256 tokenIdsIdx = 0;
address currOwnershipAddr = address(0);
for (uint256 i... | /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
* This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
* It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
2411,
3158
]
} | 16,774 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supports... | /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
3219,
3592
]
} | 16,775 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view override returns (uint256) {
require(owner != address(0), "ERC721A: balance query for the zero address");
return uint256(_addressData[owner].balance);
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
3645,
3859
]
} | 16,776 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view override returns (address) {
return ownershipOf(tokenId).addr;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
4768,
4889
]
} | 16,777 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
4945,
5042
]
} | 16,778 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
5100,
5201
]
} | 16,779 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | 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(bas... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
5261,
5658
]
} | 16,780 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
5891,
5982
]
} | 16,781 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public override {
address owner = ERC721A.ownerOf(tokenId);
require(to != owner, "ERC721A: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721A: approve caller is not owner nor approved for all"
... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
6033,
6415
]
} | 16,782 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view override returns (address) {
require(_exists(tokenId), "ERC721A: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
6470,
6677
]
} | 16,783 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public override {
require(operator != _msgSender(), "ERC721A: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
6738,
7015
]
} | 16,784 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | 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.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
7075,
7264
]
} | 16,785 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public override {
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
7320,
7465
]
} | 16,786 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
7525,
7685
]
} | 16,787 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public override {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"ERC721A: transfer to non ERC721Receiver implementer"
);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
7745,
8059
]
} | 16,788 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view returns (bool) {
return tokenId < currentIndex;
}
| /**
* @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`),
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
8295,
8403
]
} | 16,789 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _safeMint | function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
uint256 startTokenId = currentIndex;
require(to != address(0), "ERC721A: mint to the zero address");
// We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
... | /**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - there must be `quantity` tokens remaining unminted in the total collection.
* - `to` cannot be the zero address.
* - `quantity` cannot be larger than the max batch size.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
8843,
10118
]
} | 16,790 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
getApproved(tokenId) == _msgSender() ||
isApprovedForAll(prevOwnership.addr, _msgSender()));
... | /**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
10347,
11879
]
} | 16,791 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _approve | function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
11982,
12157
]
} | 16,792 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _setOwnersExplicit | function _setOwnersExplicit(uint256 quantity) internal {
uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
require(quantity > 0, "quantity must be nonzero");
uint256 endIndex = oldNextOwnerToSet + quantity - 1;
if (endIndex > collectionSize - 1) {
endIndex = collectionSize - 1;
}
// We know i... | /**
* @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
12308,
13157
]
} | 16,793 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | 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... | /**
* @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.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
13697,
14390
]
} | 16,794 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _beforeTokenTransfers | function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
| /**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
14849,
14993
]
} | 16,795 |
M101Shelter2 | M101Shelter2.sol | 0xb6aa22bbb40ff145fd27525107ed7afe583ee5c4 | Solidity | ERC721A | contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the numbe... | NatSpecMultiLine | _afterTokenTransfers | function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
| /**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0439ab60dae90247430d25941a57835245931614ba04c587887e02d160e1557d | {
"func_code_index": [
15376,
15519
]
} | 16,796 |
INFTToken | INFTToken.sol | 0xa36d285633136f88c0e370864f43ed3f5022e540 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d | {
"func_code_index": [
94,
154
]
} | 16,797 |
INFTToken | INFTToken.sol | 0xa36d285633136f88c0e370864f43ed3f5022e540 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d | {
"func_code_index": [
237,
310
]
} | 16,798 |
INFTToken | INFTToken.sol | 0xa36d285633136f88c0e370864f43ed3f5022e540 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d | {
"func_code_index": [
534,
616
]
} | 16,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.