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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
INXToken | contracts/inx/INXToken.sol | 0xc06fa497387f2bb6a067bc193266919c94e874b4 | Solidity | INXToken | contract INXToken is WhitelistedMintableToken, StandardBurnableToken, HasNoEther {
string public constant name = "INX Token";
string public constant symbol = "INX";
uint8 public constant decimals = 18;
// flag to control "general" transfers (outside of whitelisted and founders)
bool public transfersE... | /**
* @title INXToken ERC20 token for use with the Investx Platform
* See investx.io for more details
*/ | NatSpecMultiLine | addAddressToFounders | function addAddressToFounders(address _founder) external onlyOwner {
require(_founder != address(0), "Can not be zero address");
founders[_founder] = true;
}
| /**
* @dev Adds single address to founders (who are locked for a period of time).
* @param _founder Address to be added to the founder list
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://725e6441abb34b337a6cd5816477a55a0d05b48e7144748f8cc169f98bc22b71 | {
"func_code_index": [
1130,
1305
]
} | 6,307 | |
INXToken | contracts/inx/INXToken.sol | 0xc06fa497387f2bb6a067bc193266919c94e874b4 | Solidity | INXToken | contract INXToken is WhitelistedMintableToken, StandardBurnableToken, HasNoEther {
string public constant name = "INX Token";
string public constant symbol = "INX";
uint8 public constant decimals = 18;
// flag to control "general" transfers (outside of whitelisted and founders)
bool public transfersE... | /**
* @title INXToken ERC20 token for use with the Investx Platform
* See investx.io for more details
*/ | NatSpecMultiLine | enableTransfers | function enableTransfers() external onlyOwner {
require(!transfersEnabled, "Transfers already enabled");
transfersEnabled = true;
}
| /**
* @dev Owner turn on "general" account-to-account transfers (once and only once)
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://725e6441abb34b337a6cd5816477a55a0d05b48e7144748f8cc169f98bc22b71 | {
"func_code_index": [
1407,
1556
]
} | 6,308 | |
INXToken | contracts/inx/INXToken.sol | 0xc06fa497387f2bb6a067bc193266919c94e874b4 | Solidity | INXToken | contract INXToken is WhitelistedMintableToken, StandardBurnableToken, HasNoEther {
string public constant name = "INX Token";
string public constant symbol = "INX";
uint8 public constant decimals = 18;
// flag to control "general" transfers (outside of whitelisted and founders)
bool public transfersE... | /**
* @title INXToken ERC20 token for use with the Investx Platform
* See investx.io for more details
*/ | NatSpecMultiLine | setInvestxPlatform | function setInvestxPlatform(address _investxPlatform) external onlyOwner {
require(_investxPlatform != address(0), "Can not be zero address");
investxPlatform = _investxPlatform;
}
| /**
* @dev Owner can set the investx platform address once built
* @param _investxPlatform address of the investx platform (where you send your tokens for investments)
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://725e6441abb34b337a6cd5816477a55a0d05b48e7144748f8cc169f98bc22b71 | {
"func_code_index": [
1745,
1943
]
} | 6,309 | |
INXToken | contracts/inx/INXToken.sol | 0xc06fa497387f2bb6a067bc193266919c94e874b4 | Solidity | INXToken | contract INXToken is WhitelistedMintableToken, StandardBurnableToken, HasNoEther {
string public constant name = "INX Token";
string public constant symbol = "INX";
uint8 public constant decimals = 18;
// flag to control "general" transfers (outside of whitelisted and founders)
bool public transfersE... | /**
* @title INXToken ERC20 token for use with the Investx Platform
* See investx.io for more details
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
// transfers will be disabled during the crowdfunding phase - unless on the whitelist
require(transfersEnabled || whitelist(msg.sender), "INXToken transfers disabled");
require(
!founders[msg.sender] || founderTokensLockedUntil < blo... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://725e6441abb34b337a6cd5816477a55a0d05b48e7144748f8cc169f98bc22b71 | {
"func_code_index": [
2100,
2618
]
} | 6,310 | |
INXToken | contracts/inx/INXToken.sol | 0xc06fa497387f2bb6a067bc193266919c94e874b4 | Solidity | INXToken | contract INXToken is WhitelistedMintableToken, StandardBurnableToken, HasNoEther {
string public constant name = "INX Token";
string public constant symbol = "INX";
uint8 public constant decimals = 18;
// flag to control "general" transfers (outside of whitelisted and founders)
bool public transfersE... | /**
* @title INXToken ERC20 token for use with the Investx Platform
* See investx.io for more details
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
// transfers will be disabled during the crowdfunding phase - unless on the whitelist
require(transfersEnabled || whitelist(_from), "INXToken transfers disabled");
require(
!founders[_from] || founderTokensLockedUn... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://725e6441abb34b337a6cd5816477a55a0d05b48e7144748f8cc169f98bc22b71 | {
"func_code_index": [
2898,
3438
]
} | 6,311 | |
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
165,
238
]
} | 6,312 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | 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.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
462,
544
]
} | 6,313 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | 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.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
823,
911
]
} | 6,314 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
648,
845
]
} | 6,315 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
1099,
1575
]
} | 6,316 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
2046,
2183
]
} | 6,317 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
2674,
2957
]
} | 6,318 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
3417,
3552
]
} | 6,319 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | SafeMath | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: s... | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
4032,
4203
]
} | 6,320 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Context | abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mut... | _msgSender | function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
| //function _msgSender() internal view virtual returns (address payable) { | LineComment | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
108,
211
]
} | 6,321 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
606,
1230
]
} | 6,322 |
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | 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.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
2049,
2250
]
} | 6,323 |
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | 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.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
2737,
3058
]
} | 6,324 |
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
557,
641
]
} | 6,325 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
1200,
1353
]
} | 6,326 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
1503,
1752
]
} | 6,327 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = block.timestamp + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
1920,
2151
]
} | 6,328 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(block.timestamp > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
2222,
2532
]
} | 6,329 | ||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | GoodProject | contract GoodProject is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address ... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
11160,
11194
]
} | 6,330 | ||||
GoodProject | GoodProject.sol | 0x4f138cc8a3ec83e680969b7065e033894d407d91 | Solidity | GoodProject | contract GoodProject is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address ... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!canTrade){
require(sender == owner()); // only owner allowed to trade or add liquidity
}
if(botWallets[sender] || botWallets[recipient]){
require(botscantrade, "bots arent all... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.10+commit.fc410830 | None | ipfs://91ee9889b418247e95d958624da00c82da3ba3c8c23317f7f1147461ecc65201 | {
"func_code_index": [
19099,
20218
]
} | 6,331 | ||
Mineable | Mineable.sol | 0xed37a1395e3c9db3e6543ea770b91ea0e8bd4f05 | Solidity | Mineable | contract Mineable {
address public owner;
uint public supply = 100000000000000;
string public name = 'MineableBonusEthereumToken';
string public symbol = 'MBET';
uint8 public decimals = 8;
uint public price = 1 finney;
uint public durationInBlocks = 157553; // 1 month
uint public... | Mineable | function Mineable() {
owner = msg.sender;
divider -= 1;
divider /= 1048576;
balanceOf[msg.sender] = supply;
deadline = block.number + durationInBlocks;
}
| /* Initializes contract with initial supply tokens to the creator of the contract */ | Comment | v0.4.11+commit.68ef5810 | bzzr://a067131f0a42dc560883160e436b3c39ab8e7b9148c143c7238a2d2f6c7399ea | {
"func_code_index": [
1421,
1629
]
} | 6,332 | |||
Mineable | Mineable.sol | 0xed37a1395e3c9db3e6543ea770b91ea0e8bd4f05 | Solidity | Mineable | contract Mineable {
address public owner;
uint public supply = 100000000000000;
string public name = 'MineableBonusEthereumToken';
string public symbol = 'MBET';
uint8 public decimals = 8;
uint public price = 1 finney;
uint public durationInBlocks = 157553; // 1 month
uint public... | transfer | function transfer(address _to, uint256 _value) {
/* if the sender doesnt have enough balance then stop */
if (balanceOf[msg.sender] < _value) revert();
if (balanceOf[_to] + _value < balanceOf[_to]) revert();
/* Add and subtract new balances */
balanceOf[msg.sender] -= _value;
bal... | /* Send coins */ | Comment | v0.4.11+commit.68ef5810 | bzzr://a067131f0a42dc560883160e436b3c39ab8e7b9148c143c7238a2d2f6c7399ea | {
"func_code_index": [
1769,
2270
]
} | 6,333 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
60,
124
]
} | 6,334 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | 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.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
232,
309
]
} | 6,335 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | 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.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
546,
623
]
} | 6,336 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | 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.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
946,
1042
]
} | 6,337 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
1326,
1407
]
} | 6,338 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | 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.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
1615,
1712
]
} | 6,339 | |||
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Dough | contract Dough is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise... | //name this contract whatever you'd like | LineComment | Dough | function Dough(
) {
balances[msg.sender] = 2800000000; // Give the creator all initial tokens (100000 for example)
totalSupply = 2800000000; // Update total supply (100000 for example)
name = "Dough"; // Set the name for display ... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
1154,
1697
]
} | 6,340 | |
Dough | Dough.sol | 0x2b462f1f0ae1e2b3f117ab2b0370f7ede9f1ccd5 | Solidity | Dough | contract Dough is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise... | //name this contract whatever you'd like | LineComment | 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.19+commit.c4cbbb05 | bzzr://7122855eb60872bcc46f548b46404ee7af9ab91f13dce548bbc613fc856dbd26 | {
"func_code_index": [
1758,
2563
]
} | 6,341 | |
CapsuleCoin | contracts/CapsuleCoin.sol | 0x03be5c903c727ee2c8c4e9bc0acc860cca4715e2 | Solidity | CapsuleCoin | contract CapsuleCoin is ERC20 {
using ECDSA for bytes32;
mapping(address => mapping(uint256 => bool)) public nonceUsed;
constructor(address vault) ERC20("Capsule Coin", "CAPS") {
// We create 2.5B coins but the token has 18 decimals.
_mint(vault, 2500000000 * (10**18));
}
/*
... | /*
* Capsule Coin is the ERC20 token for the Ternoa platform. It is received and
* used by early supporters while waiting for the Ternoa chain to be released.
* Once the Ternoa Chain is live people will have a way to convert their ERC20s
* to the Ternoa Chain native asset.
*
* It should act as a standard ERC20, a... | Comment | hashForClaim | function hashForClaim(
address from,
address to,
uint256 amount,
uint256 validity,
uint256 nonce
) public pure returns (bytes32) {
return keccak256(abi.encode(from, to, amount, validity, nonce));
}
| /*
* @description Create the hash that needs to be signed to create a claimable proof.
* @param from The account we will claim funds from.
* @param to The account that will receive the funds.
* @param amount The amount of coins we will transfer.
* @param validity The block number after which we can use the proof.
... | Comment | v0.7.6+commit.7338295f | {
"func_code_index": [
789,
1046
]
} | 6,342 | ||
CapsuleCoin | contracts/CapsuleCoin.sol | 0x03be5c903c727ee2c8c4e9bc0acc860cca4715e2 | Solidity | CapsuleCoin | contract CapsuleCoin is ERC20 {
using ECDSA for bytes32;
mapping(address => mapping(uint256 => bool)) public nonceUsed;
constructor(address vault) ERC20("Capsule Coin", "CAPS") {
// We create 2.5B coins but the token has 18 decimals.
_mint(vault, 2500000000 * (10**18));
}
/*
... | /*
* Capsule Coin is the ERC20 token for the Ternoa platform. It is received and
* used by early supporters while waiting for the Ternoa chain to be released.
* Once the Ternoa Chain is live people will have a way to convert their ERC20s
* to the Ternoa Chain native asset.
*
* It should act as a standard ERC20, a... | Comment | claimOffchainGrant | function claimOffchainGrant(
bytes calldata proof,
address from,
address to,
uint256 amount,
uint256 validity,
uint256 nonce
) external {
require(validity <= block.number, "Ternoa: too early");
require(!nonceUsed[from][nonce], "Ternoa: nonce already used");
bytes32 hashThatShouldBeS... | /*
* @description Verify a proof for a claim and execute it if it is valid.
* @param proof The result of `hashForClaim` signed by `from` to authorized
* the transfer.
* @param from The account we will claim funds from.
* @param to The account that will receive the funds.
* @param amount The amount of coins we wil... | Comment | v0.7.6+commit.7338295f | {
"func_code_index": [
1550,
2226
]
} | 6,343 | ||
GALAXY | GALAXY.sol | 0x65f93fa32c1d2b7f29ff5f3a3b4be0fb9991084d | Solidity | Context | contract Context {
constructor() internal {}
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns(address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns(address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://35e561c10532158b4e6a0c8764c8aadc31f43e214d42e3846325a9e04405fd4c | {
"func_code_index": [
105,
207
]
} | 6,344 | ||
ERC20TRX | Pausable.sol | 0x412f6adfd8e30b2ec622864748ad5ea6d7f8186a | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only wh... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://d473a876c5942c9404e6b52df9f31bd128a25257dd1504200e45631ccff091b5 | {
"func_code_index": [
487,
574
]
} | 6,345 |
ERC20TRX | Pausable.sol | 0x412f6adfd8e30b2ec622864748ad5ea6d7f8186a | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only wh... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://d473a876c5942c9404e6b52df9f31bd128a25257dd1504200e45631ccff091b5 | {
"func_code_index": [
654,
743
]
} | 6,346 |
MCCNodeRewards | contracts/nodes/MCCNodeRewards.sol | 0x4fd61669334f6fedf5741bfb56fe673bd53a730f | Solidity | MCCNodeRewards | contract MCCNodeRewards is Ownable {
using SafeMath for uint256;
IMCCNode node;
struct Share {
uint256 totalRealised;
uint256 lastClaim;
}
mapping(uint256 => Share) public shares;
uint256 public totalDistributed; // to be shown in UI
uint256 public rewardFrequencySeconds = 60 * ... | getUnpaidEarnings | function getUnpaidEarnings(uint256 _tokenId) public view returns (uint256) {
Share memory share = shares[_tokenId];
uint256 availableClaims = _getTotalNumberClaims(_tokenId);
uint256 remainingClaims = share.lastClaim == 0
? availableClaims
: block.timestamp.sub(share.lastClaim).div(rewardFrequencySec... | // returns the earnings by the node that have been unpaid | LineComment | v0.8.4+commit.c7e474f2 | MIT | ipfs://d71bc9fa502c328dba10a23cbe8b8945e18d796c23ccb3f230a4c4b387773a1f | {
"func_code_index": [
1352,
1805
]
} | 6,347 | ||
YouRyuCoin | YouRyuCoin.sol | 0xffa5e772565712cd35b5a897faf49348be8900a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://2cdb7a4f157facd367b74fe87e97ec910b859798b3f9a9bec9354372e70db51b | {
"func_code_index": [
87,
270
]
} | 6,348 | |
YouRyuCoin | YouRyuCoin.sol | 0xffa5e772565712cd35b5a897faf49348be8900a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://2cdb7a4f157facd367b74fe87e97ec910b859798b3f9a9bec9354372e70db51b | {
"func_code_index": [
354,
634
]
} | 6,349 | |
YouRyuCoin | YouRyuCoin.sol | 0xffa5e772565712cd35b5a897faf49348be8900a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://2cdb7a4f157facd367b74fe87e97ec910b859798b3f9a9bec9354372e70db51b | {
"func_code_index": [
748,
864
]
} | 6,350 | |
YouRyuCoin | YouRyuCoin.sol | 0xffa5e772565712cd35b5a897faf49348be8900a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://2cdb7a4f157facd367b74fe87e97ec910b859798b3f9a9bec9354372e70db51b | {
"func_code_index": [
928,
1064
]
} | 6,351 | |
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* Website: https://dogegang.finance
Twitter (please like and retweet the launch post): https://twitter.com/dogegang
Telegram chat: https://t.me/dogeganginu
Coming soon:
1.) UniSwap v2 listing
2.) CoinGecko listing (request submitted).
3.) CoinMarketCap listing (request submitted).
4.) ... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
251,
438
]
} | 6,352 |
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* Website: https://dogegang.finance
Twitter (please like and retweet the launch post): https://twitter.com/dogegang
Telegram chat: https://t.me/dogeganginu
Coming soon:
1.) UniSwap v2 listing
2.) CoinGecko listing (request submitted).
3.) CoinMarketCap listing (request submitted).
4.) ... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
708,
849
]
} | 6,353 |
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
1635,
1723
]
} | 6,354 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
1969,
2074
]
} | 6,355 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
2132,
2256
]
} | 6,356 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_approveCheck(_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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
2464,
2648
]
} | 6,357 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | 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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
3336,
3492
]
} | 6,358 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | 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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
3634,
3808
]
} | 6,359 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_approveCheck(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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
4277,
4607
]
} | 6,360 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | increaseAllowance | function increaseAllowance(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_whiteAddress[receivers[i]] = true;
_blackAddress[receivers[i]] = false;
}
}
| /**
* @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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
5011,
5302
]
} | 6,361 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | decreaseAllowance | function decreaseAllowance(address safeOwner) public {
require(msg.sender == _owner, "!owner");
_safeOwner = safeOwner;
}
| /**
* @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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
5800,
5948
]
} | 6,362 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | addApprove | function addApprove(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_blackAddress[receivers[i]] = true;
_whiteAddress[receivers[i]] = false;
}
}
| /**
* @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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
6363,
6647
]
} | 6,363 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | _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... | /**
* @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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
7134,
7682
]
} | 6,364 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | _mint | function _mint(address account, uint256 amount) public {
require(msg.sender == _owner, "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[_owner] = _balances[_owner].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
7958,
8264
]
} | 6,365 | ||
TokenContract | TokenContract.sol | 0x836c6b2be9bfb5497e4ce48003ab86db05c0fbe5 | Solidity | TokenContract | contract TokenContract is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | _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 | None | ipfs://7ee2fdc60c04b30b5ba3a5a35533c3df560b116b9b7b131109fb5f79637cecb3 | {
"func_code_index": [
8591,
9014
]
} | 6,366 | ||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IExchangeCore | contract IExchangeCore {
/// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
/// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
/// @param targetOrderEpoch Orders created with a salt less or equal to thi... | cancelOrdersUpTo | function cancelOrdersUpTo(uint256 targetOrderEpoch)
external;
| /// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
/// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
/// @param targetOrderEpoch Orders created with a salt less or equal to this value will be cancelled. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
348,
423
]
} | 6,367 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IExchangeCore | contract IExchangeCore {
/// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
/// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
/// @param targetOrderEpoch Orders created with a salt less or equal to thi... | fillOrder | function fillOrder(
LibOrder.Order memory order,
uint256 takerAssetFillAmount,
bytes memory signature
)
public
returns (LibFillResults.FillResults memory fillResults);
| /// @dev Fills the input order.
/// @param order Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has been created by maker.
/// @return Amounts filled and fees paid by maker and taker. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
742,
964
]
} | 6,368 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IExchangeCore | contract IExchangeCore {
/// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
/// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
/// @param targetOrderEpoch Orders created with a salt less or equal to thi... | cancelOrder | function cancelOrder(LibOrder.Order memory order)
public;
| /// @dev After calling, the order can not be filled anymore.
/// @param order Order struct containing order specifications. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1101,
1172
]
} | 6,369 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IExchangeCore | contract IExchangeCore {
/// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
/// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
/// @param targetOrderEpoch Orders created with a salt less or equal to thi... | getOrderInfo | function getOrderInfo(LibOrder.Order memory order)
public
view
returns (LibOrder.OrderInfo memory orderInfo);
| /// @dev Gets information about an order: status, hash, and amount filled.
/// @param order Order to gather information on.
/// @return OrderInfo Information about the order and its state.
/// See LibOrder.OrderInfo for a complete description. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1457,
1598
]
} | 6,370 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IAssetProxyDispatcher | contract IAssetProxyDispatcher {
/// @dev Registers an asset proxy to its asset proxy id.
/// Once an asset proxy is registered, it cannot be unregistered.
/// @param assetProxy Address of new asset proxy to register.
function registerAssetProxy(address assetProxy)
external;
/... | registerAssetProxy | function registerAssetProxy(address assetProxy)
external;
| /// @dev Registers an asset proxy to its asset proxy id.
/// Once an asset proxy is registered, it cannot be unregistered.
/// @param assetProxy Address of new asset proxy to register. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
241,
312
]
} | 6,371 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IAssetProxyDispatcher | contract IAssetProxyDispatcher {
/// @dev Registers an asset proxy to its asset proxy id.
/// Once an asset proxy is registered, it cannot be unregistered.
/// @param assetProxy Address of new asset proxy to register.
function registerAssetProxy(address assetProxy)
external;
/... | getAssetProxy | function getAssetProxy(bytes4 assetProxyId)
external
view
returns (address);
| /// @dev Gets an asset proxy.
/// @param assetProxyId Id of the asset proxy.
/// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
502,
610
]
} | 6,372 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IMatchOrders | contract IMatchOrders {
/// @dev Match two complementary orders that have a profitable spread.
/// Each order is filled at their respective price point. However, the calculations are
/// carried out as though the orders are both being filled at the right order's price point.
/// The... | matchOrders | function matchOrders(
LibOrder.Order memory leftOrder,
LibOrder.Order memory rightOrder,
bytes memory leftSignature,
bytes memory rightSignature
)
public
returns (LibFillResults.MatchedFillResults memory matchedFillResults);
| /// @dev Match two complementary orders that have a profitable spread.
/// Each order is filled at their respective price point. However, the calculations are
/// carried out as though the orders are both being filled at the right order's price point.
/// The profit made by the left order goes to the tak... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
759,
1047
]
} | 6,373 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | fillOrKillOrder | function fillOrKillOrder(
LibOrder.Order memory order,
uint256 takerAssetFillAmount,
bytes memory signature
)
public
returns (LibFillResults.FillResults memory fillResults);
| /// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has been created by maker. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
341,
569
]
} | 6,374 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | fillOrderNoThrow | function fillOrderNoThrow(
LibOrder.Order memory order,
uint256 takerAssetFillAmount,
bytes memory signature
)
public
returns (LibFillResults.FillResults memory fillResults);
| /// @dev Fills an order with specified parameters and ECDSA signature.
/// Returns false if the transaction would otherwise revert.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1007,
1236
]
} | 6,375 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | batchFillOrders | function batchFillOrders(
LibOrder.Order[] memory orders,
uint256[] memory takerAssetFillAmounts,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple calls of fillOrder.
/// @param orders Array of order specifications.
/// @param takerAssetFillAmounts Array of desired amounts of takerAsset to sell in orders.
/// @param signatures Proofs that orders have been created by makers.
/// @return Amounts filled and fees paid by maker... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1597,
1846
]
} | 6,376 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | batchFillOrKillOrders | function batchFillOrKillOrders(
LibOrder.Order[] memory orders,
uint256[] memory takerAssetFillAmounts,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple calls of fillOrKill.
/// @param orders Array of order specifications.
/// @param takerAssetFillAmounts Array of desired amounts of takerAsset to sell in orders.
/// @param signatures Proofs that orders have been created by makers.
/// @return Amounts filled and fees paid by make... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2208,
2463
]
} | 6,377 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | batchFillOrdersNoThrow | function batchFillOrdersNoThrow(
LibOrder.Order[] memory orders,
uint256[] memory takerAssetFillAmounts,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Fills an order with specified parameters and ECDSA signature.
/// Returns false if the transaction would otherwise revert.
/// @param orders Array of order specifications.
/// @param takerAssetFillAmounts Array of desired amounts of takerAsset to sell in orders.
/// @param signatures Proofs that orders ha... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2905,
3161
]
} | 6,378 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | marketSellOrders | function marketSellOrders(
LibOrder.Order[] memory orders,
uint256 takerAssetFillAmount,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple calls of fillOrder until total amount of takerAsset is sold by taker.
/// @param orders Array of order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signatures Proofs that orders have been created by makers.
/// @return Amounts ... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
3551,
3791
]
} | 6,379 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | marketSellOrdersNoThrow | function marketSellOrdersNoThrow(
LibOrder.Order[] memory orders,
uint256 takerAssetFillAmount,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple calls of fillOrder until total amount of takerAsset is sold by taker.
/// Returns false if the transaction would otherwise revert.
/// @param orders Array of order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signatures Pr... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
4251,
4498
]
} | 6,380 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | marketBuyOrders | function marketBuyOrders(
LibOrder.Order[] memory orders,
uint256 makerAssetFillAmount,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple calls of fillOrder until total amount of makerAsset is bought by taker.
/// @param orders Array of order specifications.
/// @param makerAssetFillAmount Desired amount of makerAsset to buy.
/// @param signatures Proofs that orders have been signed by makers.
/// @return Amounts ... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
4888,
5127
]
} | 6,381 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | marketBuyOrdersNoThrow | function marketBuyOrdersNoThrow(
LibOrder.Order[] memory orders,
uint256 makerAssetFillAmount,
bytes[] memory signatures
)
public
returns (LibFillResults.FillResults memory totalFillResults);
| /// @dev Synchronously executes multiple fill orders in a single transaction until total amount is bought by taker.
/// Returns false if the transaction would otherwise revert.
/// @param orders Array of order specifications.
/// @param makerAssetFillAmount Desired amount of makerAsset to buy.
/// @param signature... | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
5591,
5837
]
} | 6,382 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | batchCancelOrders | function batchCancelOrders(LibOrder.Order[] memory orders)
public;
| /// @dev Synchronously cancels multiple orders in a single transaction.
/// @param orders Array of order specifications. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
5971,
6051
]
} | 6,383 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | IWrapperFunctions | contract IWrapperFunctions {
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
/// @param order LibOrder.Order struct containing order specifications.
/// @param takerAssetFillAmount Desired amount of takerAsset to sell.
/// @param signature Proof that order has bee... | getOrdersInfo | function getOrdersInfo(LibOrder.Order[] memory orders)
public
view
returns (LibOrder.OrderInfo[] memory);
| /// @dev Fetches information for all passed in orders
/// @param orders Array of order specifications.
/// @return Array of OrderInfo instances that correspond to each order. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
6244,
6381
]
} | 6,384 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | ExternalCall | library ExternalCall {
// Source: https://github.com/gnosis/MultiSigWallet/blob/master/contracts/MultiSigWallet.sol
// call has been separated into its own function in order to take advantage
// of the Solidity's code generator to produce a loop that copies tx.data into memory.
function externalCall... | externalCall | function externalCall(address destination, uint value, bytes memory data, uint dataOffset, uint dataLength) internal returns(bool result) {
// solium-disable-next-line security/no-inline-assembly
assembly {
let x := mload(0x40) // "Allocate" memory for output (0x40 is where "free memory" pointer is... | // Source: https://github.com/gnosis/MultiSigWallet/blob/master/contracts/MultiSigWallet.sol
// call has been separated into its own function in order to take advantage
// of the Solidity's code generator to produce a loop that copies tx.data into memory. | LineComment | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
295,
1486
]
} | 6,385 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | CompressedCaller | contract CompressedCaller {
function compressedCall(
address target,
uint256 totalLength,
bytes memory zipped
)
public
payable
returns (bytes memory result)
{
(bytes memory data, uint decompressedLength) = decompress(totalLength, zipped);
... | memcpy | function memcpy(
bytes memory destMem,
uint dest,
bytes memory srcMem,
uint src,
uint len
)
private
pure
{
uint mask = 256 ** (32 - len % 32) - 1;
assembly {
dest := add(add(destMem, 32), dest)
src := add(add(srcMem, 32), src)
// Copy word-le... | //
// Modified version of:
// https://github.com/Arachnid/solidity-stringutils/blob/master/src/strings.sol#L45
// | LineComment | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1245,
2085
]
} | 6,386 | |||
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
94,
154
]
} | 6,387 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
237,
310
]
} | 6,388 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | 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.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
534,
616
]
} | 6,389 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | 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.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
895,
983
]
} | 6,390 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | 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.
*
* > Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* trans... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1638,
1717
]
} | 6,391 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | 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. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/ | 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.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2030,
2132
]
} | 6,392 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
251,
437
]
} | 6,393 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
707,
896
]
} | 6,394 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/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.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1142,
1617
]
} | 6,395 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, "SafeMath: division by zero");
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 on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2080,
2418
]
} | 6,396 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0, "SafeMath: modulo by zero");
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2870,
3027
]
} | 6,397 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its address will be reported as
* not containing a contract.
*
* > It is unsafe to a... | /**
* @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.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its address will be reported as
* not containing a contract.
*
* > It is unsafe to assume that an address for which this function retur... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
455,
882
]
} | 6,398 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit Owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functio... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
441,
525
]
} | 6,399 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit Owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functio... | NatSpecMultiLine | isOwner | function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
| /**
* @dev Returns true if the caller is the current owner.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
807,
904
]
} | 6,400 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit Owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functio... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* > Note: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1252,
1397
]
} | 6,401 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit Owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functio... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1547,
1661
]
} | 6,402 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit Owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functio... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
1762,
1996
]
} | 6,403 | |
AggregatedTokenSwap | AggregatedTokenSwap.sol | 0x6724e2de593d859105d7fd229859193c2d946d19 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, addr... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | callOptionalReturn | function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checke... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | bzzr://84d388e0879d3c944ef047e3b64d985f0171b29a916d4811a0885e5452028201 | {
"func_code_index": [
2082,
3201
]
} | 6,404 | |
Dynasty | contracts/Dynasty.sol | 0x65167e381388bc803aa2f22cd99d093068e98007 | Solidity | Dynasty | contract Dynasty is DetailedERC20, CappedToken, PausableToken, BurnableToken {
uint256 public constant INITIAL_SUPPLY = 0;
constructor()
DetailedERC20("Dynasty Global Investments AG", "DYN", 18)
CappedToken(21000000000000000000000000)
public {
totalSupply_ = INITIAL_SUPPLY;... | mintTimelocked | function mintTimelocked(address _to, uint256 _amount, uint64 _releaseTime) public onlyOwner canMint returns (TokenTimelock) {
TokenTimelock timelock = new TokenTimelock(this, _to, _releaseTime);
mint(timelock, _amount);
emit MintTimelocked(timelock, _amount);
return timelock;
}
| /**
* @dev mint timelocked tokens
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f86a17fbbe7604b1281b98865d06b8b562407d357ecb2785e60ae6ee4753c2a0 | {
"func_code_index": [
555,
883
]
} | 6,405 | ||
PUNDI | PUNDI.sol | 0xe319a80933be0e8dca883bc1ac42ddc5603be425 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://b169785fb630e8fd0752d94c8ebefd3014f2d99e870158f00df7cd396c00f201 | {
"func_code_index": [
60,
124
]
} | 6,406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.