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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMul | function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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
... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
873,
1381
]
} | 7,807 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryDiv | function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
1528,
1728
]
} | 7,808 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMod | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
1885,
2085
]
} | 7,809 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
2318,
2421
]
} | 7,810 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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 (consu... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
3193,
3296
]
} | 7,811 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterp... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
3758,
3969
]
} | 7,812 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invali... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
4674,
4884
]
} | 7,813 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) retu... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
5528,
5738
]
} | 7,814 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
590,
1017
]
} | 7,815 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
1932,
2334
]
} | 7,816 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
3073,
3251
]
} | 7,817 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
3471,
3671
]
} | 7,818 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
4031,
4262
]
} | 7,819 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
4508,
5043
]
} | 7,820 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
5218,
5422
]
} | 7,821 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
5604,
6031
]
} | 7,822 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
6208,
6413
]
} | 7,823 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return f... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
6597,
7025
]
} | 7,824 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
450,
542
]
} | 7,825 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
1093,
1246
]
} | 7,826 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
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.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
1393,
1642
]
} | 7,827 |
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | kanekiinu | contract kanekiinu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
//
string private _name = "Kaneki Inu"; // name
string private _symbol = "$KANEKI"; ... | //to recieve ETH | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
7106,
7140
]
} | 7,828 | ||||
kanekiinu | kanekiinu.sol | 0xac720c675fba115ac6ac4c9dd67dc64a1d089d26 | Solidity | kanekiinu | contract kanekiinu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
//
string private _name = "Kaneki Inu"; // name
string private _symbol = "$KANEKI"; ... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipie... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://6679f25f690c92432b307e316ce3662c35078a3b53ce19ddb13dc9845cfa37af | {
"func_code_index": [
13648,
14471
]
} | 7,829 | ||
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
259,
445
]
} | 7,830 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
723,
864
]
} | 7,831 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1162,
1359
]
} | 7,832 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1613,
2089
]
} | 7,833 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2560,
2697
]
} | 7,834 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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) {
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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
3188,
3471
]
} | 7,835 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
3931,
4066
]
} | 7,836 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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 ... | /**
* @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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
4546,
4717
]
} | 7,837 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
94,
154
]
} | 7,838 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
237,
310
]
} | 7,839 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
534,
616
]
} | 7,840 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
895,
983
]
} | 7,841 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1647,
1726
]
} | 7,842 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | 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.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2039,
2141
]
} | 7,843 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
874,
962
]
} | 7,844 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1076,
1168
]
} | 7,845 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1801,
1889
]
} | 7,846 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1949,
2054
]
} | 7,847 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2112,
2236
]
} | 7,848 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2444,
2624
]
} | 7,849 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2682,
2838
]
} | 7,850 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2980,
3154
]
} | 7,851 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
3631,
3957
]
} | 7,852 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
4361,
4584
]
} | 7,853 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
5082,
5356
]
} | 7,854 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sen... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
5841,
6385
]
} | 7,855 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
6662,
7045
]
} | 7,856 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
7373,
7796
]
} | 7,857 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
8229,
8580
]
} | 7,858 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
8907,
9002
]
} | 7,859 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
9600,
9697
]
} | 7,860 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ITCO | contract ITCO { //We define that this is the Tiered IBCO(ITCO) contract
using SafeMath for uint256;// We set the SafeMath library for all uint256 variables
address payable public tk; //address of the token being used in the ibco
address payable owner; //the address that is running the ITCO
uint256 t... | /**
* @title Tiered IBCO (ITCO)
* @author Shalaquiana
* @notice this implementation has a known flaw, the price of tokens does not change if tier increases during a single purhcase, the buyer receives all tokens for the previous tier price.
* Licensed to everyone
*/ | NatSpecMultiLine | transferOwner | function transferOwner(address payable newOwner_) public onlyOwner {
owner = newOwner_;
}
| /**
* @dev transfer ownership
* @param newOwner_ the new address to assume ownership responsiblity (the multisig)
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
1994,
2100
]
} | 7,861 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ITCO | contract ITCO { //We define that this is the Tiered IBCO(ITCO) contract
using SafeMath for uint256;// We set the SafeMath library for all uint256 variables
address payable public tk; //address of the token being used in the ibco
address payable owner; //the address that is running the ITCO
uint256 t... | /**
* @title Tiered IBCO (ITCO)
* @author Shalaquiana
* @notice this implementation has a known flaw, the price of tokens does not change if tier increases during a single purhcase, the buyer receives all tokens for the previous tier price.
* Licensed to everyone
*/ | NatSpecMultiLine | open | function open(uint a, uint256 t) external onlyOwner {
ERC20 token = ERC20(tk);//load the token being itco'd for transfering the total amount to distribute in
require(token.transferFrom(msg.sender, address(this), a), "transfer failed");// transfer the amount from the owner to the itco contract
sta = block... | /**
* @notice start the ibco
* @dev owner must approve IBCO contract before start will succeed
* @param a the amount of token to include in ibco
* @param t the total length of the ibco (seconnds after start)
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
2345,
2968
]
} | 7,862 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ITCO | contract ITCO { //We define that this is the Tiered IBCO(ITCO) contract
using SafeMath for uint256;// We set the SafeMath library for all uint256 variables
address payable public tk; //address of the token being used in the ibco
address payable owner; //the address that is running the ITCO
uint256 t... | /**
* @title Tiered IBCO (ITCO)
* @author Shalaquiana
* @notice this implementation has a known flaw, the price of tokens does not change if tier increases during a single purhcase, the buyer receives all tokens for the previous tier price.
* Licensed to everyone
*/ | NatSpecMultiLine | currentTier | function currentTier() external view returns (uint256, uint256){
uint256 price;
uint256 t;
if (totalDeps >= t5) {// if the total deposits so far exceeds the top of t5(tier five), use tier 6
t = 6;// set the tier to 6
price = p6;// set the price to the tier 6 price
} else if (totalD... | /**
* @notice returns the current tier and current price. helper function
* @dev first variable returned is tier, second is price
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
3125,
4328
]
} | 7,863 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ITCO | contract ITCO { //We define that this is the Tiered IBCO(ITCO) contract
using SafeMath for uint256;// We set the SafeMath library for all uint256 variables
address payable public tk; //address of the token being used in the ibco
address payable owner; //the address that is running the ITCO
uint256 t... | /**
* @title Tiered IBCO (ITCO)
* @author Shalaquiana
* @notice this implementation has a known flaw, the price of tokens does not change if tier increases during a single purhcase, the buyer receives all tokens for the previous tier price.
* Licensed to everyone
*/ | NatSpecMultiLine | collect | function collect() external onlyOwner {
require(end != 0, "ITCO not opened yet");// have to wait for itco to end to withdraw funds
require(block.timestamp > end, "ITCO not ended yet");// have to wait for itco to end to withdraw funds
require(msg.sender.send(address(this).balance), "transfer failed");//se... | /**
* @notice withdraw the ETH emassed in the ibco
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
4402,
5173
]
} | 7,864 |
ITCO | ITCO.sol | 0x02677a13a168e20b8a29600110c01f3e9b0e53bc | Solidity | ITCO | contract ITCO { //We define that this is the Tiered IBCO(ITCO) contract
using SafeMath for uint256;// We set the SafeMath library for all uint256 variables
address payable public tk; //address of the token being used in the ibco
address payable owner; //the address that is running the ITCO
uint256 t... | /**
* @title Tiered IBCO (ITCO)
* @author Shalaquiana
* @notice this implementation has a known flaw, the price of tokens does not change if tier increases during a single purhcase, the buyer receives all tokens for the previous tier price.
* Licensed to everyone
*/ | NatSpecMultiLine | /**
* @notice recieve ETH in this contract
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://3a4ce06e3a6cddafc42987d9b5fe4179a027baa7f4b61b2847d1986ac1bf30fb | {
"func_code_index": [
5245,
7365
]
} | 7,865 | ||
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | setRaffleTicket | function setRaffleTicket(address raffleTicketAddress) external;
| /**
* @dev It allows to set a new raffle ticket.
* @param raffleTicketAddress The raffleTicketAddress. It must be ERC-1155 token.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
822,
886
]
} | 7,866 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | startRaffle | function startRaffle(uint startDate, uint endDate) external returns (uint256);
| /**
* @dev Initiate a new raffle. It should allow only when a raffle is not
* already running. Only the Owner can call this method.
* @param startDate The timestamp after when a raffle starts
* @param endDate The timestamp after when a raffle can be finalised
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
1162,
1241
]
} | 7,867 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPlayersLength | function getPlayersLength(uint256 raffleIndex) external view returns (uint256);
| /**
* @dev This function helps to get a better picture of a given raffle. It also
* @dev helps in verifying offchain the fairness of the Raffle.
* @param raffleIndex The index of the Raffle to check.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
1455,
1535
]
} | 7,868 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPrizesLength | function getPrizesLength(uint256 raffleIndex) external view returns (uint256);
| /**
* @dev This function helps to get a better picture of a given raffle by
* @dev helping retrieving the number of Prizes
* @param raffleIndex The index of the Raffle to check.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
1727,
1806
]
} | 7,869 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | changeWithdrawGracePeriod | function changeWithdrawGracePeriod(uint256 period) external;
| /**
* @dev With this function the Owner can change the grace period
* @dev to withdraw unclamed Prices
* @param period The index of the Raffle to check.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
1973,
2034
]
} | 7,870 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPlayerAtIndex | function getPlayerAtIndex(uint256 raffleIndex, uint256 playerIndex) external view returns (address);
| /**
* @dev A handy getter for a Player of a given Raffle.
* @param raffleIndex the index of the Raffle where to get the Player
* @param playerIndex the index of the Player to get
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2227,
2328
]
} | 7,871 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPrizeAtIndex | function getPrizeAtIndex(uint256 raffleIndex, uint256 prizeIndex) external view returns (address, uint256);
| /**
* @dev A handy getter for the Prizes
* @param raffleIndex the index of the Raffle where to get the Player
* @param prizeIndex the index of the Prize to get
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2502,
2610
]
} | 7,872 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | draftWinners | function draftWinners(uint256 raffleIndex, uint256 entropy) external;
| /**
* @dev This method disclosed the committed message and closes the current raffle.
* Only the Owner can call this method
* @param raffleIndex the index of the Raffle where to draft winners
* @param entropy The message in clear. It will be used as part of entropy from Chainlink
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2907,
2977
]
} | 7,873 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | claimPrize | function claimPrize(uint256 raffleIndex, uint prizeIndex) external;
| /**
* @dev Allows a winner to withdraw his/her prize
* @param raffleIndex The index of the Raffle where to find the Price to withdraw
* @param prizeIndex The index of the Prize to withdraw
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3180,
3248
]
} | 7,874 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPrizeWinner | function getPrizeWinner(uint256 raffleIndex, uint256 prizeIndex) external view returns (address);
| /**
* @dev It maps a given Prize with the address of the winner.
* @param raffleIndex The index of the Raffle where to find the Price winner
* @param prizeIndex The index of the prize to withdraw
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3459,
3557
]
} | 7,875 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | getPrizeWinnerIndex | function getPrizeWinnerIndex(uint256 raffleIndex, uint256 prizeIndex) external view returns (uint256);
| /**
* @dev It maps a given Prize with the index of the winner.
* @param raffleIndex The index of the Raffle where to find the Price winner
* @param prizeIndex The index of the prize to withdraw
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3766,
3869
]
} | 7,876 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | unlockUnclaimedPrize | function unlockUnclaimedPrize(uint256 raffleIndex, uint prizeIndex) external;
| /**
* @dev Prevents locked NFT by allowing the Owner to withdraw an unclaimed
* @dev prize after a grace period has passed
* @param raffleIndex The index of the Raffle containing the Prize to withdraw
* @param prizeIndex The index of the prize to withdraw
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
4141,
4219
]
} | 7,877 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | addERC1155Prize | function addERC1155Prize(uint256 raffleIndex, address tokenAddress, uint256 tokenId) external;
| /**
* @dev Once a non-ticket NFT is received, it is considered as prize
* @dev play multiple tickets.
* @dev With this function, we add the received NFT as raffle Prize
* @param tokenAddress the address of the NFT received
* @param tokenId the id of the NFT received
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
4504,
4599
]
} | 7,878 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | addERC721Prize | function addERC721Prize(uint256 raffleIndex, address tokenAddress, uint256 tokenId) external;
| /**
* @dev Once a non-ticket NFT is received, it is considered as prize
* @dev play multiple tickets.
* @dev With this function, we add the received NFT as raffle Prize
* @param tokenAddress the address of the NFT received
* @param tokenId the id of the NFT received
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
4884,
4978
]
} | 7,879 | |
Raffle | contracts/Raffle/IRaffle.sol | 0x13838388afa16c7a2507dd65feb961b53bb7b78c | Solidity | IRaffle | interface IRaffle {
enum PrizeType {
ERC1155,
ERC721
}
struct Prize {
address tokenAddress;
uint256 tokenId;
bool claimed;
PrizeType prizeType;
}
struct RaffleInfo {
uint endDate;
uint startDate;
Prize[] prizes;
address[] players;
uint256 randomResult;
}
event RaffleStarted(uint256 raffl... | /// @title A provably fair NFT raffle
/// @author Valerio Leo @valerioHQ | NatSpecSingleLine | enterGame | function enterGame(uint256 raffleIndex, uint256 ticketsAmount) external;
| /**
* @dev Anyone with a valid ticket can enter the raffle. One player can also
* @dev play multiple tickets.
* @param raffleIndex The index of the Raffle to enter
* @param ticketsAmount the number of tickets to play
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
5211,
5284
]
} | 7,880 | |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | safeApprove | function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line ... | /**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
747,
1374
]
} | 7,881 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | _callOptionalReturn | function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target ad... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
2393,
3159
]
} | 7,882 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
259,
445
]
} | 7,883 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
723,
864
]
} | 7,884 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
1162,
1359
]
} | 7,885 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
1613,
2089
]
} | 7,886 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
2560,
2697
]
} | 7,887 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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) {
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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
3188,
3471
]
} | 7,888 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
3931,
4066
]
} | 7,889 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
4546,
4717
]
} | 7,890 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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 | sqrrt | function sqrrt(uint256 a) internal pure returns (uint c) {
if (a > 3) {
c = a;
uint b = add( div( a, 2), 1 );
while (b < c) {
c = b;
b = div( add( div( a, b ), b), 2 );
}
} else if (a != 0) {
c = 1;
}
}
| // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) | LineComment | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
4830,
5168
]
} | 7,891 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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 | percentageAmount | function percentageAmount( uint256 total_, uint8 percentage_ ) internal pure returns ( uint256 percentAmount_ ) {
return div( mul( total_, percentage_ ), 1000 );
}
| /*
* Expects percentage to be trailed by 00,
*/ | Comment | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
5235,
5417
]
} | 7,892 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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 | substractPercentage | function substractPercentage( uint256 total_, uint8 percentageToSub_ ) internal pure returns ( uint256 result_ ) {
return sub( total_, div( mul( total_, percentageToSub_ ), 1000 ) );
}
| /*
* Expects percentage to be trailed by 00,
*/ | Comment | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
5484,
5687
]
} | 7,893 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | 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 ... | /**
* @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 | average | function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
| /**
* Taken from Hypersonic https://github.com/M2629/HyperSonic/blob/main/Math.sol
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
6054,
6252
]
} | 7,894 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
606,
1033
]
} | 7,895 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
1963,
2365
]
} | 7,896 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
3121,
3299
]
} | 7,897 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
3524,
3725
]
} | 7,898 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
4095,
4326
]
} | 7,899 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | // function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
// require(address(this).balance >= value, "Address: insufficient balance for call");
// return _functionCallWithValue(target, data, value, errorMessage);
// } | LineComment | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
4911,
5446
]
} | 7,900 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
6611,
6815
]
} | 7,901 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
7002,
7429
]
} | 7,902 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
7611,
7816
]
} | 7,903 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
8005,
8433
]
} | 7,904 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
94,
154
]
} | 7,905 |
GenesisClaim | GenesisClaim.sol | 0xeaaa9d97be33a764031eddeba1cb6cb385350ca3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unknown | ipfs://5a515a354374dc9dd911960dee7091835ca7ba191068dea401122cc4c67afa84 | {
"func_code_index": [
237,
310
]
} | 7,906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.