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
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
getExternalBalance
function getExternalBalance(address contractAddress, address walletAddress) public view returns (uint256) { ERC721Enumerable token = ERC721Enumerable(contractAddress); return token.balanceOf(walletAddress); }
/** * @dev Check how many Eternal Fragments an address holds */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 2910, 3170 ] }
24,300
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
presaleMint
function presaleMint(uint256 quantity, bytes32[] memory proof) public payable { /// get the variables as comparable bytes bytes32 _contractState = keccak256(abi.encodePacked(contractState)); /// check that one of the presale windows is active require( _contractState == presale1State || _...
/** @dev Mint in the presale * @param quantity The quantity of tokens to mint * @param proof The required proof */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 3306, 5640 ] }
24,301
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
publicMint
function publicMint(uint256 quantity) public payable { bytes32 _contractState = keccak256(abi.encodePacked(contractState)); require( _contractState == publicMintState, "Public minting is not active" ); // check the txn value require( msg.value >= mintPrice * quantity, ...
/** @dev Mint in the public sale * @param quantity The quantity of tokens to mint */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 5741, 6195 ] }
24,302
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
mint
function mint(uint256 quantity, bytes32 _contractState) internal { /// Disallow transactions that would exceed the maxSupply require(totalSupply() + quantity <= maxSupply, "Supply is exhausted"); // if it's presale, count the tokens minted that were guanranteed to the sender uint256 presalePoolToClaim ...
/** @dev Mints a token * @param quantity The quantity of tokens to mint * @param _contractState The contractState as bytes32 */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 6344, 7940 ] }
24,303
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
reserveTokens
function reserveTokens() public onlyOwner { for (uint256 i = 0; i < reservedTokens; i++) { uint256 tokenId = totalSupply(); _safeMint(msg.sender, tokenId); } }
/** * @dev Set some tokens aside for the creators */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 8009, 8216 ] }
24,304
Vortex
contracts/Vortex.sol
0x01a9f037d4cd7da318ab097a47acd4dea3abc083
Solidity
Vortex
contract Vortex is ERC721Enumerable, Ownable { string public contractState; // "presale_1", "presale_2" or "public_mint" bytes32 presale1State = keccak256(abi.encodePacked("presale_1")); bytes32 presale2State = keccak256(abi.encodePacked("presale_2")); bytes32 publicMintState = keccak256(abi.encodePacke...
/** @title Vortex */
NatSpecMultiLine
withdrawEth
function withdrawEth() public onlyOwner { uint256 balance = address(this).balance; (bool success, ) = payable(msg.sender).call{value: balance}(""); require(success, "Withdraw failed"); }
/** * @dev Withdraw ether to owner's wallet */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 8279, 8497 ] }
24,305
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
SwissCryptoExchange
function SwissCryptoExchange( address _admin, address _feeAccount, address _accountLevelsAddr, uint256 _feeMake, uint256 _feeTake, uint256 _feeRebate ) public { // Ensure the admin address is valid. require(_admin != 0x0); // Store the values. admin = _admin; feeAccount = _feeAcc...
/** * @dev Create a new instance of the SwissCryptoExchange contract. * @param _admin address Admin address * @param _feeAccount address Fee Account address * @param _accountLevelsAddr address AccountLevels contract address * @param _feeMake uint256 FeeMake amount * @param _feeT...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 2255, 2815 ] }
24,306
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
function () public payable { revert(); }
/** * @dev The fallback function is not used for receiving money. If someone sends * wei directly to the contract address the transaction will fail. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 3143, 3194 ] }
24,307
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeAdmin
function changeAdmin(address _admin) public onlyAdmin { // The provided address should be valid and different from the current one. require(_admin != 0x0 && admin != _admin); // Store the new value. admin = _admin; }
/** * @dev Change the admin address. * @param _admin address The new admin address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 3298, 3542 ] }
24,308
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeAccountLevelsAddr
function changeAccountLevelsAddr(address _accountLevelsAddr) public onlyAdmin { // Store the new value. accountLevelsAddr = _accountLevelsAddr; }
/** * @dev Change the AccountLevels contract address. This address could be set to 0x0 * if the functionality is not needed. * @param _accountLevelsAddr address The new AccountLevels contract address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 3772, 3933 ] }
24,309
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeFeeAccount
function changeFeeAccount(address _feeAccount) public onlyAdmin { // The provided address should be valid. require(_feeAccount != 0x0); // Store the new value. feeAccount = _feeAccount; }
/** * @dev Change the feeAccount address. * @param _feeAccount address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 4025, 4240 ] }
24,310
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeFeeMake
function changeFeeMake(uint256 _feeMake) public onlyAdmin { // Store the new value. feeMake = _feeMake; }
/** * @dev Change the feeMake amount. * @param _feeMake uint256 New fee make. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 4339, 4460 ] }
24,311
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeFeeTake
function changeFeeTake(uint256 _feeTake) public onlyAdmin { // The new feeTake should be greater than or equal to the feeRebate. require(_feeTake >= feeRebate); // Store the new value. feeTake = _feeTake; }
/** * @dev Change the feeTake amount. * @param _feeTake uint256 New fee take. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 4559, 4793 ] }
24,312
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
changeFeeRebate
function changeFeeRebate(uint256 _feeRebate) public onlyAdmin { // The new feeRebate should be less than or equal to the feeTake. require(_feeRebate <= feeTake); // Store the new value. feeRebate = _feeRebate; }
/** * @dev Change the feeRebate amount. * @param _feeRebate uint256 New fee rebate. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 4898, 5137 ] }
24,313
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
addWhitelistedTokenAddr
function addWhitelistedTokenAddr(address token) public onlyAdmin { // Token address should not be 0x0 (ether) and it should not be already whitelisted. require(token != 0x0 && !whitelistedTokens[token]); // Change the flag for this contract address to true. whitelistedTokens[token] = true; }
/** * @dev Add a ERC20 token contract address to the whitelisted ones. * @param token address Address of the contract to be added to the whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 5306, 5626 ] }
24,314
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
removeWhitelistedTokenAddr
function removeWhitelistedTokenAddr(address token) public onlyAdmin { // Token address should not be 0x0 (ether) and it should be whitelisted. require(token != 0x0 && whitelistedTokens[token]); // Change the flag for this contract address to false. whitelistedTokens[token] = false; }
/** * @dev Remove a ERC20 token contract address from the whitelisted ones. * @param token address Address of the contract to be removed from the whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 5804, 6116 ] }
24,315
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
addWhitelistedUserAddr
function addWhitelistedUserAddr(address user) public onlyAdmin { // Address provided should be valid and not already whitelisted. require(user != 0x0 && !whitelistedUsers[user]); // Change the flag for this address to false. whitelistedUsers[user] = true; }
/** * @dev Add an user address to the whitelisted ones. * @param user address Address to be added to the whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 6253, 6538 ] }
24,316
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
removeWhitelistedUserAddr
function removeWhitelistedUserAddr(address user) public onlyAdmin { // Address provided should be valid and whitelisted. require(user != 0x0 && whitelistedUsers[user]); // Change the flag for this address to false. whitelistedUsers[user] = false; }
/** * @dev Remove an user address from the whitelisted ones. * @param user address Address to be removed from the whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 6684, 6960 ] }
24,317
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
deposit
function deposit() public payable { // Only whitelisted users can make deposits. require(whitelistedUsers[msg.sender]); // Add the deposited wei amount to the user balance. tokens[0x0][msg.sender] = tokens[0x0][msg.sender].add(msg.value); // Trigger the event. Deposit(0x0, msg.sender, msg.value, t...
/** * @dev Deposit wei into the exchange contract. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 7028, 7392 ] }
24,318
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
withdraw
function withdraw(uint256 amount) public { // Requester should have enough balance. require(tokens[0x0][msg.sender] >= amount); // Substract the withdrawn wei amount from the user balance. tokens[0x0][msg.sender] = tokens[0x0][msg.sender].sub(amount); // Transfer the wei to the requester. msg.se...
/** * @dev Withdraw wei from the exchange contract back to the user. * @param amount uint256 Wei amount to be withdrawn. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 7535, 7991 ] }
24,319
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
depositToken
function depositToken(address token, uint256 amount) public { // Should not deposit wei using this function and // token contract address should be whitelisted. require(token != 0x0 && whitelistedTokens[token]); // Only whitelisted users can make deposits. require(whitelistedUsers[msg.sender]...
/** * @dev Perform a new token deposit to the exchange contract. * @dev Remember to call ERC20(address).approve(this, amount) or this contract will not * be able to do the transfer on your behalf. * @param token address Address of the deposited token contract * @param amount uint256 Amount to be deposit...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 8337, 9062 ] }
24,320
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
withdrawToken
function withdrawToken(address token, uint256 amount) public { // Should not withdraw wei using this function. require(token != 0x0); // Requester should have enough balance. require(tokens[token][msg.sender] >= amount); // Substract the withdrawn token amount from the user balance. tokens[token][...
/** * @dev Withdraw the given token amount from the requester balance. * @param token address Address of the withdrawn token contract * @param amount uint256 Amount of tokens to be withdrawn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 9279, 9877 ] }
24,321
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
balanceOf
function balanceOf(address token, address user) public constant returns (uint256) { return tokens[token][user]; }
/** * @dev Check the balance of the given user in the given token. * @param token address Address of the token contract * @param user address Address of the user whom balance will be queried */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 10094, 10236 ] }
24,322
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
order
function order( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce ) public { // Order placer address should be whitelisted. require(whitelistedUsers[msg.sender]); // Order tokens addresses should be whitelisted. require(white...
/** * @dev Place a new order to the this contract. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 10497, 11231 ] }
24,323
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
cancelOrder
function cancelOrder( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce, uint8 v, bytes32 r, bytes32 s ) public { // Calculate the order hash. bytes32 hash = keccak256(address(this), tokenGet, amountGet, tokenGive, amountGive...
/** * @dev Cancel an existing order. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 * @param v uint8 * @param r bytes32 * @param s bytes32 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 11571, 12272 ] }
24,324
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
trade
function trade( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce, address user, uint8 v, bytes32 r, bytes32 s, uint256 amount ) public { // Only whitelisted users can perform trades. require(whitelistedUsers[msg.sende...
/** * @dev Perform a trade. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 * @param user address * @param v uint8 * @param r bytes32 * @param s ...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 12702, 14045 ] }
24,325
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
testTrade
function testTrade( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce, address user, uint8 v, bytes32 r, bytes32 s, uint256 amount, address sender ) public constant returns(bool) { // Traders should be whitelisted...
/** * @dev Check if the trade with provided parameters will pass or not. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 * @param user address * @param v uint8 * @pa...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 14536, 15372 ] }
24,326
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
availableVolume
function availableVolume( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce, address user, uint8 v, bytes32 r, bytes32 s ) public constant returns (uint256) { // User should be whitelisted. require(whitelistedUsers[u...
/** * @dev Calculate the available volume for a given trade. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 * @param user address * @param v uint8 * @param r ...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 15790, 17484 ] }
24,327
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
amountFilled
function amountFilled( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, uint256 expires, uint256 nonce, address user ) public constant returns (uint256) { // User should be whitelisted. require(whitelistedUsers[user]); // Tokens should be whitelisted...
/** * @dev Get the amount filled for the given order. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param expires uint256 * @param nonce uint256 * @param user address * @return uint256 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 17801, 18407 ] }
24,328
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
tradeBalances
function tradeBalances( address tokenGet, uint256 amountGet, address tokenGive, uint256 amountGive, address user, uint256 amount ) private { // Calculate the constant taxes. uint256 feeMakeXfer = amount.mul(feeMake).div(1 ether); uint256 feeTakeXfer = amount.mul(feeTake).div(1 ether); ...
/** * @dev Trade balances of given tokens amounts between two users. * @param tokenGet address * @param amountGet uint256 * @param tokenGive address * @param amountGive uint256 * @param user address * @param amount uint256 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 18687, 20050 ] }
24,329
SwissCryptoExchange
contracts/SwissCryptoExchange.sol
0xbeeb655808e3bdb83b6998f09dfe1e0f2c66a9be
Solidity
SwissCryptoExchange
contract SwissCryptoExchange { using SafeMath for uint256; // Storage definition. address public admin; //the admin address address public feeAccount; //the account that will receive fees address public accountLevelsAddr; //the address of the AccountLevels contract uint256 public feeMake; //percenta...
/** * @title SwissCryptoExchange */
NatSpecMultiLine
validateOrderHash
function validateOrderHash( bytes32 hash, address user, uint8 v, bytes32 r, bytes32 s ) private constant returns (bool) { return ( orders[user][hash] || ecrecover(keccak256("\x19Ethereum Signed Message:\n32", hash), v, r, s) == user ); }
/** * @dev Validate an order hash. * @param hash bytes32 * @param user address * @param v uint8 * @param r bytes32 * @param s bytes32 * @return bool */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://234477659725ad38f361ac5a6b8b278da3ce8868b9cc541fd8eecc28ffe46b74
{ "func_code_index": [ 20249, 20562 ] }
24,330
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
TokenERC20
function TokenERC20( uint256 initialSupply, string tokenName, string tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens nam...
/** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 1014, 1559 ] }
24,331
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > balanceOf[_to])...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 1643, 2490 ] }
24,332
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 2696, 2853 ] }
24,333
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 3128, 3429 ] }
24,334
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 3693, 3923 ] }
24,335
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 4317, 4669 ] }
24,336
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender,...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 4839, 5218 ] }
24,337
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 5476, 6092 ] }
24,338
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
INCRYPTHEDGE
contract INCRYPTHEDGE is owned, TokenERC20 { mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator ...
/******************************************/
NatSpecMultiLine
INCRYPTHEDGE
function INCRYPTHEDGE( uint256 initialSupply, string tokenName, string tokenSymbol ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {}
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 340, 521 ] }
24,339
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
INCRYPTHEDGE
contract INCRYPTHEDGE is owned, TokenERC20 { mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator ...
/******************************************/
NatSpecMultiLine
_transfer
function _transfer(address _from, address _to, uint _value) internal { require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value >= balan...
/* Internal transfer, only can be called by this contract */
Comment
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 590, 1378 ] }
24,340
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
INCRYPTHEDGE
contract INCRYPTHEDGE is owned, TokenERC20 { mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator ...
/******************************************/
NatSpecMultiLine
mintToken
function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(0, this, mintedAmount); emit Transfer(this, target, mintedAmount); }
/// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens it will receive
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 1570, 1838 ] }
24,341
INCRYPTHEDGE
INCRYPTHEDGE.sol
0xabb8744e4771ff0012bef2caa506f5ffbffb1369
Solidity
INCRYPTHEDGE
contract INCRYPTHEDGE is owned, TokenERC20 { mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator ...
/******************************************/
NatSpecMultiLine
freezeAccount
function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); }
/// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens /// @param target Address to be frozen /// @param freeze either to freeze it or not
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://173c22ab868e8e8f7554d73e120c7dfbd30037de5b62aabf4a6d3461c33b16be
{ "func_code_index": [ 2019, 2185 ] }
24,342
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 function...
/** * @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
{ "func_code_index": [ 365, 445 ] }
24,343
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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
{ "func_code_index": [ 700, 778 ] }
24,344
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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
{ "func_code_index": [ 916, 992 ] }
24,345
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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 must exist ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1689, 1801 ] }
24,346
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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 the caller i...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 2312, 2420 ] }
24,347
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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 or be a...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 2879, 2938 ] }
24,348
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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
{ "func_code_index": [ 3084, 3167 ] }
24,349
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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
{ "func_code_index": [ 3483, 3557 ] }
24,350
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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
{ "func_code_index": [ 3702, 3794 ] }
24,351
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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. */ event...
/** * @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 {approve} or {...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 4357, 4498 ] }
24,352
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 licence...
/** * @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 temp = ...
/** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 178, 885 ] }
24,353
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 licence...
/** * @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
{ "func_code_index": [ 986, 1319 ] }
24,354
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 licence...
/** * @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; } requ...
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1438, 1883 ] }
24,355
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /*...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 384, 473 ] }
24,356
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /*...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1016, 1112 ] }
24,357
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /*...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1257, 1450 ] }
24,358
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 value is r...
/** * @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 the r...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 518, 682 ] }
24,359
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 Returns the...
/** * @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
{ "func_code_index": [ 102, 160 ] }
24,360
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 Returns the...
/** * @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
{ "func_code_index": [ 227, 287 ] }
24,361
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 Returns the...
/** * @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
{ "func_code_index": [ 384, 461 ] }
24,362
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 588, 969 ] }
24,363
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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 `transfer...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 1882, 2198 ] }
24,364
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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 returne...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 2936, 3113 ] }
24,365
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 3331, 3558 ] }
24,366
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 3916, 4174 ] }
24,367
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 4418, 4922 ] }
24,368
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 5095, 5296 ] }
24,369
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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 _verifyCallResult(su...
/** * @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
{ "func_code_index": [ 5476, 5867 ] }
24,370
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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
{ "func_code_index": [ 6042, 6244 ] }
24,371
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return fa...
/** * @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 _verifyCallResult(s...
/** * @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
{ "func_code_index": [ 6426, 6818 ] }
24,372
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 interfaceId) pub...
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
{ "func_code_index": [ 99, 258 ] }
24,373
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 938, 1242 ] }
24,374
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 1297, 1506 ] }
24,375
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 1559, 1798 ] }
24,376
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 1856, 1958 ] }
24,377
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 2018, 2124 ] }
24,378
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 2186, 2519 ] }
24,379
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 2756, 2852 ] }
24,380
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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 appro...
/** * @dev See {IERC721-approve}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 2905, 3310 ] }
24,381
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 3367, 3588 ] }
24,382
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 3651, 3945 ] }
24,383
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 4007, 4173 ] }
24,384
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 4231, 4565 ] }
24,385
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 4627, 4810 ] }
24,386
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 4872, 5196 ] }
24,387
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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 equivale...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 6054, 6365 ] }
24,388
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 6664, 6793 ] }
24,389
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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, spen...
/** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 6947, 7295 ] }
24,390
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 7621, 7733 ] }
24,391
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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
{ "func_code_index": [ 7950, 8265 ] }
24,392
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @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 Transfer(add...
/** * @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
{ "func_code_index": [ 8583, 8959 ] }
24,393
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_burn
function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); }
/** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 9172, 9524 ] }
24,394
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_transfer
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear app...
/** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 9844, 10408 ] }
24,395
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_approve
function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); }
/** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 10515, 10690 ] }
24,396
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_checkOnERC721Received
function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver...
/** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 11239, 12025 ] }
24,397
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
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 _owners; ...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {}
/** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 12577, 12703 ] }
24,398
WuXia
contracts/WuxiaVerify.sol
0xcb04bee9137da128a769c1aa4db70640953337f9
Solidity
IERC721Enumerable
interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to ...
/** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the total amount of tokens stored by the contract. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 128, 187 ] }
24,399