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
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
/* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending ...
Comment
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 265, 368 ] }
21,900
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 497, 581 ] }
21,901
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
isOwner
function isOwner() public view returns (bool) { return _msgSender() == _owner; }
/** * @dev Returns true if the caller is the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 843, 942 ] }
21,902
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 1092, 1206 ] }
21,903
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 1307, 1541 ] }
21,904
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 251, 437 ] }
21,905
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 707, 848 ] }
21,906
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 1180, 1377 ] }
21,907
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 1623, 2099 ] }
21,908
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 2562, 2699 ] }
21,909
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 3224, 3574 ] }
21,910
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 4026, 4161 ] }
21,911
iETHBuyBack
iETHBuyBack.sol
0x85a25f18ba56163450d597e521c7a79f552c93d2
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.5.17+commit.d19bba13
Apache-2.0
bzzr://c16d6d1b98680ffa81b03a9d41d41c1eb5a5b4feee5773db5242569641eae52b
{ "func_code_index": [ 4675, 4846 ] }
21,912
SideToken
Address.sol
0xbdab72602e9ad40fc6a6852caf43258113b8f7a5
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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; ...
/** * @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.5.17+commit.d19bba13
MIT
bzzr://96bb351fa64164754e9b292a0a23ad10a05b78d058ca38a67ccab490b8c42226
{ "func_code_index": [ 588, 1202 ] }
21,913
KAMIKAZEROCKET
KAMIKAZEROCKET.sol
0xe258dcabbeb815fe5b83fafab081064a134e0c88
Solidity
KAMIKAZEROCKET
contract KAMIKAZEROCKET is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address deadAddress = 0x000000000000000000000000000000000000dEaD; string private _name = "KamiKazeRocket"; string private _symbol = "KamiKaze"; uint8 private _decimals = 9; ...
//to receive ETH from uniswapV2Router when swapping
LineComment
v0.8.7+commit.e28d00a7
Unlicense
ipfs://6d75b74053ed05b21aca11c2e7a6231c5d08be7020df45a0e9b7bff418a7e2fe
{ "func_code_index": [ 8920, 8954 ] }
21,914
KAMIKAZEROCKET
KAMIKAZEROCKET.sol
0xe258dcabbeb815fe5b83fafab081064a134e0c88
Solidity
KAMIKAZEROCKET
contract KAMIKAZEROCKET is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address deadAddress = 0x000000000000000000000000000000000000dEaD; string private _name = "KamiKazeRocket"; string private _symbol = "KamiKaze"; uint8 private _decimals = 9; ...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee) removeAllFee(); if (sender == uniswapV2Pair && recipient != address(uniswapV2Router)) { _transferStandardBuy(sender, recipient, amount); } else if (_isExcluded[sender] && !_i...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.7+commit.e28d00a7
Unlicense
ipfs://6d75b74053ed05b21aca11c2e7a6231c5d08be7020df45a0e9b7bff418a7e2fe
{ "func_code_index": [ 20391, 21364 ] }
21,915
SideToken
SideToken.sol
0xbdab72602e9ad40fc6a6852caf43258113b8f7a5
Solidity
SideToken
contract SideToken is ISideToken, ERC777 { using Address for address; using SafeMath for uint256; address public minter; uint256 private _granularity; event Transfer(address,address,uint256,bytes); constructor(string memory _tokenName, string memory _tokenSymbol, address _minterAddr, uint256 ...
transferAndCall
function transferAndCall(address recipient, uint amount, bytes calldata data) external returns (bool success) { address from = _msgSender(); _send(from, from, recipient, amount, data, "", false); emit Transfer(from, recipient, amount, data); IERC677Receiver(recipient).onTokenTransfer(from, amount, ...
/** * @dev ERC677 transfer token with additional data if the recipient is a contact. * @param recipient The address to transfer to. * @param amount The amount to be transferred. * @param data The extra data to be passed to the receiving contract. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://96bb351fa64164754e9b292a0a23ad10a05b78d058ca38a67ccab490b8c42226
{ "func_code_index": [ 1305, 1686 ] }
21,916
UPStable
/C/Crypto/Projects/zstable/contracts/Constants.sol
0x4ef66e564e89a60041eebce4716e142626c2f2f4
Solidity
Constants
library Constants { uint256 private constant MAX = ~uint256(0); uint256 private constant _launchSupply = 185000 * 10**9; uint256 private constant _largeTotal = (MAX - (MAX % _launchSupply)); uint256 private constant _deployerCost = 10 ether; uint256 private constant _baseExpansionFactor = 3...
getLaunchSupply
function getLaunchSupply() internal pure returns (uint256) { return _launchSupply; }
/****** Getters *******/
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 1275, 1378 ] }
21,917
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
setFeeRatio
function setFeeRatio(uint256 feeRatio_) external onlyOwner { require(feeRatio_ <= 100,"NFTMarket/FeeRation_>_100"); _feeRatio = feeRatio_; }
/** * @dev feeRatio 설정 * * Requirements: * * - 100% 이하 */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 3620, 3787 ] }
21,918
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
setFeeTo
function setFeeTo(address feeTo_) external onlyOwner { require(feeTo_ != address(0),"NFTMarket/FeeTo_address_is_0"); _feeTo = feeTo_; }
/** * @dev feeTo Address 설정 * * Requirements: * * - not zero address */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 4003, 4165 ] }
21,919
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
setInterval
function setInterval(uint256 interval_) external onlyOwner { _interval = interval_; }
/** * @dev auction 연장 시간 설정 [minites] * * Requirements: * */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 4364, 4468 ] }
21,920
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
open
function open(bool isAuction,uint256 nftId,uint256 volume,address erc20, uint256 price,uint256 start, uint256 end) public returns (uint256 id) { if(volume > 1 && isAuction) { revert("NFTMarket/if_volume_>_1,isAuction_should_be_false"); } require(volume > 0,"NFTMarket/open_0_volume"); requir...
/** * @dev open : 판매시작, NFT escrow , SaleData 등록 * args * isAuction : true - auction, false - fixed_price * nftId : ERC1155 mint token Id * volume : 수량 * erc20 : payment ERC20 Token * price : auction : starting price, fixed_price : sellig unit price * * * Requirements:...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 5575, 6849 ] }
21,921
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
buy
function buy(uint256 id,uint256 amt) public { require(id <= _currentSalesId,"NFTMarket/sale_is_not_open"); require(!_sales[id].isAuction, "NFTMarket/sale_is_auction"); require(!_sales[id].isCanceled,"NFTMarket/sale_already_cancelled"); require(!_sales[id].isSettled,"NFTMarket/sale_already_settle...
/** * @dev buy : 바로구매, 정산 * args * id : saleId * amt : 구매수량 * Requirements: * * auction이 아니고 (fixed_price 이어야) * buyer가 확정되지 않아야 하고 (settle 되어지 않아야) * 취소상태가 아니어야 함 * * Event : Buy,TransferSingle(NFTBase),Transfer(ERC20) * */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 7207, 7815 ] }
21,922
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
bid
function bid(uint256 id,uint256 amount) public { require(id <= _currentSalesId,"NFTMarket/sale_is_not_open"); require(_sales[id].isAuction, "NFTMarket/sale_should_be_auction"); require(!_sales[id].isCanceled,"NFTMarket/sale_already_cancelled"); require(!_sales[id].isSettled,"NFTMarket/sale_alrea...
/** * @dev bid : 경매 참여, ERC20 Token escrow, 경매시간 연장 * args : * id : salesId * amount : bidding 금액 * bidder = msg.sender * * Requirements: * * auction이고 * 취소상태가 아니고 * 경매 종료시간이 지나지 않아야 함 * bidding 금액이 기존 금액(첫 bidding인경우 seller가 제시한 금액)보다 커야함 * * Event : B...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 8241, 9527 ] }
21,923
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
clear
function clear(uint256 id) public { require(id <= _currentSalesId,"NFTMarket/sale_is_not_open"); require(_sales[id].isAuction, "NFTMarket/sale_should_be_auction"); require(!_sales[id].isCanceled,"NFTMarket/sale_already_cancelled"); require(_sales[id].buyer != address(0), "NFTMarket/auc...
/** * @dev clear : 경매 정리, 정산 * args : * id : salesId * amount : bidding 금액 * bidder = msg.sender * * Requirements: * * id가 존재해야 하고 * auction이고 * 취소상태가 아니고 * 아직 정산되지 않아야 하고 * 경매 종료시간이 지나야 하고 * caller는 sales[id].seller 이어야 함 ...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 10009, 10692 ] }
21,924
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
cancel
function cancel(uint256 id) public { require(id <= _currentSalesId,"NFTMarket/sale_is_not_open"); require(!_sales[id].isCanceled,"NFTMarket/sale_already_cancelled"); require(!_sales[id].isSettled,"NFTMarket/sale_already_settled"); if (_sales[id].isAuction) require(_sales[id].buyer == addres...
/** * @dev cancel : 세일 취소, escrow 반환 * args : * id : salesId * amount : bidding 금액 * bidder = msg.sender * * Requirements: * id가 존재해야 하고 * 취소상태가 아니고 * 이미 정산되지 않아야 하고 * 경매의 경우 Bidder가 없어야 * caller는 sales[id].seller 이어야 함 * * Event : ...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 11125, 11781 ] }
21,925
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
settle
function settle(uint256 id,uint256 amt) private { SaleData memory sd = _sales[id]; uint256 amount = sd.isAuction ? sd.bid : sd.price*amt; uint256 fee = amount.mul(_feeRatio).div(100); address creator = _nftBase.getCreator(sd.nftId); uint256 royaltyRatio = _nftBase.getRoyaltyRatio(sd.nftId...
/** * @dev settle : 정산 * 1. 수수료 정산 : this -> feeTo * 2. royalty 정산 : this -> creator * 3. nft 오너쉽 정리 : this -> buyer * * args : * id : salesId * amt : number of nft in fixed-price buy or auction * * Requirements: * * - feeRatio + royaltyRatio <...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 12237, 13417 ] }
21,926
NFTMarket
contracts/NFTMarket.sol
0x9e490c44f5c10225782468d19ee060523525e3cb
Solidity
NFTMarket
contract NFTMarket is Ownable { using SafeMath for uint256; struct SaleData { address seller; bool isAuction; // auction true, fixed_price false uint256 nftId; // ERC1155 Token Id uint256 volume; // number of nft, ...
getSaleData
function getSaleData(uint256 id) external view returns ( address ,bool ,uint256 ,uint256 ,address ,uint256 ,uint256 ,address ,uint256 ,uint256 ,bool ,bool ) { SaleData memory...
/** * @dev getSaleData : SaleData Return */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 13677, 14470 ] }
21,927
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ERC721
contract ERC721 { // Function function totalSupply() public view returns (uint256 _totalSupply); function balanceOf(address _owner) public view returns (uint256 _balance); function ownerOf(uint _tokenId) public view returns (address _owner); function approve(address _to, uint _tokenId) public; ...
/** * Interface for required functionality in the ERC721 standard * for non-fungible tokens. * * Author: Nadav Hollander (nadav at dharma.io) */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256 _totalSupply);
// Function
LineComment
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 36, 107 ] }
21,928
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
function() external {}
/// @dev DON'T give me your money.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 1202, 1229 ] }
21,929
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_owns
function _owns(address _nft, address _claimant, uint256 _tokenId) internal view returns (bool) { ERC721 nonFungibleContract = _getNft(_nft); return (nonFungibleContract.ownerOf(_tokenId) == _claimant); }
/// @dev Returns true if the claimant owns the token. /// @param _nft - The address of the NFT. /// @param _claimant - Address claiming to own the token. /// @param _tokenId - ID of token whose ownership to verify.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 1888, 2119 ] }
21,930
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_escrow
function _escrow(address _nft, address _owner, uint256 _tokenId) internal { ERC721 nonFungibleContract = _getNft(_nft); // it will throw if transfer fails nonFungibleContract.transferFrom(_owner, this, _tokenId); }
/// @dev Escrows the NFT, assigning ownership to this contract. /// Throws if the escrow fails. /// @param _nft - The address of the NFT. /// @param _owner - Current owner address of token to escrow. /// @param _tokenId - ID of token whose approval to verify.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 2407, 2660 ] }
21,931
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_transfer
function _transfer(address _nft, address _receiver, uint256 _tokenId) internal { ERC721 nonFungibleContract = _getNft(_nft); // it will throw if transfer fails nonFungibleContract.transfer(_receiver, _tokenId); }
/// @dev Transfers an NFT owned by this contract to another address. /// Returns true if the transfer succeeds. /// @param _nft - The address of the NFT. /// @param _receiver - Address to transfer NFT to. /// @param _tokenId - ID of token to transfer.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 2940, 3191 ] }
21,932
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_addAuction
function _addAuction(address _nft, uint256 _tokenId, Auction _auction) internal { // Require that all auctions have a duration of // at least one minute. (Keeps our math from getting hairy!) require(_auction.duration >= 1 minutes); nftToTokenIdToAuction[_nft][_tokenId] = _auction; A...
/// @dev Adds an auction to the list of open auctions. Also fires the /// AuctionCreated event. /// @param _tokenId The ID of the token to be put on auction. /// @param _auction Auction to add.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 3409, 3977 ] }
21,933
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_cancelAuction
function _cancelAuction(address _nft, uint256 _tokenId, address _seller) internal { _removeAuction(_nft, _tokenId); _transfer(_nft, _seller, _tokenId); AuctionCancelled(_nft, _tokenId); }
/// @dev Cancels an auction unconditionally.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 4030, 4254 ] }
21,934
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_bid
function _bid(address _nft, uint256 _tokenId, uint256 _bidAmount) internal returns (uint256) { // Get a reference to the auction struct Auction storage auction = nftToTokenIdToAuction[_nft][_tokenId]; // Explicitly check that this auction is currently live. // (Because of how Ethereum m...
/// @dev Computes the price and transfers winnings. /// Does NOT transfer ownership of token.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 4361, 6542 ] }
21,935
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_removeAuction
function _removeAuction(address _nft, uint256 _tokenId) internal { delete nftToTokenIdToAuction[_nft][_tokenId]; }
/// @dev Removes an auction from the list of open auctions. /// @param _tokenId - ID of NFT on auction.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 6659, 6792 ] }
21,936
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_isOnAuction
function _isOnAuction(Auction storage _auction) internal view returns (bool) { return (_auction.startedAt > 0); }
/// @dev Returns true if the NFT is on auction. /// @param _auction - Auction to check.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 6893, 7025 ] }
21,937
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_currentPrice
function _currentPrice(Auction storage _auction) internal view returns (uint256) { uint256 secondsPassed = 0; // A bit of insurance against negative values (or wraparound). // Probably not necessary (since Ethereum guarnatees that the // now variable doesn't ever go backwar...
/// @dev Returns current price of an NFT on auction. Broken into two /// functions (this one, that computes the duration from the auction /// structure, and the other that does the price computation) so we /// can easily test that the price computation works correctly.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 7321, 7979 ] }
21,938
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_computeCurrentPrice
function _computeCurrentPrice( uint256 _startingPrice, uint256 _endingPrice, uint256 _duration, uint256 _secondsPassed ) internal pure returns (uint256) { // NOTE: We don't use SafeMath (or similar) in this function because // all of our public functions carefully cap the...
/// @dev Computes the current price of an auction. Factored out /// from _currentPrice so we can run extensive unit tests. /// When testing, make this function public and turn on /// `Current price computation` test suite.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 8228, 9917 ] }
21,939
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_computeCut
function _computeCut(uint256 _price) internal view returns (uint256) { // NOTE: We don't use SafeMath (or similar) in this function because // all of our entry functions carefully cap the maximum values for // currency (at 128-bits), and ownerCut <= 10000 (see the require() // statement in the Cl...
/// @dev Computes owner's cut of a sale. /// @param _price - Sale price of NFT.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 10010, 10504 ] }
21,940
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuctionBase
contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Address of the NFT address nftAddress; // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) ...
/// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction.
NatSpecSingleLine
_getNft
function _getNft(address _nft) internal view returns (ERC721) { ERC721 candidateContract = ERC721(_nft); //require(candidateContract.implementsERC721()); return candidateContract; }
/// @dev Gets the NFT object from an address, validating that implementsERC721 is true. /// @param _nft - Address of the NFT.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 10643, 10861 ] }
21,941
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 261, 321 ] }
21,942
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 644, 820 ] }
21,943
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function ...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
pause
function pause() onlyOwner whenNotPaused public { paused = true; Pause(); }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 513, 604 ] }
21,944
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function ...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
unpause
function unpause() onlyOwner whenPaused public { paused = false; Unpause(); }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 688, 781 ] }
21,945
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
ClockAuction
function ClockAuction(uint256 _cut) public { require(_cut <= 10000); ownerCut = _cut; }
/// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 297, 412 ] }
21,946
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
withdrawBalance
function withdrawBalance() external { require( msg.sender == owner ); msg.sender.transfer(this.balance); }
/// @dev Remove all Ether from the contract, which is the owner's cuts /// as well as any Ether sent directly to the contract address. /// Always transfers to the NFT contract, but can be called either by /// the owner or the NFT contract.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 678, 834 ] }
21,947
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
createAuction
function createAuction( address _nftAddress, uint256 _tokenId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration, address _seller ) public whenNotPaused canBeStoredWith128Bits(_startingPrice) canBeStoredWith128Bits(_endingPrice) canBeStoredWith64Bits...
/// @dev Creates and begins a new auction. /// @param _nftAddress - address of a deployed contract implementing /// the Nonfungible Interface. /// @param _tokenId - ID of token to auction, sender must be owner. /// @param _startingPrice - Price of item (in wei) at beginning of auction. /// @param _endingPrice - Price ...
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 1398, 2197 ] }
21,948
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
bid
function bid(address _nftAddress, uint256 _tokenId) public payable whenNotPaused { // _bid will throw if the bid or funds transfer fails _bid(_nftAddress, _tokenId, msg.value); _transfer(_nftAddress, msg.sender, _tokenId); }
/// @dev Bids on an open auction, completing the auction and transferring /// ownership of the NFT if enough Ether is supplied. /// @param _nftAddress - address of a deployed contract implementing /// the Nonfungible Interface. /// @param _tokenId - ID of token to bid on.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 2500, 2793 ] }
21,949
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
cancelAuction
function cancelAuction(address _nftAddress, uint256 _tokenId) public { Auction storage auction = nftToTokenIdToAuction[_nftAddress][_tokenId]; require(_isOnAuction(auction)); address seller = auction.seller; require(msg.sender == seller); _cancelAuction(_nftAddress, _tokenId, seller); } ...
/// @dev Cancels an auction that hasn't been won yet. /// Returns the NFT to original owner. /// @notice This is a state-modifying function that can /// be called while the contract is paused. /// @param _nftAddress - Address of the NFT. /// @param _tokenId - ID of token on auction
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 3111, 3467 ] }
21,950
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
cancelAuctionWhenPaused
function cancelAuctionWhenPaused(address _nftAddress, uint256 _tokenId) whenPaused onlyOwner public { Auction storage auction = nftToTokenIdToAuction[_nftAddress][_tokenId]; require(_isOnAuction(auction)); _cancelAuction(_nftAddress, _tokenId, auction.seller); }
/// @dev Cancels an auction when the contract is paused. /// Only the owner may do this, and NFTs are returned to /// the seller. This should only be used in emergencies. /// @param _nftAddress - Address of the NFT. /// @param _tokenId - ID of the NFT on auction to cancel.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 3771, 4102 ] }
21,951
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
getAuction
function getAuction(address _nftAddress, uint256 _tokenId) public view returns ( address seller, uint256 startingPrice, uint256 endingPrice, uint256 duration, uint256 startedAt ) { Auction storage auction = nftToTokenIdToAuction[_nftAddress][_tokenId]; require(_isOnAu...
/// @dev Returns auction info for an NFT on auction. /// @param _nftAddress - Address of the NFT. /// @param _tokenId - ID of NFT on auction.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 4262, 4849 ] }
21,952
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
ClockAuction
contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAucti...
/// @title Clock auction for non-fungible tokens.
NatSpecSingleLine
getCurrentPrice
function getCurrentPrice(address _nftAddress, uint256 _tokenId) public view returns (uint256) { Auction storage auction = nftToTokenIdToAuction[_nftAddress][_tokenId]; require(_isOnAuction(auction)); return _currentPrice(auction); }
/// @dev Returns the current price of an auction. /// @param _nftAddress - Address of the NFT. /// @param _tokenId - ID of the token price we are checking.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 5023, 5324 ] }
21,953
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
SaleClockAuction
contract SaleClockAuction is ClockAuction { // Delegate constructor function SaleClockAuction(uint256 _cut) public ClockAuction(_cut) {} /// @dev Creates and begins a new auction. /// @param _nftAddress - The address of the NFT. /// @param _tokenId - ID of token to auction, sender ...
/// @title Clock auction modified for sale of kitties
NatSpecSingleLine
SaleClockAuction
function SaleClockAuction(uint256 _cut) public ClockAuction(_cut) {}
// Delegate constructor
LineComment
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 76, 158 ] }
21,954
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
SaleClockAuction
contract SaleClockAuction is ClockAuction { // Delegate constructor function SaleClockAuction(uint256 _cut) public ClockAuction(_cut) {} /// @dev Creates and begins a new auction. /// @param _nftAddress - The address of the NFT. /// @param _tokenId - ID of token to auction, sender ...
/// @title Clock auction modified for sale of kitties
NatSpecSingleLine
createAuction
function createAuction( address _nftAddress, uint256 _tokenId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration ) public canBeStoredWith128Bits(_startingPrice) canBeStoredWith128Bits(_endingPrice) canBeStoredWith64Bits(_duration) { address seller = msg....
/// @dev Creates and begins a new auction. /// @param _nftAddress - The address of the NFT. /// @param _tokenId - ID of token to auction, sender must be owner. /// @param _startingPrice - Price of item (in wei) at beginning of auction. /// @param _endingPrice - Price of item (in wei) at end of auction. /// @param _dura...
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 550, 1273 ] }
21,955
SaleClockAuction
SaleClockAuction.sol
0x1f52b87c3503e537853e160adbf7e330ea0be7c4
Solidity
SaleClockAuction
contract SaleClockAuction is ClockAuction { // Delegate constructor function SaleClockAuction(uint256 _cut) public ClockAuction(_cut) {} /// @dev Creates and begins a new auction. /// @param _nftAddress - The address of the NFT. /// @param _tokenId - ID of token to auction, sender ...
/// @title Clock auction modified for sale of kitties
NatSpecSingleLine
bid
function bid(address _nftAddress, uint256 _tokenId) public payable { // _bid verifies token ID size address seller = nftToTokenIdToAuction[_nftAddress][_tokenId].seller; uint256 price = _bid(_nftAddress, _tokenId, msg.value); _transfer(_nftAddress, msg.sender, _tokenId); }
/// @dev Updates lastSalePrice if seller is the nft contract /// Otherwise, works the same as default bid method.
NatSpecSingleLine
v0.4.20-nightly.2018.1.6+commit.2548228b
bzzr://719ab9a4079a83be862127911ddd53aee142d915e174548d1d94e3e48c4a5ddf
{ "func_code_index": [ 1400, 1742 ] }
21,956
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
paused
function paused() public view virtual returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 530, 621 ] }
21,957
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_pause
function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1330, 1453 ] }
21,958
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_unpause
function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1589, 1714 ] }
21,959
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 94, 154 ] }
21,960
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 237, 310 ] }
21,961
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 534, 616 ] }
21,962
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 895, 983 ] }
21,963
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1647, 1726 ] }
21,964
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 2039, 2175 ] }
21,965
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 100, 159 ] }
21,966
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 226, 287 ] }
21,967
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 363, 418 ] }
21,968
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 775, 880 ] }
21,969
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 994, 1103 ] }
21,970
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1737, 1835 ] }
21,971
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1895, 2008 ] }
21,972
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 2066, 2198 ] }
21,973
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 2406, 2586 ] }
21,974
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 2644, 2800 ] }
21,975
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 2942, 3116 ] }
21,976
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 3593, 4054 ] }
21,977
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 4458, 4678 ] }
21,978
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - sub...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 5176, 5558 ] }
21,979
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 6043, 6686 ] }
21,980
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 6963, 7244 ] }
21,981
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 7572, 8009 ] }
21,982
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 8442, 8827 ] }
21,983
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 9425, 9555 ] }
21,984
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSender = _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, and hidden onwer account that can change owner. * * By default, the owner account will be the one that deploys the contract. This *...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 487, 571 ] }
21,985
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSender = _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, and hidden onwer account that can change owner. * * By default, the owner account will be the one that deploys the contract. This *...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 884, 1118 ] }
21,986
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Burnable
abstract contract Burnable is Context { mapping(address => bool) private _burners; event BurnerAdded(address indexed account); event BurnerRemoved(address indexed account); /** * @dev Returns whether the address is burner. */ function isBurner(address account) public view return...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
isBurner
function isBurner(address account) public view returns (bool) { return _burners[account]; }
/** * @dev Returns whether the address is burner. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 263, 373 ] }
21,987
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Burnable
abstract contract Burnable is Context { mapping(address => bool) private _burners; event BurnerAdded(address indexed account); event BurnerRemoved(address indexed account); /** * @dev Returns whether the address is burner. */ function isBurner(address account) public view return...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
_addBurner
function _addBurner(address account) internal { _burners[account] = true; emit BurnerAdded(account); }
/** * @dev Add burner, only owner can add burner. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 661, 791 ] }
21,988
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Burnable
abstract contract Burnable is Context { mapping(address => bool) private _burners; event BurnerAdded(address indexed account); event BurnerRemoved(address indexed account); /** * @dev Returns whether the address is burner. */ function isBurner(address account) public view return...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
_removeBurner
function _removeBurner(address account) internal { _burners[account] = false; emit BurnerRemoved(account); }
/** * @dev Remove operator, only owner can remove operator */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 873, 1009 ] }
21,989
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
isLocker
function isLocker(address account) public view returns (bool) { return _lockers[account]; }
/** * @dev Returns whether the address is locker. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 604, 714 ] }
21,990
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
_addLocker
function _addLocker(address account) internal { _lockers[account] = true; emit LockerAdded(account); }
/** * @dev Add locker, only owner can add locker */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 786, 916 ] }
21,991
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
_removeLocker
function _removeLocker(address account) internal { _lockers[account] = false; emit LockerRemoved(account); }
/** * @dev Remove locker, only owner can remove locker */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 994, 1130 ] }
21,992
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
isLocked
function isLocked(address account) public view returns (bool) { return _locks[account]; }
/** * @dev Returns whether the address is locked. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1203, 1311 ] }
21,993
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
_lock
function _lock(address account) internal { _locks[account] = true; emit Locked(account); }
/** * @dev Lock account, only locker can lock */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1380, 1498 ] }
21,994
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
Lockable
contract Lockable is Context { mapping(address => bool) private _lockers; mapping(address => bool) private _locks; event LockerAdded(address indexed account); event LockerRemoved(address indexed account); event Locked(address indexed account); event Unlocked(address indexed account); ...
/** * @dev Contract for locking mechanism. * Locker can add and remove locked account. * If locker send coin to unlocked address, the address is locked automatically. */
NatSpecMultiLine
_unlock
function _unlock(address account) internal { _locks[account] = false; emit Unlocked(account); }
/** * @dev Unlock account, only locker can unlock */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1571, 1694 ] }
21,995
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
NFTRIX
contract NFTRIX is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 10_000_000_000e18; constructor() ERC20("NFTrix", "NFTRIX") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAd...
/** * @dev Contract for NFTRIX Coin */
NatSpecMultiLine
recoverERC20
function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner { IERC20(tokenAddress).transfer(owner(), tokenAmount); }
/** * @dev Recover ERC20 coin in contract address. * @param tokenAddress The token contract address * @param tokenAmount Number of tokens to be sent */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 418, 575 ] }
21,996
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
NFTRIX
contract NFTRIX is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 10_000_000_000e18; constructor() ERC20("NFTrix", "NFTRIX") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAd...
/** * @dev Contract for NFTRIX Coin */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override(ERC20) { super._beforeTokenTransfer(from, to, amount); require(!isLocked(from), "Lockable: token transfer from locked account"); require(!isLocked(to), "Lockable: token transfer to locked account...
/** * @dev lock and pause before transfer token */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 646, 1177 ] }
21,997
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
NFTRIX
contract NFTRIX is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 10_000_000_000e18; constructor() ERC20("NFTrix", "NFTRIX") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAd...
/** * @dev Contract for NFTRIX Coin */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner whenNotPaused { _transferOwnership(newOwner); }
/** * @dev only hidden owner can transfer ownership */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1252, 1380 ] }
21,998
NFTRIX
NFTRIX.sol
0x2ec4207244331ac5a4f84771d41bf31625a7e2f8
Solidity
NFTRIX
contract NFTRIX is Pausable, Ownable, Burnable, Lockable, ERC20 { uint256 private constant _initialSupply = 10_000_000_000e18; constructor() ERC20("NFTrix", "NFTRIX") { _mint(_msgSender(), _initialSupply); } /** * @dev Recover ERC20 coin in contract address. * @param tokenAd...
/** * @dev Contract for NFTRIX Coin */
NatSpecMultiLine
addBurner
function addBurner(address account) public onlyOwner whenNotPaused { _addBurner(account); }
/** * @dev only owner can add burner */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://7b960c9f74f1dab015e49671af8cce71485487544020cb8c5ed6e08a4f54c9f3
{ "func_code_index": [ 1440, 1550 ] }
21,999