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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
895,
983
]
} | 9,807 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1647,
1726
]
} | 9,808 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
2039,
2141
]
} | 9,809 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
251,
437
]
} | 9,810 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
707,
848
]
} | 9,811 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1138,
1335
]
} | 9,812 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1581,
2057
]
} | 9,813 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
2520,
2657
]
} | 9,814 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
3140,
3490
]
} | 9,815 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
3942,
4077
]
} | 9,816 |
FutureBase | IERC20.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
4549,
4720
]
} | 9,817 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint128 | function toUint128(uint256 value) internal pure returns (uint128) {
require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
return uint128(value);
}
| /**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
317,
506
]
} | 9,818 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint64 | function toUint64(uint256 value) internal pure returns (uint64) {
require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
return uint64(value);
}
| /**
* @dev Returns the downcasted uint64 from uint256, reverting on
* overflow (when the input is greater than largest uint64).
*
* Counterpart to Solidity's `uint64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
800,
984
]
} | 9,819 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint32 | function toUint32(uint256 value) internal pure returns (uint32) {
require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
return uint32(value);
}
| /**
* @dev Returns the downcasted uint32 from uint256, reverting on
* overflow (when the input is greater than largest uint32).
*
* Counterpart to Solidity's `uint32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1278,
1462
]
} | 9,820 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint16 | function toUint16(uint256 value) internal pure returns (uint16) {
require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
return uint16(value);
}
| /**
* @dev Returns the downcasted uint16 from uint256, reverting on
* overflow (when the input is greater than largest uint16).
*
* Counterpart to Solidity's `uint16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1756,
1940
]
} | 9,821 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint8 | function toUint8(uint256 value) internal pure returns (uint8) {
require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
return uint8(value);
}
| /**
* @dev Returns the downcasted uint8 from uint256, reverting on
* overflow (when the input is greater than largest uint8).
*
* Counterpart to Solidity's `uint8` operator.
*
* Requirements:
*
* - input must fit into 8 bits.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
2231,
2410
]
} | 9,822 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toUint256 | function toUint256(int256 value) internal pure returns (uint256) {
require(value >= 0, "SafeCast: value must be positive");
return uint256(value);
}
| /**
* @dev Converts a signed int256 into an unsigned uint256.
*
* Requirements:
*
* - input must be greater than or equal to 0.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
2585,
2761
]
} | 9,823 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | SafeCast | library SafeCast {
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
... | /**
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this... | NatSpecMultiLine | toInt256 | function toInt256(uint256 value) internal pure returns (int256) {
require(value < 2**255, "SafeCast: value doesn't fit in an int256");
return int256(value);
}
| /**
* @dev Converts an unsigned uint256 into a signed int256.
*
* Requirements:
*
* - input must be less than or equal to maxInt256.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
2941,
3127
]
} | 9,824 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | Initializable | contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private initializing;
/**
* @dev Modifier to use in the initializer function ... | /**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manually
* invoked. This applies both to deploying an Initializable co... | NatSpecMultiLine | isConstructor | function isConstructor() private view returns (bool) {
// extcodesize checks the size of the code stored in an address, and
// address returns the current address. Since the code is still not
// deployed when running a constructor, any checks on its code size will
// yield zero, making it an effective way t... | /// @dev Returns true if and only if the function is running in the constructor | NatSpecSingleLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
782,
1293
]
} | 9,825 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | ContextUpgradeSafe | contract ContextUpgradeSafe is Initializable {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
function __Context_init() internal initializer {
__Context_init_unchained();
}
function _... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | __Context_init | function __Context_init() internal initializer {
__Context_init_unchained();
}
| // Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance. | LineComment | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
206,
303
]
} | 9,826 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_i... | /**
* @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 | __Ownable_init | function __Ownable_init() internal initializer {
__Context_init_unchained();
__Ownable_init_unchained();
}
| /**
* @dev Initializes the contract setting the deployer as the initial owner.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
296,
430
]
} | 9,827 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_i... | /**
* @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() internal view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
718,
804
]
} | 9,828 |
FutureBase | Safecast.sol | 0x8a59500444d48041eb90f6fcbb5814a938d5a428 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_i... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | MIT | ipfs://82b3495233d8bd2be4d68d74faedfa6037048924c56a8d3a93f91d69ca636337 | {
"func_code_index": [
1166,
1415
]
} | 9,829 |
WizarDAO | WizarDAO.sol | 0xbd16c356e4dea7b0bb821b853f684ddeb8dd1620 | Solidity | WizarDAO | contract WizarDAO is ERC721 {
address private _owner = 0x5c2B89CBeC1a4996Aa5e81f3dFf8505ABeC6B34c;
uint256 public tokenCounter = 0;
bool public claimStatus = false;
bool public pixavotingopen = false;
bool public ethvotingopen = false;
bool public daoLock = true; // if false, PixaLyfe still has ... | weeklyBurn | function weeklyBurn() public {
require(block.timestamp > newTimeFrame);
require(emergLock);
require(balanceOf(msg.sender) > 0);
PixaTokenContract pixa = PixaTokenContract(pixaaddress);
pixa.burn(burnAmount);
pixa.transfer(msg.sender, txnReward);
newTimeFrame = block.timestamp + weekly;
}
| // burn rate ////////////////////////////////////////// | LineComment | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
3594,
3946
]
} | 9,830 | |||
WizarDAO | WizarDAO.sol | 0xbd16c356e4dea7b0bb821b853f684ddeb8dd1620 | Solidity | WizarDAO | contract WizarDAO is ERC721 {
address private _owner = 0x5c2B89CBeC1a4996Aa5e81f3dFf8505ABeC6B34c;
uint256 public tokenCounter = 0;
bool public claimStatus = false;
bool public pixavotingopen = false;
bool public ethvotingopen = false;
bool public daoLock = true; // if false, PixaLyfe still has ... | weeklyRewards | function weeklyRewards() public {
require(block.timestamp > newRewardsTimeFrame);
require(emergLock);
require(balanceOf(msg.sender) > 0);
PixaTokenContract pixa = PixaTokenContract(pixaaddress);
pixa.transfer(rewardsContract, rewardAmount);
pixa.transfer(msg.sender, txnReward);
newRewardsTim... | // Rewards rate ////////////////////////////////////////////// | LineComment | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
4725,
5117
]
} | 9,831 | |||
WizarDAO | WizarDAO.sol | 0xbd16c356e4dea7b0bb821b853f684ddeb8dd1620 | Solidity | WizarDAO | contract WizarDAO is ERC721 {
address private _owner = 0x5c2B89CBeC1a4996Aa5e81f3dFf8505ABeC6B34c;
uint256 public tokenCounter = 0;
bool public claimStatus = false;
bool public pixavotingopen = false;
bool public ethvotingopen = false;
bool public daoLock = true; // if false, PixaLyfe still has ... | proposeTransferPixa | function proposeTransferPixa(address payable recipient, uint256 amount, string memory reason) public payable {
require(emergLock);
require(balanceOf(msg.sender) > 0);
require(msg.value == 100000000000000000);
require(pixacooldown < block.timestamp);
pixaamount = amount;
pixarecipient = recipien... | // PIXA transfer voting ///////////////////////////////////// | LineComment | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
5926,
6490
]
} | 9,832 | |||
WizarDAO | WizarDAO.sol | 0xbd16c356e4dea7b0bb821b853f684ddeb8dd1620 | Solidity | WizarDAO | contract WizarDAO is ERC721 {
address private _owner = 0x5c2B89CBeC1a4996Aa5e81f3dFf8505ABeC6B34c;
uint256 public tokenCounter = 0;
bool public claimStatus = false;
bool public pixavotingopen = false;
bool public ethvotingopen = false;
bool public daoLock = true; // if false, PixaLyfe still has ... | proposeTransferEth | function proposeTransferEth(address payable recipient, uint256 amount, string memory reason) public payable {
require(emergLock);
require(balanceOf(msg.sender) > 0);
require(msg.value == 100000000000000000);
require(ethcooldown < block.timestamp);
ethamount = amount;
ethrecipient = recipient;
... | // ETH transfer voting ///////////////////////////////////////////////// | LineComment | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
8660,
9216
]
} | 9,833 | |||
WizarDAO | WizarDAO.sol | 0xbd16c356e4dea7b0bb821b853f684ddeb8dd1620 | Solidity | WizarDAO | contract WizarDAO is ERC721 {
address private _owner = 0x5c2B89CBeC1a4996Aa5e81f3dFf8505ABeC6B34c;
uint256 public tokenCounter = 0;
bool public claimStatus = false;
bool public pixavotingopen = false;
bool public ethvotingopen = false;
bool public daoLock = true; // if false, PixaLyfe still has ... | setRewardsContract | function setRewardsContract(address newcontract) public {
require(daoLock);
require(msg.sender == wallet);
rewardsContract = newcontract;
}
| // Allow access to other WizarDAO contracts to DAO eth and $PIXA supply ///////////////////////////////// | LineComment | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
11393,
11564
]
} | 9,834 | |||
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | Talent | function Talent() public {
symbol = "TTX";
name = "Talent";
decimals = 18;
_totalSupply = 500000000000000000000000000;
balances[0x791a21bF07a26437513C510C336Cc7F5c8d1Fb2d] = _totalSupply;
Transfer(address(0), 0x791a21bF07a26437513C510C336Cc7F5c8d1Fb2d, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
453,
786
]
} | 9,835 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
974,
1095
]
} | 9,836 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
1315,
1444
]
} | 9,837 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
1788,
2065
]
} | 9,838 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
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-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
2573,
2781
]
} | 9,839 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
3312,
3670
]
} | 9,840 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant 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.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
3953,
4109
]
} | 9,841 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
4464,
4781
]
} | 9,842 | |
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
4973,
5032
]
} | 9,843 | ||
Talent | Talent.sol | 0x82a438ab3b2df8ade0bfc437a34e042d98771980 | Solidity | Talent | contract Talent is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e8b5b5b53df2a34f73d0291bc74180916d9e112e695c3b7ab5ff2a5885df1360 | {
"func_code_index": [
5265,
5454
]
} | 9,844 | |
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | changeOwner | function changeOwner(address _newOwner) isOwner external {
require(_newOwner != address(0x0));
uint256 amount = balanceOf[msg.sender];
_transfer(msg.sender, _newOwner, amount);
owner = _newOwner;
ChangeOwner(msg.sender, _newOwner, amount);
}
| /// @dev set a new owner. | NatSpecSingleLine | v0.4.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
1018,
1314
]
} | 9,845 | |||
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to])... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
1398,
2240
]
} | 9,846 | |||
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | 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.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
2446,
2558
]
} | 9,847 | |||
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
2833,
3134
]
} | 9,848 | |||
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | 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.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
3398,
3574
]
} | 9,849 | |||
TianHeToken | TianHeToken.sol | 0x44afe4827b4ae42c8b0e68207c7fefbe378b38f1 | Solidity | TianHeToken | contract TianHeToken {
string public name = "TianHeToken";
string public symbol = "TIAN";
uint8 public decimals = 18;
uint256 public totalSupply;
address public owner;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping ... | 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.16+commit.d7661dd9 | bzzr://f73c683d392d9de9b17545fe67d51651a2b726bd769eea824e7e4c9a10ba1ccb | {
"func_code_index": [
3968,
4320
]
} | 9,850 | |||
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | RandomlyAssigned | abstract contract RandomlyAssigned is WithLimitedSupply {
// Used for random index assignment
mapping(uint256 => uint256) private tokenMatrix;
// The initial token ID
uint256 private startFrom;
/// Instanciate the contract
/// @param _maxSupply how many tokens this collection should ho... | /// @author 1001.digital
/// @title Randomly assign tokenIDs from a given set of tokens. | NatSpecSingleLine | nextToken | function nextToken() internal override ensureAvailability returns (uint256) {
uint256 maxIndex = maxSupply() - tokenCount();
uint256 random = uint256(keccak256(
abi.encodePacked(
msg.sender,
block.coinbase,
block.difficulty,
block.gaslimit,
... | /// Get the next token ID
/// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
/// @return the next token ID | NatSpecSingleLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
701,
1968
]
} | 9,851 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC721).interfaceId
|| interfaceId == type(IERC721Metadata).interfaceId
|| super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
977,
1274
]
} | 9,852 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
1333,
1546
]
} | 9,853 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
1603,
1847
]
} | 9,854 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
1909,
2014
]
} | 9,855 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
2078,
2187
]
} | 9,856 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
... | /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
2253,
2618
]
} | 9,857 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
2750,
2849
]
} | 9,858 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved ... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
2906,
3308
]
} | 9,859 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
3369,
3595
]
} | 9,860 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
3662,
3962
]
} | 9,861 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
4028,
4197
]
} | 9,862 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
4259,
4569
]
} | 9,863 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
4635,
4791
]
} | 9,864 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
4857,
5147
]
} | 9,865 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeTransfer | function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
6024,
6301
]
} | 9,866 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
6609,
6741
]
} | 9,867 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
6903,
7256
]
} | 9,868 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
7593,
7708
]
} | 9,869 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
7930,
8185
]
} | 9,870 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
8516,
8903
]
} | 9,871 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
9127,
9492
]
} | 9,872 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _transfer | function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals f... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
9824,
10373
]
} | 9,873 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
10486,
10665
]
} | 9,874 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onER... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
11225,
12073
]
} | 9,875 |
DraGONS | contracts/RandomlyAssigned.sol | 0xf7f83cbb51ba65fb19ab9ed6ca9520e637b6f192 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _o... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.6+commit.11564f7e | MIT | ipfs://b1f9e34675fdced25ca48d38eae9fb9298fc794ff8807f02f9832521abe678a4 | {
"func_code_index": [
12681,
12779
]
} | 9,876 |
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | EOTtoken | function EOTtoken (
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
name... | /**
* Constrctor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
837,
1381
]
} | 9,877 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to])... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
1465,
2307
]
} | 9,878 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | 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.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
2513,
2625
]
} | 9,879 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
2900,
3201
]
} | 9,880 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | 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.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
3465,
3641
]
} | 9,881 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | 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.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
4035,
4387
]
} | 9,882 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | 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
Burn(msg.sender, _val... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
4557,
4931
]
} | 9,883 | ||
EOTtoken | EOTtoken.sol | 0x680dda859ebb270f754647636b38a035c04471bd | Solidity | EOTtoken | contract EOTtoken{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address ... | 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.19+commit.c4cbbb05 | None | bzzr://9f7a496ac38cec604791dac360a0632672414e9949c348aa4b67a61a40a680ef | {
"func_code_index": [
5189,
5800
]
} | 9,884 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance);
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
629,
707
]
} | 9,885 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | transfer | function transfer(address _to, uint256 _value) public returns (bool success);
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
944,
1026
]
} | 9,886 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
1349,
1450
]
} | 9,887 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | approve | function approve(address _spender, uint256 _value) public returns (bool success);
| /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of tokens to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
1740,
1826
]
} | 9,888 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | allowance | function allowance(address _owner, address _spender) public view returns (uint256 remaining);
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
2034,
2132
]
} | 9,889 | ||
KEEPToken | KEEPToken.sol | 0xc295ef30941d7463094d75df4e4ae7af652e9b76 | Solidity | KEEPToken | contract KEEPToken is StandardToken {
function KEEPToken() public {
balances[msg.sender] = initialAmount; // Give the creator all initial balances is defined in StandardToken.sol
totalSupply = initialAmount; // Update total supply, totalSupply is defined in Tocken.sol
}
... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified.
//This crafts the function signa... | /* Approves and then calls the receiving contract */ | Comment | v0.4.19+commit.c4cbbb05 | GNU LGPLv2.1 | bzzr://de00699a88e88c1f18478056c2b7ac2d18780e5f0df601ab0efdbbb23002d648 | {
"func_code_index": [
411,
1233
]
} | 9,890 | ||
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
987,
1108
]
} | 9,891 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
1328,
1457
]
} | 9,892 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
1801,
2083
]
} | 9,893 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public 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-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
2591,
2804
]
} | 9,894 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
3335,
3698
]
} | 9,895 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant 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.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
3981,
4137
]
} | 9,896 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
4492,
4814
]
} | 9,897 | |
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
5006,
5065
]
} | 9,898 | ||
BitcoinBlue | BitcoinBlue.sol | 0xa6421afedda5875b8a6dd45758a74fa5f109e3c9 | Solidity | BitcoinBlue | contract BitcoinBlue is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://9887e5533c7c924010119b67ca4fa9bfa4a4bb6e4cf075e0672a6092e2c70563 | {
"func_code_index": [
5298,
5487
]
} | 9,899 | |
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | owned | contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
/* modifier是修改标志 */
modifier onlyOwner {
require(msg.sender == owner);
_;
}
/* 修改管理员账户, onlyOwner代表只能是用户管理员来修改 */
function transferOwnership(address newOwner) onlyOw... | /* 创建一个父类, 账户管理员 */ | Comment | transferOwnership | function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
| /* 修改管理员账户, onlyOwner代表只能是用户管理员来修改 */ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
265,
370
]
} | 9,900 | |
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | lepaitoken | contract lepaitoken is owned{
using SafeMath for uint;
uint public lastid; //竞拍最后id 时间
uint public systemprice = 20000 ether;
struct putusers{
address puser;//竞拍人
uint addtime;//竞拍时间
uint addmoney; //竞拍价格
//bool hasback;//是否已领取金额
string useraddr; //竞拍人地址
}
... | addauction | function addauction(address addusers,uint opentimes, uint endtimes, uint onceprices, uint openprices, uint endprices, string goodsnames, string goodspics) public returns(uint){
uint _now = now;
uint[] memory pids;
putusers memory lastone;
require(opentimes > _now);
require(opentimes < _now + 2 ... | /*添加拍卖 */ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
1325,
2011
]
} | 9,901 | |||
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | lepaitoken | contract lepaitoken is owned{
using SafeMath for uint;
uint public lastid; //竞拍最后id 时间
uint public systemprice = 20000 ether;
struct putusers{
address puser;//竞拍人
uint addtime;//竞拍时间
uint addmoney; //竞拍价格
//bool hasback;//是否已领取金额
string useraddr; //竞拍人地址
}
... | inputauction | function inputauction(uint auctids, address pusers, uint addmoneys,string useraddrs) public {
uint _now = now;
auctionlist storage c = auctionlisting[auctids];
require(c.ifend == false);
require(c.ifsend == 0);
uint userbalance = canuse(pusers);
require(addmoneys > c.currentprice);
... | /*用户竞拍*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
2315,
3308
]
} | 9,902 | |||
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | lepaitoken | contract lepaitoken is owned{
using SafeMath for uint;
uint public lastid; //竞拍最后id 时间
uint public systemprice = 20000 ether;
struct putusers{
address puser;//竞拍人
uint addtime;//竞拍时间
uint addmoney; //竞拍价格
//bool hasback;//是否已领取金额
string useraddr; //竞拍人地址
}
... | viewauction | function viewauction(uint aid) public view returns(address addusers,uint opentimes, uint endtimes, uint onceprices, uint openprices, uint endprices, string goodsnames, string goodspics, bool ifends, uint ifsends, uint anum){
auctionlist memory c = auctionlisting[aid];
addusers = c.adduser;
opentimes = c.opentime;... | /*查看*/ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
3318,
3884
]
} | 9,903 | |||
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | lepaitoken | contract lepaitoken is owned{
using SafeMath for uint;
uint public lastid; //竞拍最后id 时间
uint public systemprice = 20000 ether;
struct putusers{
address puser;//竞拍人
uint addtime;//竞拍时间
uint addmoney; //竞拍价格
//bool hasback;//是否已领取金额
string useraddr; //竞拍人地址
}
... | setsendgoods | function setsendgoods(uint auctids) public {
uint _now = now;
auctionlist storage c = auctionlisting[auctids];
require(c.adduser == msg.sender);
require(c.endtime < _now);
//if(c.endtime < _now) {
// c.ifend = true;
//}
//require(c.ifend == true);
require(c.ifsend =... | /*
function viewlisting(uint start, uint num) public view{
//uint len = auctionlisting.length;
// auctionlist[] rt;
address[] addusers;
for(uint i = lastid; i > i - start - num; i--) {
auctionlist c = auctionlisting[i];
//uint[] pt = [c.adduser,c.opentime,c.endtime];
... | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
4470,
4854
]
} | 9,904 | |||
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | lepaitoken | contract lepaitoken is owned{
using SafeMath for uint;
uint public lastid; //竞拍最后id 时间
uint public systemprice = 20000 ether;
struct putusers{
address puser;//竞拍人
uint addtime;//竞拍时间
uint addmoney; //竞拍价格
//bool hasback;//是否已领取金额
string useraddr; //竞拍人地址
}
... | endauction | function endauction(uint auctids) public {
//uint _now = now;
auctionlist storage c = auctionlisting[auctids];
require(c.ifsend == 2);
uint[] memory ids = c.putids;
uint len = ids.length;
putusers memory firstuser = c.aucusers[ids[0]];
//putusers memory lasttuser = c.lastone;
... | /*用户获取拍卖金额 */ | Comment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
5528,
6625
]
} | 9,905 | |||
lepaitoken | lepaitoken.sol | 0xaecf19d10c92f08457ed5cad8d9d5fd941221930 | Solidity | btycInterface | interface btycInterface {
//mapping(address => uint) balances;
function balanceOf(address _addr) external view returns (uint256);
function mintToken(address target, uint256 mintedAmount) external returns (bool);
function transfer(address to, uint tokens) external returns (bool);
function freeze... | balanceOf | function balanceOf(address _addr) external view returns (uint256);
| //mapping(address => uint) balances; | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://bd6ed12effdc6d0b16017afb7351086f0ec85223de134f1edfbd13ac0c55511c | {
"func_code_index": [
69,
140
]
} | 9,906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.