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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1967,
2069
]
} | 8,707 | ||
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
259,
445
]
} | 8,708 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
723,
864
]
} | 8,709 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1162,
1359
]
} | 8,710 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1613,
2089
]
} | 8,711 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
2560,
2697
]
} | 8,712 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
3188,
3471
]
} | 8,713 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
3931,
4066
]
} | 8,714 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
4546,
4717
]
} | 8,715 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
606,
1230
]
} | 8,716 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
2160,
2562
]
} | 8,717 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
3318,
3496
]
} | 8,718 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
3721,
3922
]
} | 8,719 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
4292,
4523
]
} | 8,720 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | 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");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
4774,
5095
]
} | 8,721 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
566,
650
]
} | 8,722 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1209,
1362
]
} | 8,723 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1512,
1761
]
} | 8,724 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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 | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = now + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
1929,
2148
]
} | 8,725 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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 | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(now > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
2219,
2517
]
} | 8,726 |
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | SMTIEINU | contract SMTIEINU is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => ... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
8119,
8153
]
} | 8,727 | ||||
SMTIEINU | SMTIEINU.sol | 0xa37abee240a0896def6e1153a8759880c0440166 | Solidity | SMTIEINU | contract SMTIEINU is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => ... | _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... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.6.12+commit.27d51765 | None | ipfs://c4c61315db64afe379df9b3221d932bdd69775939fc5c670c5464be9213e16c9 | {
"func_code_index": [
15844,
16683
]
} | 8,728 | ||
DEAR | DEAR.sol | 0xac48f566bfb00b40112a868b45e44730798abe8d | Solidity | Context | contract Context {
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.8+commit.23d335f2 | None | bzzr://e075f873902528283b0d471c93225776dd6754bff54edb1b535fe65a725eee38 | {
"func_code_index": [
109,
212
]
} | 8,729 | ||
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
T... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
268,
659
]
} | 8,730 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
865,
977
]
} | 8,731 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
401,
853
]
} | 8,732 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
1485,
1675
]
} | 8,733 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
1999,
2130
]
} | 8,734 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
2375,
2639
]
} | 8,735 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
261,
321
]
} | 8,736 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
644,
820
]
} | 8,737 | |
SqueezerToken | SqueezerToken.sol | 0xfc7cffb8a6d645cbeb11d939dbd851228d087461 | Solidity | BurnableToken | contract BurnableToken is Ownable, StandardToken {
event Burn(address indexed from, uint256 value);
/**
* @dev burns all remaining token supply
*/
function burnRemainingTokens() onlyOwner public {
address burner = msg.sender;
Burn(burner, balances[burner]);
balances[burner] = 0;
... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burnRemainingTokens | function burnRemainingTokens() onlyOwner public {
address burner = msg.sender;
Burn(burner, balances[burner]);
balances[burner] = 0;
totalSupply = 0;
}
| /**
* @dev burns all remaining token supply
*/ | NatSpecMultiLine | v0.4.20-nightly.2018.1.29+commit.a668b9de | bzzr://5a0d8793abe332932861d7c9a585ec68e9206d8fc26c0588c017305e0f6912d3 | {
"func_code_index": [
168,
347
]
} | 8,738 | |
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | claimSashimono | function claimSashimono() public {
require(mintIsActive, "Must be active to mint Sashimono");
require(totalSupply() < MAX_SASHIMONO, "All sashimono have been claimed");
require(totalSupply().add(1) <= MAX_SASHIMONO, "Mint would exceed max supply of Sashimono");
uint256 mintIndex = totalSupply();
_sa... | //User Function to Claim | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
359,
739
]
} | 8,739 | ||||
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | flipMintState | function flipMintState() public onlyOwner {
mintIsActive = !mintIsActive;
}
| //Only owner actions
//Turn sale active | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
790,
881
]
} | 8,740 | ||||
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseTokenURI;
}
| // internal function override | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
917,
1032
]
} | 8,741 | ||||
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | setBaseURI | function setBaseURI(string memory baseURI) public onlyOwner {
baseTokenURI = baseURI;
}
| // set baseURI | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1053,
1156
]
} | 8,742 | ||||
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | withdrawAll | function withdrawAll() public onlyOwner {
payable(_msgSender()).transfer(address(this).balance);
}
| //Witdraw funds | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1178,
1292
]
} | 8,743 | ||||
Sashimono | contracts/Sashimono.sol | 0x8e81d22d0dc7ef48a81ab25b773d449f08059c33 | Solidity | Sashimono | contract Sashimono is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public constant MAX_SASHIMONO = 888;
bool public mintIsActive = false;
string public baseTokenURI;
constructor(string memory baseURI) ERC721("Sashimono", "PRINCIPLE") {
setBaseURI(baseURI... | totalClaimed | function totalClaimed() public view returns (uint256) {
return totalSupply();
}
| //See how many sashimono claimed | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
1331,
1426
]
} | 8,744 | ||||
FLY | FLY.sol | 0x7e522119a2a5929c5651552ab1ac35eff422218c | Solidity | Context | contract Context {
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://ded6dc5818810e87e0b56437b96ef46931ce64e2796995bcc7acdd50a97e1ee3 | {
"func_code_index": [
109,
212
]
} | 8,745 | ||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
261,
321
]
} | 8,746 | ||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | NOI | contract NOI is ERC20Interface,Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) tokenBalances;
string public constant name = "NOI TOKEN";
string public constant symbol = "NOI";
uint256 public constant decimals = 18;
uint256 public const... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(tokenBalances[msg.sender]>=_value);
tokenBalances[msg.sender] = tokenBalances[msg.sender].sub(_value);
tokenBalances[_to] = tokenBalances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
| /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
1004,
1319
]
} | 8,747 | ||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | NOI | contract NOI is ERC20Interface,Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) tokenBalances;
string public constant name = "NOI TOKEN";
string public constant symbol = "NOI";
uint256 public constant decimals = 18;
uint256 public const... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= tokenBalances[_from]);
require(_value <= allowed[_from][msg.sender]);
tokenBalances[_from] = tokenBalances[_from].sub(_value);
tokenBalances[_to] = tokenBalances[_to].... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
1608,
2085
]
} | 8,748 | ||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | NOI | contract NOI is ERC20Interface,Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) tokenBalances;
string public constant name = "NOI TOKEN";
string public constant symbol = "NOI";
uint256 public constant decimals = 18;
uint256 public const... | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
3056,
3320
]
} | 8,749 | ||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | NOI | contract NOI is ERC20Interface,Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) tokenBalances;
string public constant name = "NOI TOKEN";
string public constant symbol = "NOI";
uint256 public constant decimals = 18;
uint256 public const... | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
3933,
3995
]
} | 8,750 | |||
NOI | NOI.sol | 0x7d9a79c4116b4e57202aa9016c1bc1c8e44d3a78 | Solidity | NOI | contract NOI is ERC20Interface,Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) tokenBalances;
string public constant name = "NOI TOKEN";
string public constant symbol = "NOI";
uint256 public constant decimals = 18;
uint256 public const... | balanceOf | function balanceOf(address _owner) constant public returns (uint256 balance) {
return tokenBalances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25-nightly.2018.6.18+commit.4247b004 | None | bzzr://6570ad9bed8432b70727985b5b47c369b909af8941ae77e7667b6921c8cc15ef | {
"func_code_index": [
4204,
4325
]
} | 8,751 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | setMintList | function setMintList(uint8 _mintAmount) internal {
if(!isAllowListActive) {
require(_mintPublicList[msg.sender] + _mintAmount <= publicMintAmount);
_mintPublicList[msg.sender] = _mintPublicList[msg.sender] + _mintAmount;
}
if(isAllowListActive) {
require(_mintAllowList[ms... | // -- compliance checks for tx --
//Checks and records # of mints per wallet address for public. | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
1104,
1603
]
} | 8,752 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | totalSupply | function totalSupply() public view returns (uint256) {
return supply.current();
}
| //supply check | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
1916,
2016
]
} | 8,753 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | setIsAllowListActive | function setIsAllowListActive(bool _isAllowListActive) external onlyOwner {
isAllowListActive = _isAllowListActive;
}
| //Contract enablement functions | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
2056,
2192
]
} | 8,754 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | remainingAllowListMints | function remainingAllowListMints(address userAddress) public view returns (uint256) {
return allowListMintAmount - _mintAllowList[userAddress];
}
| //check minting amounts. Doubles as access check | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
2344,
2512
]
} | 8,755 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | _verify | function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) {
return MerkleProof.verify(proof, whitelistMerkleRoot, leaf);
}
| //merkletree | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
2707,
2874
]
} | 8,756 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | mint | function mint(uint8 _mintAmount) public payable mintCompliance(_mintAmount) {
require(!paused, "The contract is paused!");
require(!isAllowListActive, "Whitelist is still active");
require(msg.value >= cost * _mintAmount, "Insufficient funds!");
setMintList(_mintAmount); //compliance check for p... | //public mint function | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
3195,
3639
]
} | 8,757 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | mintAllowList | function mintAllowList(uint8 _mintAmount, bytes32[] calldata proof) public payable mintCompliance(_mintAmount) {
require(!paused, "The contract is paused");
require(isAllowListActive, "Whitelist is paused");
require(_mintAmount <= allowListMintAmount);
require(msg.value >= cost * _mintAm... | //allowlist mint function | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
3673,
4212
]
} | 8,758 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | mintForAddress | function mintForAddress(uint8 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner {
_mintLoop(_receiver, _mintAmount);
}
| //freemint function | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
4240,
4404
]
} | 8,759 | ||
LongLost | LongLostFunction.sol | 0x1347a97789cd3aa0b11433e8117f55ab640a0451 | Solidity | LongLost | contract LongLost is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.04 ether;
uint... | _mintLoop | function _mintLoop(address _receiver, uint256 _mintAmount) internal {
for (uint256 i = 0; i < _mintAmount; i++) {
supply.increment();
_safeMint(_receiver, supply.current());
}
}
| //safemint function | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://9dc71ca0a9fcf74ddaa23420dc02b745827901c2e54d9d77c67cb54db152b741 | {
"func_code_index": [
4432,
4663
]
} | 8,760 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | SCAP | function SCAP(
uint256 initialSupply,
string tokenName,
uint8 decimalUnits,
string tokenSymbol
) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
totalSupply = initialSupply; // Update total supply
name = tokenNam... | /* Initializes contract with initial supply tokens to the creator of the contract */ | Comment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
989,
1653
]
} | 8,761 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | transfer | function transfer(address _to, uint256 _value) {
if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead
(_value <= 0) throw;
if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough
if (balanceOf[_to] + _value < balance... | /* Send coins */ | Comment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
1678,
2441
]
} | 8,762 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | approve | function approve(address _spender, uint256 _value)
returns (bool success) {
(_value <= 0) throw;
allowance[msg.sender][_spender] = _value;
return true;
}
| /* Allow another contract to spend some tokens in your behalf */ | Comment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
2514,
2711
]
} | 8,763 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead
(_value <= 0) throw;
if (balanceOf[_from] < _value) throw; // Check if the sender has enoug... | /* A contract attempts to get the coins */ | Comment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
2771,
3696
]
} | 8,764 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | withdrawEther | function withdrawEther(uint256 amount) {
if(msg.sender != owner)throw;
owner.transfer(amount);
}
| // transfer balance to owner | LineComment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
5207,
5313
]
} | 8,765 | ||
SCAP | SCAP.sol | 0xf802c67657ac5030982cbed73afafcb52e560edb | Solidity | SCAP | contract SCAP is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | function() payable {
}
| // can accept ether | LineComment | v0.4.12+commit.194ff033 | None | bzzr://6d2901729b7f71f257eddf6a211f3fa8c97c44438f65dd6d2f644d4f8beccb66 | {
"func_code_index": [
5339,
5368
]
} | 8,766 | |||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | toString | function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
180,
908
]
} | 8,767 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | toHexString | function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
| /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1013,
1358
]
} | 8,768 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | Strings | library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT lice... | toHexString | function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = alphabet[value & 0xf];
value >>= 4;
}
... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1481,
1904
]
} | 8,769 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
374,
455
]
} | 8,770 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account, uint256 id) external view returns (uint256);
| /**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1463,
1548
]
} | 8,771 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOfBatch | function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
| /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1751,
1901
]
} | 8,772 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) external;
| /**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2166,
2240
]
} | 8,773 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address account, address operator) external view returns (bool);
| /**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2388,
2483
]
} | 8,774 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
| /**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must h... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3063,
3230
]
} | 8,775 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeBatchTransferFrom | function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
| /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and ret... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3639,
3835
]
} | 8,776 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155Receiver | interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Rece... | /**
* @dev _Available since v3.1._
*/ | NatSpecMultiLine | onERC1155Received | function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
887,
1077
]
} | 8,777 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155Receiver | interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Rece... | /**
* @dev _Available since v3.1._
*/ | NatSpecMultiLine | onERC1155BatchReceived | function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],by... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2095,
2314
]
} | 8,778 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | IERC1155MetadataURI | interface IERC1155MetadataURI is IERC1155 {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
} | /**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | uri | function uri(uint256 id) external view returns (string memory);
| /**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
248,
316
]
} | 8,779 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
103,
265
]
} | 8,780 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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 on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
| /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1004,
1335
]
} | 8,781 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
| /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2265,
2587
]
} | 8,782 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3344,
3524
]
} | 8,783 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3749,
3983
]
} | 8,784 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
4353,
4618
]
} | 8,785 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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");... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
4869,
5384
]
} | 8,786 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
5564,
5768
]
} | 8,787 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallRe... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
5955,
6355
]
} | 8,788 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
6537,
6742
]
} | 8,789 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
6931,
7332
]
} | 8,790 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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 | verifyCallResult | function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
... | /**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
7555,
8272
]
} | 8,791 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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() {
_transferOwnership(_msgSender... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
408,
500
]
} | 8,792 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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() {
_transferOwnership(_msgSender... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1210,
1416
]
} | 8,793 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | 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() {
_transferOwnership(_msgSender... | _transferOwnership | function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1571,
1767
]
} | 8,794 | ||
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC1155).interfaceId ||
interfaceId == type(IERC1155MetadataURI).interfaceId ||
super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
657,
972
]
} | 8,795 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | uri | function uri(uint256 tokenId) public view virtual override returns (string memory) {
string memory baseURI = _uri;
return bytes(baseURI).length > 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
: 'uri not set';
}
| /**
* @dev See {IERC1155MetadataURI-uri}.
*
* This implementation returns the same URI for *all* token types. It relies
* on the token type ID substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* Clients calling this function must replace the `\{id\}` substrin... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1378,
1654
]
} | 8,796 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
require(account != address(0), "ERC1155: balance query for the zero address");
return _balances[id][account];
}
| /**
* @dev See {IERC1155-balanceOf}.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
1804,
2040
]
} | 8,797 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOfBatch | function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
public
view
virtual
override
returns (uint256[] memory)
{
require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
uint256[] memory batchBalances = new uint256[](accounts.length);
... | /**
* @dev See {IERC1155-balanceOfBatch}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2201,
2730
]
} | 8,798 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC1155-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
2798,
2958
]
} | 8,799 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
return _operatorApprovals[account][operator];
}
| /**
* @dev See {IERC1155-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3025,
3198
]
} | 8,800 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not owner nor approved"
);
_safeTransferFro... | /**
* @dev See {IERC1155-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3265,
3671
]
} | 8,801 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeBatchTransferFrom | function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: transfer caller is not owner nor appro... | /**
* @dev See {IERC1155-safeBatchTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
3743,
4190
]
} | 8,802 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _safeTransferFrom | function _safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: transfer to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, from, to, _asSingleton... | /**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implemen... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
4649,
5474
]
} | 8,803 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _safeBatchTransferFrom | function _safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0), "ERC1155: transfer to the zer... | /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
5827,
6906
]
} | 8,804 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _setURI | function _setURI(string memory newuri) internal virtual {
_uri = newuri;
}
| /**
* @dev Sets a new URI for all token types, by relying on the token type ID
* substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* By this mechanism, any occurrence of the `\{id\}` substring in either the
* URI or any of the amounts in the JSON file at said U... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
7745,
7838
]
} | 8,805 |
SpaceLadiesDao | SpaceLadiesDao.sol | 0xbbc95ec045193c0ab7e3a549b296e66048350cc2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
using Address for address;
using Strings for uint256;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
... | /**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _mint | function _mint(
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(... | /**
* @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://84e93e5764a57e0919fa584a5800574f4946763ffc2cacdecf9f69a7713b5ab3 | {
"func_code_index": [
8219,
8793
]
} | 8,806 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.