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
BattleRoyale
contracts/BattleRoyaleMintingNew.sol
0x8922ee819260382d31e4266c332316c1e6f1a7a0
Solidity
BattleRoyale
contract BattleRoyale is ERC721URIStorage, Ownable { using SafeERC20 for IERC20; using Strings for uint256; /// @notice Event emitted when contract is deployed. event BattleRoyaleDeployed(); /// @notice Event emitted when owner withdrew the ETH. event EthWithdrew(address receiver); /// @notice Event em...
withdrawETH
function withdrawETH(uint256 _amount) external onlyOwner { uint256 balance = address(this).balance; require(_amount <= balance, "BattleRoyale: Out of balance"); payable(msg.sender).transfer(_amount); emit EthWithdrew(msg.sender); }
/** * @dev External function to withdraw ETH in contract. This function can be called only by owner. * @param _amount ETH amount */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 7782, 8035 ] }
28,300
BattleRoyale
contracts/BattleRoyaleMintingNew.sol
0x8922ee819260382d31e4266c332316c1e6f1a7a0
Solidity
BattleRoyale
contract BattleRoyale is ERC721URIStorage, Ownable { using SafeERC20 for IERC20; using Strings for uint256; /// @notice Event emitted when contract is deployed. event BattleRoyaleDeployed(); /// @notice Event emitted when owner withdrew the ETH. event EthWithdrew(address receiver); /// @notice Event em...
withdrawERC20Token
function withdrawERC20Token(address _tokenAddr, uint256 _amount) external onlyOwner { IERC20 token = IERC20(_tokenAddr); uint256 balance = token.balanceOf(address(this)); require(_amount <= balance, "BattleRoyale: Out of balance"); token.safeTransfer(msg.sender, _amount); emit ERC20TokenWithdrew(msg.sender...
/** * @dev External function to withdraw ERC-20 tokens in contract. This function can be called only by owner. * @param _tokenAddr Address of ERC-20 token * @param _amount ERC-20 token amount */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 8246, 8584 ] }
28,301
HistoryERC721
contracts/interfaces/IFeeCollectable.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IFeeCollectable
interface IFeeCollectable { /// @notice emitted when set new fee to address. event FeeToChangedEvt(address newFeeTo); /// @notice emitted when fee is paid to fee to address. event FeeWithdrawedEvt(address feeTo, uint amount); /// @notice set fee to address. function setFeeTo(address _f...
setFeeTo
function setFeeTo(address _feeTo) external;
/// @notice set fee to address.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 288, 336 ] }
28,302
HistoryERC721
contracts/interfaces/IFeeCollectable.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IFeeCollectable
interface IFeeCollectable { /// @notice emitted when set new fee to address. event FeeToChangedEvt(address newFeeTo); /// @notice emitted when fee is paid to fee to address. event FeeWithdrawedEvt(address feeTo, uint amount); /// @notice set fee to address. function setFeeTo(address _f...
refund
function refund() external;
/// @notice transfer all fee to address feeTo.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 391, 423 ] }
28,303
HistoryERC721
contracts/FeeCollectable.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
FeeCollectable
contract FeeCollectable is Ownable, IFeeCollectable{ address public feeTo; /// @inheritdoc IFeeCollectable function setFeeTo(address _feeTo) onlyOwner external override{ feeTo = _feeTo; emit FeeToChangedEvt(_feeTo); } /// @inheritdoc IFeeCollectable function refund() ...
setFeeTo
function setFeeTo(address _feeTo) onlyOwner external override{ feeTo = _feeTo; emit FeeToChangedEvt(_feeTo); }
/// @inheritdoc IFeeCollectable
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 120, 258 ] }
28,304
HistoryERC721
contracts/FeeCollectable.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
FeeCollectable
contract FeeCollectable is Ownable, IFeeCollectable{ address public feeTo; /// @inheritdoc IFeeCollectable function setFeeTo(address _feeTo) onlyOwner external override{ feeTo = _feeTo; emit FeeToChangedEvt(_feeTo); } /// @inheritdoc IFeeCollectable function refund() ...
refund
function refund() external override{ uint amount = address(this).balance; TransferHelper.safeTransferETH(feeTo, amount); emit FeeWithdrawedEvt(feeTo, amount); }
/// @inheritdoc IFeeCollectable
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 298, 495 ] }
28,305
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
getConfig
function getConfig() external view returns( uint256 _contractId, uint256 _mintFee, uint256 _mintStartTime, uint256 _mintEndTime, address _feeTo );
////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 291, 492 ] }
28,306
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
eventNum
function eventNum() external view returns(uint);
/// @notice get amount of events in this contract.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 551, 604 ] }
28,307
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
eventData
function eventData(uint eventId) external view returns( uint totalMintFee, string memory name, string memory contentHash, string memory contentDomain, uint firstMintTime );
/// @notice Get event data
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 736, 963 ] }
28,308
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
tokenEventId
function tokenEventId(uint tokenId) external view returns(uint tkEvtId);
/// @notice get event id of specified token.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1017, 1094 ] }
28,309
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
allowedDomain
function allowedDomain(uint id) external view returns(string memory domain);
// @notice return the allowed domain with specified id.
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1162, 1243 ] }
28,310
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
setConfig
function setConfig(uint256 mint_, uint256 startTime_, uint256 endTime_) external;
////////////////////////////////////////////////////////////////////////// /// @notice set config of this contract.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1483, 1569 ] }
28,311
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
addAllowedDomain
function addAllowedDomain(string memory domain) external returns(bool res);
/// @notice put a new domain into use.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1616, 1696 ] }
28,312
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
mintNewHistoryReport
function mintNewHistoryReport( uint domainId, bool usingSSL, string memory _name, string memory _contentHash ) external payable returns(uint tokenId);
////////////////////////////////////////////////////////////////////////// /// @notice mint a new history.
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1923, 2119 ] }
28,313
HistoryERC721
contracts/interfaces/IHistoryERC721.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
IHistoryERC721
interface IHistoryERC721 is IERC721, IERC721Metadata { ////////////////////////////////////////////////////////////////////////// // View Functions ////////////////////////////////////////////////////////////////////////// /// @notice get config of this contract. function getConfig() exte...
followHistoryEvent
function followHistoryEvent(uint eventId) external payable returns(uint tokenId);
/// @notice follow a history report
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 2163, 2249 ] }
28,314
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 87, 145 ] }
28,315
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 201, 254 ] }
28,316
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 308, 367 ] }
28,317
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
name
function name() external view returns (string memory);
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 417, 474 ] }
28,318
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
getOwner
function getOwner() external view returns (address);
/** * @dev Returns the erc token owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 531, 586 ] }
28,319
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 663, 734 ] }
28,320
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 944, 1024 ] }
28,321
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1289, 1376 ] }
28,322
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2012, 2089 ] }
28,323
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20
interface ERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function s...
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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2384, 2484 ] }
28,324
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 233, 403 ] }
28,325
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 655, 788 ] }
28,326
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1060, 1241 ] }
28,327
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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; } uint25...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1469, 1903 ] }
28,328
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2344, 2473 ] }
28,329
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2934, 3260 ] }
28,330
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 3690, 3817 ] }
28,331
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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) { uint256 c =...
/** * @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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 4267, 4426 ] }
28,332
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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 = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 465, 541 ] }
28,333
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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 = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1067, 1200 ] }
28,334
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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 = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public 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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1342, 1448 ] }
28,335
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
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 = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) 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.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1543, 1761 ] }
28,336
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
getOwner
function getOwner() external view returns (address) { return owner(); }
/** * @dev Returns the ERC token owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 640, 722 ] }
28,337
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
decimals
function decimals() external view returns (uint8) { return _decimals; }
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 778, 860 ] }
28,338
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
symbol
function symbol() external view returns (string memory) { return _symbol; }
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 914, 1000 ] }
28,339
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
name
function name() external view returns (string memory) { return _name; }
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1050, 1132 ] }
28,340
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
totalSupply
function totalSupply() external view returns (uint256) { return _totalSupply; }
/** * @dev See {ERC20-totalSupply}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1185, 1275 ] }
28,341
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
balanceOf
function balanceOf(address account) external view returns (uint256) { return _balances[account]; }
/** * @dev See {ERC20-balanceOf}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1326, 1435 ] }
28,342
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
transfer
function transfer(address recipient, uint256 amount) external returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {ERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1626, 1779 ] }
28,343
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
allowance
function allowance(address owner, address spender) external view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {ERC20-allowance}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 1830, 1963 ] }
28,344
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
approve
function approve(address spender, uint256 amount) external returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {ERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2090, 2237 ] }
28,345
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {ERC20-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 `amoun...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 2679, 2974 ] }
28,346
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 3353, 3556 ] }
28,347
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 4025, 4279 ] }
28,348
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds b...
/** * @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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 4736, 5188 ] }
28,349
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
_burn
function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), 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.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 5498, 5831 ] }
28,350
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
_approve
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 6240, 6563 ] }
28,351
ERC20Token
ERC20Token.sol
0xc93d30fc9379b6c25d96a1782a2bacb12d19ade0
Solidity
ERC20Token
contract ERC20Token is Context, ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _symbol; string private _na...
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://4ddfd3daa16c6c7f027507edab3ea257d87bd18e0f7aa756b6b2f845000259fa
{ "func_code_index": [ 6732, 6957 ] }
28,352
HistoryERC721
contracts/libraries/TransferHelper.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
TransferHelper
library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transfer...
safeTransferFrom
function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))),...
/// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of ...
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 435, 807 ] }
28,353
HistoryERC721
contracts/libraries/TransferHelper.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
TransferHelper
library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transfer...
safeTransferNFTFrom
function safeTransferNFTFrom( address token, address from, address to, uint256 tokenId ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC721.transferFrom.selector, from, to, tokenId)); require(success && (data.length == 0 || abi.decode(data, (...
/// @notice Transfers NFT from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the...
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1231, 1611 ] }
28,354
HistoryERC721
contracts/libraries/TransferHelper.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
TransferHelper
library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transfer...
safeTransfer
function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); }
/// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 1905, 2226 ] }
28,355
HistoryERC721
contracts/libraries/TransferHelper.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
TransferHelper
library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transfer...
safeApprove
function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); }
/// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to...
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 2581, 2900 ] }
28,356
HistoryERC721
contracts/libraries/TransferHelper.sol
0xe58c16f849a5f5e5eb065ca5a46a52872e9183ed
Solidity
TransferHelper
library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transfer...
safeTransferETH
function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); }
/// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred
NatSpecSingleLine
v0.8.7+commit.e28d00a7
MIT
ipfs://8b32e61a6008659200af8c7e9f086ad04f53ccf2a16cce87ea92769e26d0ee9d
{ "func_code_index": [ 3091, 3264 ] }
28,357
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
_transfer
function _transfer(address _from, address _to, uint _value) canTransfer internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > bal...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 1640, 2658 ] }
28,358
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 2864, 2976 ] }
28,359
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) canTransfer public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 3251, 3564 ] }
28,360
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 3828, 4004 ] }
28,361
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 4398, 4750 ] }
28,362
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender,...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 4920, 5299 ] }
28,363
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 5557, 6173 ] }
28,364
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
mintToken
function mintToken(address target, uint256 mintedAmount) onlyCrowdsaleAgent public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(this, target, mintedAmount); }
/// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens it will receive
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 6365, 6595 ] }
28,365
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
freezeAccount
function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); }
/// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens /// @param target Address to be frozen /// @param freeze either to freeze it or not
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 6776, 6942 ] }
28,366
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin
contract Trabet_Coin is owned { // Public variables of the token string public name = "Trabet Coin"; string public symbol = "TC"; uint8 public decimals = 4; uint256 public totalSupply = 7000000 * 10 ** uint256(decimals); bool public released = false; /// contract that is allowed t...
setCrowdsaleAgent
function setCrowdsaleAgent(address _crowdsaleAgent) onlyOwner public { crowdsaleAgent = _crowdsaleAgent; }
/// @dev Set the contract that can call release and make the token transferable. /// @param _crowdsaleAgent crowdsale contract address
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 7090, 7215 ] }
28,367
Trabet_Coin_PreICO
Trabet_Coin_PreICO.sol
0xe2d4b55a72977ce72d4d5c87307c14de251a6231
Solidity
Trabet_Coin_PreICO
contract Trabet_Coin_PreICO is owned, Killable { /// The token we are selling Trabet_Coin public token; ///fund goes to address public beneficiary; /// the UNIX timestamp start date of the crowdsale uint public startsAt = 1521748800; /// the UNIX timestamp end date of the crowds...
refund
function refund() public { require(reFunding); uint256 weiValue = investedAmountOf[msg.sender]; investedAmountOf[msg.sender] = 0; weiRefunded = weiRefunded + weiValue; emit Refund(msg.sender, weiValue); msg.sender.transfer(weiValue); }
/// @dev Investors can claim refund.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://0cc3f6489cc185861b86e027cc6b2741028f0e53abe7c0d3ccc152eff2a60528
{ "func_code_index": [ 3831, 4130 ] }
28,368
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
FDT
function FDT( uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol ) { balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens totalSupply = initialSupply; // Update total supply name = tokenName...
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 1006, 1675 ] }
28,369
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
transfer
function transfer(address _to, uint256 _value) { if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead if (_value <= 0) throw; if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough if (balanceOf[_to] + _value < b...
/* Send coins */
Comment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 1700, 2469 ] }
28,370
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
approve
function approve(address _spender, uint256 _value) returns (bool success) { if (_value <= 0) throw; allowance[msg.sender][_spender] = _value; return true; }
/* Allow another contract to spend some tokens in your behalf */
Comment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 2542, 2745 ] }
28,371
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead if (_value <= 0) throw; if (balanceOf[_from] < _value) throw; // Check if the sender has...
/* A contract attempts to get the coins */
Comment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 2805, 3736 ] }
28,372
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
withdrawEther
function withdrawEther(uint256 amount) { if(msg.sender != owner)throw; owner.transfer(amount); }
// transfer balance to owner
LineComment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 5289, 5413 ] }
28,373
FDT
FDT.sol
0x0f2e95b771937743b41d698e4d140683172e7249
Solidity
FDT
contract FDT is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf...
function() payable { }
// can accept ether
LineComment
v0.4.12+commit.194ff033
bzzr://34ed36acaa435f84aaf12a03165f84cf40c4fe8196923aad32ac34128b34c193
{ "func_code_index": [ 5445, 5477 ] }
28,374
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public override view returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 849, 974 ] }
28,375
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public override view returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 1190, 1324 ] }
28,376
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address receiver, uint tokens) public override returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[receiver] = safeAdd(balances[receiver], tokens); emit Transfer(msg.sender, receiver, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to receiver account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 1670, 1985 ] }
28,377
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public override returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md // recommends that there are no checks for the approval double-spend attack /...
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 2474, 2696 ] }
28,378
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address sender, address receiver, uint tokens) public override returns (bool success) { balances[sender] = safeSub(balances[sender], tokens); allowed[sender][msg.sender] = safeSub(allowed[sender][msg.sender], tokens); balances[receiver] = safeAdd(balances[receiver], tokens); em...
// ------------------------------------------------------------------------ // Transfer tokens from sender account to receiver account // // The calling account must already have sufficient tokens approve(...)-d // for spending from sender account and // - From account must have sufficient balance to transfer // - Spe...
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 3221, 3629 ] }
28,379
CancerToken
CancerToken.sol
0x363428b78e5987647a6efab8f4b9e9e4ca0ace99
Solidity
CancerToken
contract CancerToken is ERC20Interface, SafeMath { string public constant symbol = "CANC"; string public constant name = "Cancer Token"; uint8 public constant decimals = 8; uint public constant _totalSupply = 2100000000000000; mapping(address => uint) balances; mapping(address => mapping(...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals // assisted token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public override view returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://45619e1b69b6d8891cc8a9e4bb3f1c9628b9e87b4a30358ec34187c451fbe286
{ "func_code_index": [ 3908, 4069 ] }
28,380
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
Owned
contract Owned { /** * Contract owner address */ address public contractOwner; /** * Contract owner address */ address public pendingContractOwner; function Owned() { contractOwner = msg.sender; } /** * @dev Owner check modifier */ ...
/** * @title Owned contract with safe ownership pass. * * Note: all the non constant functions return false instead of throwing in case if state change * didn't happen yet. */
NatSpecMultiLine
destroy
function destroy() onlyContractOwner { suicide(msg.sender); }
/** * @dev Destroy contract and scrub a data * @notice Only owner can call it */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 537, 617 ] }
28,381
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
Owned
contract Owned { /** * Contract owner address */ address public contractOwner; /** * Contract owner address */ address public pendingContractOwner; function Owned() { contractOwner = msg.sender; } /** * @dev Owner check modifier */ ...
/** * @title Owned contract with safe ownership pass. * * Note: all the non constant functions return false instead of throwing in case if state change * didn't happen yet. */
NatSpecMultiLine
changeContractOwnership
function changeContractOwnership(address _to) onlyContractOwner() returns(bool) { if (_to == 0x0) { return false; } pendingContractOwner = _to; return true; }
/** * Prepares ownership pass. * * Can only be called by current owner. * * @param _to address of the next owner. 0x0 is not allowed. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 831, 1051 ] }
28,382
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
Owned
contract Owned { /** * Contract owner address */ address public contractOwner; /** * Contract owner address */ address public pendingContractOwner; function Owned() { contractOwner = msg.sender; } /** * @dev Owner check modifier */ ...
/** * @title Owned contract with safe ownership pass. * * Note: all the non constant functions return false instead of throwing in case if state change * didn't happen yet. */
NatSpecMultiLine
claimContractOwnership
function claimContractOwnership() returns(bool) { if (pendingContractOwner != msg.sender) { return false; } contractOwner = pendingContractOwner; delete pendingContractOwner; return true; }
/** * Finalize ownership pass. * * Can only be called by pending owner. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 1191, 1452 ] }
28,383
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
DataControllerInterface
contract DataControllerInterface { /// @notice Checks user is holder. /// @param _address - checking address. /// @return `true` if _address is registered holder, `false` otherwise. function isHolderAddress(address _address) public view returns (bool); function allowance(address _user) publ...
/// @title Provides possibility manage holders? country limits and limits for holders.
NatSpecSingleLine
isHolderAddress
function isHolderAddress(address _address) public view returns (bool);
/// @notice Checks user is holder. /// @param _address - checking address. /// @return `true` if _address is registered holder, `false` otherwise.
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 200, 275 ] }
28,384
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ServiceControllerInterface
contract ServiceControllerInterface { /// @notice Check target address is service /// @param _address target address /// @return `true` when an address is a service, `false` otherwise function isService(address _address) public view returns (bool); }
/// @title ServiceController /// /// Base implementation /// Serves for managing service instances
NatSpecSingleLine
isService
function isService(address _address) public view returns (bool);
/// @notice Check target address is service /// @param _address target address /// @return `true` when an address is a service, `false` otherwise
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 202, 271 ] }
28,385
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
function() public payable { _getAsset().__process.value(msg.value)(msg.data, msg.sender); }
/** * Resolves asset implementation contract for the caller and forwards there transaction data, * along with the value. This allows for proxy interface growth. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 1612, 1722 ] }
28,386
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
init
function init(Platform _platform, string _symbol, string _name) public returns (bool) { if (address(platform) != 0x0) { return false; } platform = _platform; symbol = _symbol; smbl = stringToBytes32(_symbol); name = _name; return true; }
/** * Sets platform address, assigns symbol and name. * * Can be set only once. * * @param _platform platform contract address. * @param _symbol assigned symbol. * @param _name assigned name. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 2006, 2329 ] }
28,387
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
totalSupply
function totalSupply() public view returns (uint) { return platform.totalSupply(smbl); }
/** * Returns asset total supply. * * @return asset total supply. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 2430, 2537 ] }
28,388
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
balanceOf
function balanceOf(address _owner) public view returns (uint) { return platform.balanceOf(_owner, smbl); }
/** * Returns asset balance for a particular holder. * * @param _owner holder address. * * @return holder balance. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 2699, 2824 ] }
28,389
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
allowance
function allowance(address _from, address _spender) public view returns (uint) { return platform.allowance(_from, _spender, smbl); }
/** * Returns asset allowance from one holder to another. * * @param _from holder that allowed spending. * @param _spender holder that is allowed to spend. * * @return holder to spender allowance. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 3074, 3225 ] }
28,390
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
decimals
function decimals() public view returns (uint8) { return platform.baseUnit(smbl); }
/** * Returns asset decimals. * * @return asset decimals. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 3318, 3420 ] }
28,391
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
transfer
function transfer(address _to, uint _value) public returns (bool) { if (_to != 0x0) { return _transferWithReference(_to, _value, ""); } else { return false; } }
/** * Transfers asset balance from the caller to specified receiver. * * @param _to holder address to give to. * @param _value amount to transfer. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 3641, 3873 ] }
28,392
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
transferWithReference
function transferWithReference(address _to, uint _value, string _reference) public returns (bool) { if (_to != 0x0) { return _transferWithReference(_to, _value, _reference); } else { return false; } }
/** * Transfers asset balance from the caller to specified receiver adding specified comment. * * @param _to holder address to give to. * @param _value amount to transfer. * @param _reference transfer comment to be included in a platform's Transfer event. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 4209, 4481 ] }
28,393
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
__transferWithReference
function __transferWithReference(address _to, uint _value, string _reference, address _sender) public onlyAccess(_sender) returns (bool) { return platform.proxyTransferWithReference(_to, _value, smbl, _reference, _sender) == OK; }
/** * Performs transfer call on the platform by the name of specified sender. * * Can only be called by asset implementation contract assigned to sender. * * @param _to holder address to give to. * @param _value amount to transfer. * @param _reference transfer comment to be included in a platform's Transf...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 4928, 5177 ] }
28,394
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
transferFrom
function transferFrom(address _from, address _to, uint _value) public returns (bool) { if (_to != 0x0) { return _getAsset().__transferFromWithReference(_from, _to, _value, "", msg.sender); } else { return false; } }
/** * Prforms allowance transfer of asset balance between holders. * * @param _from holder address to take from. * @param _to holder address to give to. * @param _value amount to transfer. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 5446, 5733 ] }
28,395
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
__transferFromWithReference
function __transferFromWithReference(address _from, address _to, uint _value, string _reference, address _sender) public onlyAccess(_sender) returns (bool) { return platform.proxyTransferFromWithReference(_from, _to, _value, smbl, _reference, _sender) == OK; }
/** * Performs allowance transfer call on the platform by the name of specified sender. * * Can only be called by asset implementation contract assigned to sender. * * @param _from holder address to take from. * @param _to holder address to give to. * @param _value amount to transfer. * @param _referenc...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 6240, 6519 ] }
28,396
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
approve
function approve(address _spender, uint _value) public returns (bool) { if (_spender != 0x0) { return _getAsset().__approve(_spender, _value, msg.sender); } else { return false; } }
/** * Sets asset spending allowance for a specified spender. * * @param _spender holder address to set allowance to. * @param _value amount to allow. * * @return success. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 6743, 6996 ] }
28,397
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
__approve
function __approve(address _spender, uint _value, address _sender) public onlyAccess(_sender) returns (bool) { return platform.proxyApprove(_spender, _value, smbl, _sender) == OK; }
/** * Performs allowance setting call on the platform by the name of specified sender. * * Can only be called by asset implementation contract assigned to sender. * * @param _spender holder address to set allowance to. * @param _value amount to allow. * @param _sender initial caller. * * @return succe...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 7373, 7573 ] }
28,398
ATxAssetProxy
ATxAssetProxy.sol
0xd029de67c3f46d046c635f60efeb41d5b92a74ae
Solidity
ATxAssetProxy
contract ATxAssetProxy is ERC20, Object, ServiceAllowance { // Timespan for users to review the new implementation and make decision. uint constant UPGRADE_FREEZE_TIME = 3 days; using SafeMath for uint; /** * Indicates an upgrade freeze-time start, and the next asset implementation contr...
emitTransfer
function emitTransfer(address _from, address _to, uint _value) public onlyPlatform() { Transfer(_from, _to, _value); }
/** * Emits ERC20 Transfer event on this contract. * * Can only be, and, called by assigned platform when asset transfer happens. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://1b1b5f2a57f14b6b1c173d0f17ff81fc44b16a962ebed36de7b15479a5c64f51
{ "func_code_index": [ 7738, 7875 ] }
28,399