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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | deposit | function deposit(uint256 _poolId, uint256 _depositAmount) external nonReentrant {
Pool.Data storage _pool = _pools.get(_poolId);
_pool.update(_ctx);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_stake.update(_pool, _ctx);
_deposit(_poolId, _depositAmount);
}
| /// @dev Stakes tokens into a pool.
///
/// @param _poolId the pool to deposit tokens into.
/// @param _depositAmount the amount of tokens to deposit. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
5441,
5747
]
} | 18,800 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | withdraw | function withdraw(uint256 _poolId, uint256 _withdrawAmount) external nonReentrant {
Pool.Data storage _pool = _pools.get(_poolId);
_pool.update(_ctx);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_stake.update(_pool, _ctx);
_claim(_poolId);
_withdraw(_poolId, _withdrawAmount);
}
... | /// @dev Withdraws staked tokens from a pool.
///
/// @param _poolId The pool to withdraw staked tokens from.
/// @param _withdrawAmount The number of tokens to withdraw. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
5943,
6279
]
} | 18,801 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | claim | function claim(uint256 _poolId) external nonReentrant {
Pool.Data storage _pool = _pools.get(_poolId);
_pool.update(_ctx);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_stake.update(_pool, _ctx);
_claim(_poolId);
}
| /// @dev Claims all rewarded tokens from a pool.
///
/// @param _poolId The pool to claim rewards from.
///
/// @notice use this function to claim the tokens from a corresponding pool by ID. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
6488,
6750
]
} | 18,802 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | exit | function exit(uint256 _poolId) external nonReentrant {
Pool.Data storage _pool = _pools.get(_poolId);
_pool.update(_ctx);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_stake.update(_pool, _ctx);
_claim(_poolId);
_withdraw(_poolId, _stake.totalDeposited);
}
| /// @dev Claims all rewards from a pool and then withdraws all staked tokens.
///
/// @param _poolId the pool to exit from. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
6886,
7195
]
} | 18,803 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | rewardRate | function rewardRate() external view returns (uint256) {
return _ctx.rewardRate;
}
| /// @dev Gets the rate at which tokens are minted to stakers for all pools.
///
/// @return the reward rate. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
7316,
7408
]
} | 18,804 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | totalRewardWeight | function totalRewardWeight() external view returns (uint256) {
return _ctx.totalRewardWeight;
}
| /// @dev Gets the total reward weight between all the pools.
///
/// @return the total reward weight. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
7522,
7628
]
} | 18,805 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | poolCount | function poolCount() external view returns (uint256) {
return _pools.length();
}
| /// @dev Gets the number of pools that exist.
///
/// @return the pool count. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
7718,
7809
]
} | 18,806 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getPoolToken | function getPoolToken(uint256 _poolId) external view returns (IERC20) {
Pool.Data storage _pool = _pools.get(_poolId);
return _pool.token;
}
| /// @dev Gets the token a pool accepts.
///
/// @param _poolId the identifier of the pool.
///
/// @return the token. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
7945,
8101
]
} | 18,807 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getPoolTotalDeposited | function getPoolTotalDeposited(uint256 _poolId) external view returns (uint256) {
Pool.Data storage _pool = _pools.get(_poolId);
return _pool.totalDeposited;
}
| /// @dev Gets the total amount of funds staked in a pool.
///
/// @param _poolId the identifier of the pool.
///
/// @return the total amount of staked or deposited tokens. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
8292,
8467
]
} | 18,808 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getPoolRewardWeight | function getPoolRewardWeight(uint256 _poolId) external view returns (uint256) {
Pool.Data storage _pool = _pools.get(_poolId);
return _pool.rewardWeight;
}
| /// @dev Gets the reward weight of a pool which determines how much of the total rewards it receives per block.
///
/// @param _poolId the identifier of the pool.
///
/// @return the pool reward weight. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
8688,
8859
]
} | 18,809 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getPoolRewardRate | function getPoolRewardRate(uint256 _poolId) external view returns (uint256) {
Pool.Data storage _pool = _pools.get(_poolId);
return _pool.getRewardRate(_ctx);
}
| /// @dev Gets the amount of tokens per block being distributed to stakers for a pool.
///
/// @param _poolId the identifier of the pool.
///
/// @return the pool reward rate. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
9052,
9228
]
} | 18,810 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getStakeTotalDeposited | function getStakeTotalDeposited(address _account, uint256 _poolId) external view returns (uint256) {
Stake.Data storage _stake = _stakes[_account][_poolId];
return _stake.totalDeposited;
}
| /// @dev Gets the number of tokens a user has staked into a pool.
///
/// @param _account The account to query.
/// @param _poolId the identifier of the pool.
///
/// @return the amount of deposited tokens. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
9457,
9661
]
} | 18,811 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | getStakeTotalUnclaimed | function getStakeTotalUnclaimed(address _account, uint256 _poolId) external view returns (uint256) {
Stake.Data storage _stake = _stakes[_account][_poolId];
return _stake.getUpdatedTotalUnclaimed(_pools.get(_poolId), _ctx);
}
| /// @dev Gets the number of unclaimed reward tokens a user can claim from a pool.
///
/// @param _account The account to get the unclaimed balance of.
/// @param _poolId The pool to check for unclaimed rewards.
///
/// @return the amount of unclaimed reward tokens a user has in a pool. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
9970,
10211
]
} | 18,812 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | _updatePools | function _updatePools() internal {
for (uint256 _poolId = 0; _poolId < _pools.length(); _poolId++) {
Pool.Data storage _pool = _pools.get(_poolId);
_pool.update(_ctx);
}
}
| /// @dev Updates all of the pools. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
10252,
10453
]
} | 18,813 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | _deposit | function _deposit(uint256 _poolId, uint256 _depositAmount) internal {
Pool.Data storage _pool = _pools.get(_poolId);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_pool.totalDeposited = _pool.totalDeposited.add(_depositAmount);
_stake.totalDeposited = _stake.totalDeposited.add(_depositAmount);... | /// @dev Stakes tokens into a pool.
///
/// The pool and stake MUST be updated before calling this function.
///
/// @param _poolId the pool to deposit tokens into.
/// @param _depositAmount the amount of tokens to deposit. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
10705,
11187
]
} | 18,814 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | _withdraw | function _withdraw(uint256 _poolId, uint256 _withdrawAmount) internal {
Pool.Data storage _pool = _pools.get(_poolId);
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
_pool.totalDeposited = _pool.totalDeposited.sub(_withdrawAmount);
_stake.totalDeposited = _stake.totalDeposited.sub(_withdrawAmou... | /// @dev Withdraws staked tokens from a pool.
///
/// The pool and stake MUST be updated before calling this function.
///
/// @param _poolId The pool to withdraw staked tokens from.
/// @param _withdrawAmount The number of tokens to withdraw. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
11462,
11931
]
} | 18,815 | ||
XEQSwaps | XEQSwaps.sol | 0x50ceb6aa41787f45d3da5cf8432a27c451471af1 | Solidity | StakingPools | contract StakingPools is ReentrancyGuard {
using FixedPointMath for FixedPointMath.FixedDecimal;
using Pool for Pool.Data;
using Pool for Pool.List;
using SafeERC20 for IERC20;
using SafeMath for uint256;
using Stake for Stake.Data;
event PendingGovernanceUpdated(
address pendingGovernance
... | _claim | function _claim(uint256 _poolId) internal {
Stake.Data storage _stake = _stakes[msg.sender][_poolId];
uint256 _claimAmount = _stake.totalUnclaimed;
_stake.totalUnclaimed = 0;
reward._mint(msg.sender, _claimAmount);
totalTokensClaimed = totalTokensClaimed.add(_claimAmount);
emit TokensClaimed... | /// @dev Claims all rewarded tokens from a pool.
///
/// The pool and stake MUST be updated before calling this function.
///
/// @param _poolId The pool to claim rewards from.
///
/// @notice use this function to claim the tokens from a corresponding pool by ID. | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://1321b59adf56a161cf1528a4268aebbe82181ff1568ef52722d6521647652e4b | {
"func_code_index": [
12219,
12595
]
} | 18,816 | ||
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/// @dev Change ownership
/// @param ... | /// @title Ownable contract | NatSpecSingleLine | transferOwnership | function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /// @dev Change ownership
/// @param newOwner Address of the new owner | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
355,
531
]
} | 18,817 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | setRate | function setRate(uint32 _rate) public onlyOwner {
require(_rate > 0);
rate = _rate;
}
| /// @dev Set the rate of ETH - EUR
/// @param _rate Rate of ETH - EUR | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
2782,
2883
]
} | 18,818 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | function () payable {
buyTokens(msg.sender);
}
| /// @dev Fallback function for crowdsale contribution | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
2943,
3000
]
} | 18,819 | ||
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | buyTokens | function buyTokens(address beneficiary) public payable {
require(beneficiary != address(0));
require(helper.isWhitelisted(beneficiary));
uint256 weiAmount = msg.value;
require(weiAmount > 0);
uint256 tokenAmount = 0;
if (isPresale()) {
/// Minimum contribution of 1 ether during presale
requi... | /// @dev Buy tokens function
/// @param beneficiary Address which will receive the tokens | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
3099,
4247
]
} | 18,820 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | getIcoDiscountPercentage | function getIcoDiscountPercentage() internal constant returns (uint8) {
if (tokensSoldIco <= icoDiscountLevel1) {
return icoDiscountPercentageLevel1;
} else if (tokensSoldIco <= icoDiscountLevel1.add(icoDiscountLevel2)) {
return icoDiscountPercentageLevel2;
} else {
return icoDiscountPercentage... | /// @dev Internal function used for calculating ICO discount percentage depending on levels | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
4345,
4721
]
} | 18,821 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | getTokenAmount | function getTokenAmount(uint256 weiAmount, uint8 discountPercentage) internal constant returns (uint256) {
/// Less than 100 to avoid division with zero
require(discountPercentage >= 0 && discountPercentage < 100);
uint256 baseTokenAmount = weiAmount.mul(rate);
uint256 tokenAmount = baseTokenAmount.mul(100... | /// @dev Internal function used to calculate amount of tokens based on discount percentage | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
4818,
5213
]
} | 18,822 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | executeTransaction | function executeTransaction(address beneficiary, uint256 weiAmount, uint256 tokenAmount) internal {
weiRaised = weiRaised.add(weiAmount);
token.mint(beneficiary, tokenAmount);
TokenPurchase(msg.sender, beneficiary, weiAmount, tokenAmount);
contributors = contributors.add(1);
wallet.transfer(weiAmount);
}... | /// @dev Internal function for execution of crowdsale transaction and proper logging used by payable functions | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
5330,
5665
]
} | 18,823 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changePresaleCap | function changePresaleCap(uint256 _preCap) public onlyOwner {
require(_preCap > 0);
PresaleCapChanged(owner, _preCap);
preCap = _preCap;
}
| /// @dev Used to change presale cap (maximum tokens sold during presale)
/// @param _preCap Presale cap | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
5778,
5937
]
} | 18,824 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changePresaleDiscountPercentage | function changePresaleDiscountPercentage(uint8 _preDiscountPercentage) public onlyOwner {
require(_preDiscountPercentage >= 0 && _preDiscountPercentage < 100);
PresaleDiscountPercentageChanged(owner, _preDiscountPercentage);
preDiscountPercentage = _preDiscountPercentage;
}
| /// @dev Used to change presale discount percentage
/// @param _preDiscountPercentage Presale discount percentage | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
6060,
6355
]
} | 18,825 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changePresaleTimeRange | function changePresaleTimeRange(uint256 _startTimePre, uint256 _endTimePre) public onlyOwner {
require(_endTimePre >= _startTimePre);
PresaleTimeRangeChanged(owner, _startTimePre, _endTimePre);
startTimePre = _startTimePre;
endTimePre = _endTimePre;
}
| /// @dev Used to change presale time
/// @param _startTimePre Start time of presale
/// @param _endTimePre End time of presale | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
6494,
6771
]
} | 18,826 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changeIcoCap | function changeIcoCap(uint256 _icoCap) public onlyOwner {
require(_icoCap > 0);
IcoCapChanged(owner, _icoCap);
icoCap = _icoCap;
}
| /// @dev Used to change ICO cap in case the hard cap has been reached
/// @param _icoCap ICO cap | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
6877,
7028
]
} | 18,827 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changeIcoTimeRange | function changeIcoTimeRange(uint256 _startTimeIco, uint256 _endTimeIco) public onlyOwner {
require(_endTimeIco >= _startTimeIco);
IcoTimeRangeChanged(owner, _startTimeIco, _endTimeIco);
startTimeIco = _startTimeIco;
endTimeIco = _endTimeIco;
}
| /// @dev Used to change time of ICO
/// @param _startTimeIco Start time of ICO
/// @param _endTimeIco End time of ICO | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
7158,
7427
]
} | 18,828 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changeIcoDiscountLevels | function changeIcoDiscountLevels(uint256 _icoDiscountLevel1, uint256 _icoDiscountLevel2) public onlyOwner {
require(_icoDiscountLevel1 > 0 && _icoDiscountLevel2 > 0);
IcoDiscountLevelsChanged(owner, _icoDiscountLevel1, _icoDiscountLevel2);
icoDiscountLevel1 = _icoDiscountLevel1;
icoDiscountLevel2 = _icoDisc... | /// @dev Change amount of tokens in discount phases
/// @param _icoDiscountLevel1 Amount of tokens in first phase
/// @param _icoDiscountLevel2 Amount of tokens in second phase | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
7616,
7963
]
} | 18,829 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | changeIcoDiscountPercentages | function changeIcoDiscountPercentages(uint8 _icoDiscountPercentageLevel1, uint8 _icoDiscountPercentageLevel2, uint8 _icoDiscountPercentageLevel3) public onlyOwner {
require(_icoDiscountPercentageLevel1 >= 0 && _icoDiscountPercentageLevel1 < 100);
require(_icoDiscountPercentageLevel2 >= 0 && _icoDiscountPercentage... | /// @dev Change discount percentages for different phases
/// @param _icoDiscountPercentageLevel1 Discount percentage of phase 1
/// @param _icoDiscountPercentageLevel2 Discount percentage of phase 2
/// @param _icoDiscountPercentageLevel3 Discount percentage of phase 3 | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
8249,
9010
]
} | 18,830 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | isPresale | function isPresale() public constant returns (bool) {
return now >= startTimePre && now <= endTimePre;
}
| /// @dev Check if presale is active | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9052,
9167
]
} | 18,831 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | isIco | function isIco() public constant returns (bool) {
return now >= startTimeIco && now <= endTimeIco;
}
| /// @dev Check if ICO is active | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9205,
9316
]
} | 18,832 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | hasPresaleEnded | function hasPresaleEnded() public constant returns (bool) {
return now > endTimePre;
}
| /// @dev Check if presale has ended | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9358,
9455
]
} | 18,833 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | hasIcoEnded | function hasIcoEnded() public constant returns (bool) {
return now > endTimeIco;
}
| /// @dev Check if ICO has ended | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9493,
9586
]
} | 18,834 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | cummulativeTokensSold | function cummulativeTokensSold() public constant returns (uint256) {
return tokensSoldPre + tokensSoldIco;
}
| /// @dev Amount of tokens that have been sold during both presale and ICO phase | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9672,
9791
]
} | 18,835 | |
WizzleInfinityTokenCrowdsale | WizzleInfinityTokenCrowdsale.sol | 0xc48dce601d09796b554fda45a1d28488f4aa3731 | Solidity | Crowdsale | contract Crowdsale is Ownable {
using SafeMath for uint256;
/// Token reference
ExtendedERC20 public token;
/// WizzleInfinityHelper reference - helper for whitelisting
WizzleInfinityHelper public helper;
/// Presale start time (inclusive)
uint256 public startTimePre;
/// Presale end time (i... | /// @title Crowdsale contract | NatSpecSingleLine | claimTokens | function claimTokens(address _token) public onlyOwner {
if (_token == address(0)) {
owner.transfer(this.balance);
return;
}
ERC20 erc20Token = ERC20(_token);
uint balance = erc20Token.balanceOf(this);
erc20Token.transfer(owner, balance);
ClaimedTokens(_token, owner, balance);
}
| /// @dev Function to extract mistakenly sent ERC20 tokens sent to Crowdsale contract
/// @param _token Address of token we want to extract | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://a0531436bb1c11e713f5c6af0bac9c19daa2dffda592c722bc15ff0e29ae6be7 | {
"func_code_index": [
9939,
10276
]
} | 18,836 | |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
374,
455
]
} | 18,837 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
719,
798
]
} | 18,838 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) external view returns (address owner);
| /**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
944,
1021
]
} | 18,839 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token mus... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1733,
1850
]
} | 18,840 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If th... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2376,
2489
]
} | 18,841 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2962,
3022
]
} | 18,842 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) external view returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3176,
3260
]
} | 18,843 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3587,
3662
]
} | 18,844 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) external view returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3813,
3906
]
} | 18,845 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {appro... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4483,
4630
]
} | 18,846 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Receiver | interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other valu... | /**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/ | NatSpecMultiLine | onERC721Received | function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
528,
698
]
} | 18,847 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the token collection name.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
106,
165
]
} | 18,848 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token collection symbol.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
236,
297
]
} | 18,849 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory);
| /**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
398,
476
]
} | 18,850 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
606,
998
]
} | 18,851 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
| /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1928,
2250
]
} | 18,852 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3007,
3187
]
} | 18,853 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3412,
3646
]
} | 18,854 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4016,
4281
]
} | 18,855 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4532,
5048
]
} | 18,856 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
5228,
5432
]
} | 18,857 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
5619,
6020
]
} | 18,858 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
6202,
6407
]
} | 18,859 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCall... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
6596,
6998
]
} | 18,860 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toString | function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
184,
912
]
} | 18,861 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
| /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1017,
1362
]
} | 18,862 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1485,
1941
]
} | 18,863 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
103,
265
]
} | 18,864 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | 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.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
971,
1281
]
} | 18,865 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1340,
1553
]
} | 18,866 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1610,
1854
]
} | 18,867 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1916,
2021
]
} | 18,868 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2085,
2194
]
} | 18,869 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
| /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2260,
2599
]
} | 18,870 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @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://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2842,
2941
]
} | 18,871 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2998,
3414
]
} | 18,872 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3475,
3701
]
} | 18,873 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3768,
4068
]
} | 18,874 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4134,
4303
]
} | 18,875 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4365,
4709
]
} | 18,876 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
4775,
4965
]
} | 18,877 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
5031,
5364
]
} | 18,878 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeTransfer | function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
6241,
6561
]
} | 18,879 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
6869,
7001
]
} | 18,880 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
7163,
7516
]
} | 18,881 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
7853,
7968
]
} | 18,882 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
8190,
8516
]
} | 18,883 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
8847,
9234
]
} | 18,884 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
9458,
9823
]
} | 18,885 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
//... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
10155,
10738
]
} | 18,886 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
10851,
11030
]
} | 18,887 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721... | /**
* @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://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
11590,
12398
]
} | 18,888 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | 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... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
12965,
13096
]
} | 18,889 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the total amount of tokens stored by the contract.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
132,
192
]
} | 18,890 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
| /**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
375,
479
]
} | 18,891 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) external view returns (uint256);
| /**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
655,
729
]
} | 18,892 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
605,
834
]
} | 18,893 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
| /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
913,
1174
]
} | 18,894 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1245,
1363
]
} | 18,895 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
1435,
1673
]
} | 18,896 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnume... | /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
2281,
2875
]
} | 18,897 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToOwnerEnumeration | function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
| /**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3171,
3397
]
} | 18,898 |
ExtinctDodo | ExtinctDodo.sol | 0x21b2a8c5d9dac114b341833446961e84aae76dde | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToAllTokensEnumeration | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| /**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://d4fcc3091c4c529804d531592c6008a7fb1141932c1ea6b1339d4bf33cedb335 | {
"func_code_index": [
3593,
3762
]
} | 18,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.