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
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
CappedCrowdsale
contract CappedCrowdsale is StandardCrowdsale { using SafeMath for uint256; uint256 public cap; function CappedCrowdsale(uint256 _cap) { require(_cap > 0); cap = _cap; } // overriding Crowdsale#validPurchase to add extra cap logic // @return true if investors can buy at the moment /...
/** * @title CappedCrowdsale * @dev Extension of Crowdsale with a max amount of funds raised */
NatSpecMultiLine
validPurchase
function validPurchase() internal returns (bool) { bool withinCap = weiRaised.add(msg.value) <= cap; return super.validPurchase() && withinCap; }
// overriding Crowdsale#validPurchase to add extra cap logic // @return true if investors can buy at the moment // Request Modification : delete constant because needed in son contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 393, 554 ] }
15,000
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
CappedCrowdsale
contract CappedCrowdsale is StandardCrowdsale { using SafeMath for uint256; uint256 public cap; function CappedCrowdsale(uint256 _cap) { require(_cap > 0); cap = _cap; } // overriding Crowdsale#validPurchase to add extra cap logic // @return true if investors can buy at the moment /...
/** * @title CappedCrowdsale * @dev Extension of Crowdsale with a max amount of funds raised */
NatSpecMultiLine
hasEnded
function hasEnded() public constant returns (bool) { bool capReached = weiRaised >= cap; return super.hasEnded() || capReached; }
// overriding Crowdsale#hasEnded to add cap logic // @return true if crowdsale event has ended
LineComment
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 658, 803 ] }
15,001
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
MINDTokenPreSale
contract MINDTokenPreSale is Ownable, CappedCrowdsale { // hard cap of the token pre-sale in ether uint private constant HARD_CAP_IN_WEI = 10000 ether; // Total of MIND Token supply uint public constant TOTAL_MIND_TOKEN_SUPPLY = 50000000; // Token sale rate from ETH to MIND uint privat...
/** * @title MINDTokenPreSale * @dev * We add new features to a base crowdsale using multiple inheritance. * We are using the following extensions: * CappedCrowdsale - sets a max boundary for raised funds * * The code is based on the contracts of Open Zeppelin and we add our contracts : MINDTokenPreSale ...
NatSpecMultiLine
createTokenContract
function createTokenContract () internal returns(StandardToken) { return new MINDToken(TOTAL_MIND_TOKEN_SUPPLY, endTime.add(PERIOD_AFTERSALE_NOT_TRANSFERABLE_IN_SEC), MIND_FOUNDATION_WALLET, FULL_TOKEN_WALLET); }
/** * @dev Create the MIND token (override createTokenContract of StandardCrowdsale) * @return the StandardToken created */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 1839, 2092 ] }
15,002
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
MINDTokenPreSale
contract MINDTokenPreSale is Ownable, CappedCrowdsale { // hard cap of the token pre-sale in ether uint private constant HARD_CAP_IN_WEI = 10000 ether; // Total of MIND Token supply uint public constant TOTAL_MIND_TOKEN_SUPPLY = 50000000; // Token sale rate from ETH to MIND uint privat...
/** * @title MINDTokenPreSale * @dev * We add new features to a base crowdsale using multiple inheritance. * We are using the following extensions: * CappedCrowdsale - sets a max boundary for raised funds * * The code is based on the contracts of Open Zeppelin and we add our contracts : MINDTokenPreSale ...
NatSpecMultiLine
getBonus
function getBonus(uint256 _tokens) constant returns (uint256 bonus) { require(_tokens != 0); if (startTime <= now && now < startTime + 1 days) { return _tokens.div(2); } else if (startTime + 1 days <= now && now < startTime + 2 days ) { return _tokens.div(4); } else if (startTime +...
/** * @dev Get the bonus based on the buy time (override getBonus of StandardCrowdsale) * @return the number of bonus token */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 2246, 2717 ] }
15,003
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
MINDTokenPreSale
contract MINDTokenPreSale is Ownable, CappedCrowdsale { // hard cap of the token pre-sale in ether uint private constant HARD_CAP_IN_WEI = 10000 ether; // Total of MIND Token supply uint public constant TOTAL_MIND_TOKEN_SUPPLY = 50000000; // Token sale rate from ETH to MIND uint privat...
/** * @title MINDTokenPreSale * @dev * We add new features to a base crowdsale using multiple inheritance. * We are using the following extensions: * CappedCrowdsale - sets a max boundary for raised funds * * The code is based on the contracts of Open Zeppelin and we add our contracts : MINDTokenPreSale ...
NatSpecMultiLine
drainRemainingToken
function drainRemainingToken () public onlyOwner { require(hasEnded()); token.transfer(MIND_FOUNDATION_WALLET, token.balanceOf(this)); }
/** * @dev Transfer the unsold tokens to the MIND Foundation multisign wallet * @dev Only for owner * @return the StandardToken created */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 2889, 3073 ] }
15,004
MINDTokenPreSale
MINDTokenPreSale.sol
0x203a118122f4b61ae8d09d57fcffe99600262706
Solidity
MINDTokenPreSale
contract MINDTokenPreSale is Ownable, CappedCrowdsale { // hard cap of the token pre-sale in ether uint private constant HARD_CAP_IN_WEI = 10000 ether; // Total of MIND Token supply uint public constant TOTAL_MIND_TOKEN_SUPPLY = 50000000; // Token sale rate from ETH to MIND uint privat...
/** * @title MINDTokenPreSale * @dev * We add new features to a base crowdsale using multiple inheritance. * We are using the following extensions: * CappedCrowdsale - sets a max boundary for raised funds * * The code is based on the contracts of Open Zeppelin and we add our contracts : MINDTokenPreSale ...
NatSpecMultiLine
postBuyTokens
function postBuyTokens () internal { if ( weiRaised >= HARD_CAP_IN_WEI ) { MINDToken mindToken = MINDToken (token); mindToken.enableTransferEarlier(); PreSaleTokenSoldout(); } }
/** * @dev Action after buying tokens: check if all sold out and enable transfer immediately */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://29e619335ccf4ba9f569fb76b1721bd8f0c101202157583eb18f6014a738ac1d
{ "func_code_index": [ 3193, 3461 ] }
15,005
NFT4096
contracts/NFT2048.sol
0x2fb6a7747f52ee559e9fe0fa8ba4608fdbf1d541
Solidity
NFT4096
contract NFT4096 is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _givedAmountTracker; string private _baseTokenURI; uint256 public saleStartTimestamp = 1634248800; uint256 public maxTokenAmount = 8192; uint...
buy
function buy(uint256 amount) external payable { _canMint(amount); require( msg.value >= amount * 80000000000000000, //amount * 0.08 eth "Not Enough Ether Sent " ); for (uint256 i = 0; i < amount; i++) { mint(msg.sender); } payable(owner()).transfer(msg.value); }...
// function mint_free_bluechip() external { // _canMint(1); // require( // mintedFreeBlueAddresses[msg.sender] == false, // "Already Used Offer" // ); // _mint(msg.sender); // mintedFreeBlueAddresses[msg.sender] = true; // }
LineComment
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 1806, 2171 ] }
15,006
RexToken
contracts/zeppelin/token/StandardToken.sol
0xbd670c4b998e58c0386b78b563f7950e1a83eda5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://c81ad68d7420c64f8f7b6de91cf2b227daedd9cdf95341606a5b5b05f8010cc0
{ "func_code_index": [ 397, 849 ] }
15,007
RexToken
contracts/zeppelin/token/StandardToken.sol
0xbd670c4b998e58c0386b78b563f7950e1a83eda5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://c81ad68d7420c64f8f7b6de91cf2b227daedd9cdf95341606a5b5b05f8010cc0
{ "func_code_index": [ 1481, 1671 ] }
15,008
RexToken
contracts/zeppelin/token/StandardToken.sol
0xbd670c4b998e58c0386b78b563f7950e1a83eda5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://c81ad68d7420c64f8f7b6de91cf2b227daedd9cdf95341606a5b5b05f8010cc0
{ "func_code_index": [ 1995, 2126 ] }
15,009
RexToken
contracts/zeppelin/token/StandardToken.sol
0xbd670c4b998e58c0386b78b563f7950e1a83eda5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://c81ad68d7420c64f8f7b6de91cf2b227daedd9cdf95341606a5b5b05f8010cc0
{ "func_code_index": [ 2371, 2635 ] }
15,010
ChainNationGirls
contracts/ChainNationGirls.sol
0x04c39874f09d2aa416ba649f15c635452df12139
Solidity
ChainNationGirls
contract ChainNationGirls is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.05 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 20; uint256 public n...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://2a185c1321b1a474a4cb1254840567ab4b32e05573cf0a6fba2e171ab2f2694c
{ "func_code_index": [ 821, 926 ] }
15,011
ChainNationGirls
contracts/ChainNationGirls.sol
0x04c39874f09d2aa416ba649f15c635452df12139
Solidity
ChainNationGirls
contract ChainNationGirls is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.05 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 20; uint256 public n...
mint
function mint(uint256 _mintAmount) public payable { require(!paused, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(supply + _mintAmount <= maxSupply...
// public
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://2a185c1321b1a474a4cb1254840567ab4b32e05573cf0a6fba2e171ab2f2694c
{ "func_code_index": [ 942, 1876 ] }
15,012
ChainNationGirls
contracts/ChainNationGirls.sol
0x04c39874f09d2aa416ba649f15c635452df12139
Solidity
ChainNationGirls
contract ChainNationGirls is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.05 ether; uint256 public maxSupply = 7777; uint256 public maxMintAmount = 20; uint256 public n...
reveal
function reveal() public onlyOwner { revealed = true; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://2a185c1321b1a474a4cb1254840567ab4b32e05573cf0a6fba2e171ab2f2694c
{ "func_code_index": [ 2999, 3067 ] }
15,013
PreSale
PreSale.sol
0x4490f9807965c49a2471bd7b121a80f0b3861e5c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://5951cd91fb234c2785fd63a0e64090e2f9e405e2f141b9e58ba1f3958414f577
{ "func_code_index": [ 261, 321 ] }
15,014
PreSale
PreSale.sol
0x4490f9807965c49a2471bd7b121a80f0b3861e5c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://5951cd91fb234c2785fd63a0e64090e2f9e405e2f141b9e58ba1f3958414f577
{ "func_code_index": [ 640, 816 ] }
15,015
SampleBEP20Token
contracts/bep20.sol
0xcf492556ad3bc98eb2abed223bada06e24039dc6
Solidity
SampleBEP20Token
contract SampleBEP20Token { string public name = "LINGKER"; string public symbol = "LINK"; uint256 public totalSupply = 1000000000000; // 1 BILLION tokens uint8 public decimals = 18; /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). *...
/** * @title SampleBEP20Token * @dev Very simple BEP20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `BEP20` functions. * USE IT ONLY FOR LEARNING PURPOSES. SHOULD BE MODIFIED FOR PRODUCTION */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; }
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 1213, 1515 ] }
15,016
SampleBEP20Token
contracts/bep20.sol
0xcf492556ad3bc98eb2abed223bada06e24039dc6
Solidity
SampleBEP20Token
contract SampleBEP20Token { string public name = "LINGKER"; string public symbol = "LINK"; uint256 public totalSupply = 1000000000000; // 1 BILLION tokens uint8 public decimals = 18; /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). *...
/** * @title SampleBEP20Token * @dev Very simple BEP20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `BEP20` functions. * USE IT ONLY FOR LEARNING PURPOSES. SHOULD BE MODIFIED FOR PRODUCTION */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * tra...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 2170, 2406 ] }
15,017
SampleBEP20Token
contracts/bep20.sol
0xcf492556ad3bc98eb2abed223bada06e24039dc6
Solidity
SampleBEP20Token
contract SampleBEP20Token { string public name = "LINGKER"; string public symbol = "LINK"; uint256 public totalSupply = 1000000000000; // 1 BILLION tokens uint8 public decimals = 18; /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). *...
/** * @title SampleBEP20Token * @dev Very simple BEP20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `BEP20` functions. * USE IT ONLY FOR LEARNING PURPOSES. SHOULD BE MODIFIED FOR PRODUCTION */
NatSpecMultiLine
transferFrom
function transferFrom( address _from, address _to, uint256 _value ) public returns (bool success) { require(_value <= balanceOf[_from]); require(_value <= allowance[_from][msg.sender]); balanceOf[_from] -= _value; balanceOf[_to] += _value; allowance[_from][msg.sender] -= _value; emit...
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 2709, 3130 ] }
15,018
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
setUnionDues
function setUnionDues(uint256 dues) external onlyOwner { require(dues <= MAX_DUES, "Dues too high"); unionDues = dues; emit DuesUpdated(dues); }
/// @notice Update union fees /// @param dues - Fees taken from the collected bribes in bips
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 1516, 1692 ] }
15,019
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
updateDistributor
function updateDistributor(address distributor_) external onlyOwner { require(distributor_ != address(0)); unionDistributor = distributor_; emit DistributorUpdated(distributor_); }
/// @notice Update the contract used to distribute funds /// @param distributor_ - Address of the new contract
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 1813, 2025 ] }
15,020
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
updateVotiumDistributor
function updateVotiumDistributor(address distributor_) external onlyOwner { require(distributor_ != address(0)); votiumDistributor = distributor_; emit VotiumDistributorUpdated(distributor_); }
/// @notice Update the votium contract address to claim for /// @param distributor_ - Address of the new contract
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 2149, 2374 ] }
15,021
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
retrieveTokens
function retrieveTokens(address[] calldata tokens) external onlyOwner { for (uint256 i; i < tokens.length; ++i) { address token = tokens[i]; uint256 tokenBalance = IERC20(token).balanceOf(address(this)); IERC20(token).safeTransfer(msg.sender, tokenBalance); emit FundsRetrieved(token,...
/// @notice Withdraws specified ERC20 tokens to the multisig /// @param tokens - the tokens to retrieve /// @dev This is needed to handle tokens that don't have ETH pairs on sushi /// or need to be swapped on other chains (NBST, WormholeLUNA...)
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 2638, 3013 ] }
15,022
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
execute
function execute( address _to, uint256 _value, bytes calldata _data ) external onlyOwner returns (bool, bytes memory) { (bool success, bytes memory result) = _to.call{value: _value}(_data); return (success, result); }
/// @notice Execute calls on behalf of contract in case of emergency
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 3088, 3357 ] }
15,023
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
setForwarding
function setForwarding(address _to) external onlyOwner { IVotiumRegistry(VOTIUM_REGISTRY).setRegistry(_to); }
/// @notice Change forwarding address in Votium registry /// @param _to - address that will be forwarded to /// @dev To be used in case of migration, rewards can be forwarded to /// new contracts
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 3571, 3696 ] }
15,024
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
setApprovals
function setApprovals() external onlyOwner { IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 2**256 - 1); IERC20(CRV_TOKEN).safeApprove(CVXCRV_DEPOSIT, 0); IERC20(CRV_TOKEN).safeApprove(CVXCRV_DEPOSIT, 2**256 - 1); IERC20(CVXCRV_TOKEN)....
/// @notice Set approvals for the tokens used when swapping
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 3762, 4231 ] }
15,025
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
_swapToETH
function _swapToETH(address token, uint256 amount) internal onlyOwner { address[] memory path = new address[](2); path[0] = token; path[1] = WETH; IERC20(token).safeApprove(SUSHI_ROUTER, 0); IERC20(token).safeApprove(SUSHI_ROUTER, amount); router.swapExactTokensForETH( amount, ...
/// @notice Swap a token for ETH /// @param token - address of the token to swap /// @param amount - amount of the token to swap /// @dev Swaps are executed via Sushi router, will revert if pair /// does not exist. Tokens must have a WETH pair.
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 4498, 4951 ] }
15,026
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
claim
function claim(IMultiMerkleStash.claimParam[] calldata claimParams) public onlyOwner { require(claimParams.length > 0, "No claims"); // claim all from votium IMultiMerkleStash(votiumDistributor).claimMulti( address(this), claimParams ); }
/// @notice Claims all specified rewards from Votium /// @param claimParams - an array containing the info necessary to claim for /// each available token /// @dev Used to retrieve tokens that need to be transferred
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 5185, 5507 ] }
15,027
UnionZap
UnionZap.sol
0xcc2a0f5e95c88aabd7b8e0db5c5252820cd47f91
Solidity
UnionZap
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private ...
claimAndSwap
function claimAndSwap(IMultiMerkleStash.claimParam[] calldata claimParams) external onlyOwner { // initialize gas counting uint256 _startGas = gasleft(); bool _locked = false; claim(claimParams); // swap all claims to ETH for (uint256 i; i < claimParams.length; ++i) { address _to...
/// @notice Claims all specified rewards and swaps them to ETH /// @param claimParams - an array containing the info necessary to claim for /// each available token
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
{ "func_code_index": [ 5686, 8265 ] }
15,028
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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 in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly ...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 606, 1033 ] }
15,029
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 1963, 2365 ] }
15,030
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 3121, 3299 ] }
15,031
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 3524, 3725 ] }
15,032
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 4095, 4326 ] }
15,033
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
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"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 4577, 4898 ] }
15,034
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 902, 990 ] }
15,035
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 1104, 1196 ] }
15,036
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 1829, 1917 ] }
15,037
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 1977, 2082 ] }
15,038
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 2140, 2264 ] }
15,039
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 2472, 2652 ] }
15,040
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 2710, 2866 ] }
15,041
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 3008, 3182 ] }
15,042
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 3651, 3977 ] }
15,043
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 4381, 4604 ] }
15,044
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 5102, 5376 ] }
15,045
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sen...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 5861, 6405 ] }
15,046
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 6681, 7064 ] }
15,047
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 7391, 7814 ] }
15,048
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 8247, 8598 ] }
15,049
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 8925, 9020 ] }
15,050
MultiplierToken
node_modules\@openzeppelin\contracts\utils\Address.sol
0xb34e6ece115a315cc65e2ae910e92f1ed6e803af
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.12+commit.27d51765
Apache-2.0
ipfs://9ae221ee602733b642d337754c0aa27518f19f261462c76e8d77db23d09ff084
{ "func_code_index": [ 9618, 9715 ] }
15,051
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 374, 455 ] }
15,052
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 184, 912 ] }
15,053
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1017, 1362 ] }
15,054
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1485, 1941 ] }
15,055
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 719, 798 ] }
15,056
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 944, 1021 ] }
15,057
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1733, 1850 ] }
15,058
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2376, 2489 ] }
15,059
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2962, 3022 ] }
15,060
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3176, 3260 ] }
15,061
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3587, 3662 ] }
15,062
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3813, 3906 ] }
15,063
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4483, 4630 ] }
15,064
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 528, 698 ] }
15,065
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 106, 165 ] }
15,066
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 236, 297 ] }
15,067
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 398, 476 ] }
15,068
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 606, 998 ] }
15,069
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1928, 2250 ] }
15,070
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3007, 3187 ] }
15,071
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3412, 3646 ] }
15,072
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4016, 4281 ] }
15,073
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4532, 5048 ] }
15,074
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 5228, 5432 ] }
15,075
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 5619, 6020 ] }
15,076
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 6202, 6407 ] }
15,077
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 6596, 6998 ] }
15,078
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 103, 265 ] }
15,079
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 971, 1281 ] }
15,080
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1340, 1553 ] }
15,081
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1610, 1854 ] }
15,082
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 1916, 2021 ] }
15,083
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2085, 2194 ] }
15,084
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2260, 2599 ] }
15,085
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2842, 2941 ] }
15,086
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 2998, 3414 ] }
15,087
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3475, 3701 ] }
15,088
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 3768, 4068 ] }
15,089
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4134, 4303 ] }
15,090
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4365, 4709 ] }
15,091
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 4775, 4965 ] }
15,092
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 5031, 5364 ] }
15,093
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 6241, 6561 ] }
15,094
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 6869, 7001 ] }
15,095
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 7163, 7516 ] }
15,096
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 7853, 7968 ] }
15,097
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 8190, 8516 ] }
15,098
LootBasicSkills
LootBasicSkills.sol
0xc7db217c94b6e74598067858ab96144e5dd0e5a1
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.7+commit.e28d00a7
MIT
ipfs://b9946195c36c3e14a4401cd0818897cad72b60598b2020af0336d1bc4c38092e
{ "func_code_index": [ 8847, 9234 ] }
15,099