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
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1539, 1652 ] }
20,000
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1710, 1842 ] }
20,001
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 2050, 2230 ] }
20,002
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 2288, 2444 ] }
20,003
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
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.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 2586, 2760 ] }
20,004
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true;...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 2988, 3348 ] }
20,005
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 3674, 3897 ] }
20,006
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 4395, 4669 ] }
20,007
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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); ...
/** * @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. * */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 4966, 5544 ] }
20,008
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 5826, 6209 ] }
20,009
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 6537, 6960 ] }
20,010
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 7393, 7778 ] }
20,011
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 8376, 8506 ] }
20,012
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 259, 445 ] }
20,013
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 723, 864 ] }
20,014
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1162, 1359 ] }
20,015
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1613, 2089 ] }
20,016
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 2560, 2697 ] }
20,017
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 3188, 3471 ] }
20,018
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 3931, 4066 ] }
20,019
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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 ...
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.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 4546, 4717 ] }
20,020
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
mul
function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; }
/** * @dev Multiplies two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 234, 542 ] }
20,021
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
div
function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; }
/** * @dev Division of two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 632, 896 ] }
20,022
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
sub
function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; }
/** * @dev Subtracts two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 984, 1165 ] }
20,023
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
add
function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; }
/** * @dev Adds two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1248, 1429 ] }
20,024
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
abs
function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; }
/** * @dev Converts to absolute value, and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1514, 1648 ] }
20,025
NFTRedZone
contracts\NFTRedZone.sol
0xa96602e7f43b8b01d3a746bf2e178ef6dde7880d
Solidity
NFTRedZone
contract NFTRedZone is ERC721, Ownable { using SafeMath for uint256; struct Whitelist { bool approved; uint256 minted; } uint256 constant public TOTAL_TOKEN_TO_MINT = 7216; uint256 constant public TOTAL_USER_ELIGIBLE_FOR_REFUND = 1400; uint256 constant public WHITELIS...
mintNFTRZ
function mintNFTRZ(uint256 _howMany) beforeMint(_howMany) external payable { require(isSaleActive, "NFTRedZone: Sale is not active"); for (uint256 i = 0; i < _howMany; i++) { _mintNFTRZ(_msgSender()); } }
////////////////////
NatSpecSingleLine
v0.7.6+commit.7338295f
None
ipfs://f2b10f79e24ddadaa523027d6c25b4c492dc40d61a24c8fd439dbdf1200cce62
{ "func_code_index": [ 1418, 1645 ] }
20,026
NFTRedZone
contracts\NFTRedZone.sol
0xa96602e7f43b8b01d3a746bf2e178ef6dde7880d
Solidity
NFTRedZone
contract NFTRedZone is ERC721, Ownable { using SafeMath for uint256; struct Whitelist { bool approved; uint256 minted; } uint256 constant public TOTAL_TOKEN_TO_MINT = 7216; uint256 constant public TOTAL_USER_ELIGIBLE_FOR_REFUND = 1400; uint256 constant public WHITELIS...
exists
function exists(uint256 _tokenId) external view returns (bool) { return _exists(_tokenId); }
///////////////////
NatSpecSingleLine
v0.7.6+commit.7338295f
None
ipfs://f2b10f79e24ddadaa523027d6c25b4c492dc40d61a24c8fd439dbdf1200cce62
{ "func_code_index": [ 3957, 4068 ] }
20,027
NFTRedZone
contracts\NFTRedZone.sol
0xa96602e7f43b8b01d3a746bf2e178ef6dde7880d
Solidity
NFTRedZone
contract NFTRedZone is ERC721, Ownable { using SafeMath for uint256; struct Whitelist { bool approved; uint256 minted; } uint256 constant public TOTAL_TOKEN_TO_MINT = 7216; uint256 constant public TOTAL_USER_ELIGIBLE_FOR_REFUND = 1400; uint256 constant public WHITELIS...
random
function random( uint256 from, uint256 to, uint256 salty ) public view returns (uint256) { uint256 seed = uint256( keccak256( abi.encodePacked( block.timestamp + block.difficulty + ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (block.timestamp)) + block.gaslim...
//random number
LineComment
v0.7.6+commit.7338295f
None
ipfs://f2b10f79e24ddadaa523027d6c25b4c492dc40d61a24c8fd439dbdf1200cce62
{ "func_code_index": [ 5188, 5712 ] }
20,028
NFTRedZone
contracts\NFTRedZone.sol
0xa96602e7f43b8b01d3a746bf2e178ef6dde7880d
Solidity
NFTRedZone
contract NFTRedZone is ERC721, Ownable { using SafeMath for uint256; struct Whitelist { bool approved; uint256 minted; } uint256 constant public TOTAL_TOKEN_TO_MINT = 7216; uint256 constant public TOTAL_USER_ELIGIBLE_FOR_REFUND = 1400; uint256 constant public WHITELIS...
addToWhitelistMultiple
function addToWhitelistMultiple(address[] memory _addresses) external onlyOwner { for(uint256 i = 0; i < _addresses.length; i++) { addToWhitelist(_addresses[i]); } }
/////////////
NatSpecSingleLine
v0.7.6+commit.7338295f
None
ipfs://f2b10f79e24ddadaa523027d6c25b4c492dc40d61a24c8fd439dbdf1200cce62
{ "func_code_index": [ 5774, 5980 ] }
20,029
NEONToken
Pausable.sol
0x23c4464ed220c07fb90803ea3617dc5adc5428f7
Solidity
Pausable
contract Pausable is Context, Ownable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initia...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
paused
function paused() public view returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.7.0+commit.9e61f92b
MIT
ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144
{ "func_code_index": [ 508, 588 ] }
20,030
NEONToken
Pausable.sol
0x23c4464ed220c07fb90803ea3617dc5adc5428f7
Solidity
Pausable
contract Pausable is Context, Ownable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initia...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
pause
function pause() public whenNotPaused onlyGovernance { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.7.0+commit.9e61f92b
MIT
ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144
{ "func_code_index": [ 1263, 1386 ] }
20,031
NEONToken
Pausable.sol
0x23c4464ed220c07fb90803ea3617dc5adc5428f7
Solidity
Pausable
contract Pausable is Context, Ownable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initia...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
unpause
function unpause() public whenPaused onlyGovernance { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.7.0+commit.9e61f92b
MIT
ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144
{ "func_code_index": [ 1514, 1639 ] }
20,032
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
NamiCrowdSale
function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigWallet = _namiMultiSigWallet; namiPresale = _namiPresale; // balanceOf[_escrow] += 100000000000000000000000000; // 100 mil...
/// NAC Broker Presale Token /// @dev Constructor
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 121, 538 ] }
20,033
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > balanceOf[_to])...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2812, 3654 ] }
20,034
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
transferForTeam
function transferForTeam(address _to, uint256 _value) public onlyEscrow { _transfer(msg.sender, _to, _value); }
// Transfer the balance from owner's account to another account // only escrow can send token (to send token private sale)
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 3790, 3934 ] }
20,035
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
transfer
function transfer(address _to, uint256 _value) public onlyTranferable { _transfer(msg.sender, _to, _value); }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4144, 4286 ] }
20,036
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public onlyTranferable returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4568, 4918 ] }
20,037
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
approve
function approve(address _spender, uint256 _value) public onlyTranferable returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 5182, 5389 ] }
20,038
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public onlyTranferable returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); retu...
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 5783, 6166 ] }
20,039
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
changeTransferable
function changeTransferable () public onlyEscrow { TRANSFERABLE = !TRANSFERABLE; }
// allows transfer token
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6199, 6314 ] }
20,040
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
changeEscrow
function changeEscrow(address _escrow) public onlyNamiMultisig { require(_escrow != 0x0); escrow = _escrow; }
// change escrow
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6343, 6494 ] }
20,041
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
changeBinary
function changeBinary(uint _binary) public onlyEscrow { binary = _binary; }
// change binary value
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6529, 6646 ] }
20,042
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
changeBinaryAddress
function changeBinaryAddress(address _binaryAddress) public onlyEscrow { require(_binaryAddress != 0x0); binaryAddress = _binaryAddress; }
// change binary address
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6683, 6872 ] }
20,043
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
getPrice
function getPrice() public view returns (uint price) { if (now < 1517443200) { // presale return 3450; } else if (1517443200 < now && now <= 1518048000) { // 1st week return 2400; } else if (1518048000 < now && now <= 1518652800) { // 2nd week return ...
/* * price in ICO: * first week: 1 ETH = 2400 NAC * second week: 1 ETH = 23000 NAC * 3rd week: 1 ETH = 2200 NAC * 4th week: 1 ETH = 2100 NAC * 5th week: 1 ETH = 2000 NAC * 6th week: 1 ETH = 1900 NAC * 7th week: 1 ETH = 1800 NAC * 8th week: 1 ETH = 1700 nac * time: * 1517443200: Thursday, February...
Comment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 7720, 8822 ] }
20,044
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
burnTokens
function burnTokens(address _owner) public onlyCrowdsaleManager { // Available only during migration phase require(currentPhase == Phase.Migrating); uint tokens = balanceOf[_owner]; require(tokens != 0); balanceOf[_owner] = 0; totalSupply -= tokens; LogBurn(_owner, tokens); ...
/// @dev Returns number of tokens owned by given address. /// @param _owner Address of token owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 9669, 10232 ] }
20,045
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
setPresalePhase
function setPresalePhase(Phase _nextPhase) public onlyEscrow { bool canSwitchPhase = (currentPhase == Phase.Created && _nextPhase == Phase.Running) || (currentPhase == Phase.Running && _nextPhase == Phase.Paused) // switch to migration phase only if crowdsale manager is set ...
/*/ * Administrative functions /*/
Comment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 10289, 11194 ] }
20,046
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
_migrateToken
function _migrateToken(address _from, address _to) internal { PresaleToken presale = PresaleToken(namiPresale); uint256 newToken = presale.balanceOf(_from); require(newToken > 0); // burn old token presale.burnTokens(_from); // add new token to _to balanceOf[_to] = balanceOf[_to...
// internal migrate migration tokens
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 12046, 12564 ] }
20,047
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
migrateToken
function migrateToken(address _from, address _to) public onlyEscrow { _migrateToken(_from, _to); }
// migate token function for Nami Team
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 12611, 12742 ] }
20,048
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
migrateForInvestor
function migrateForInvestor() public { _migrateToken(msg.sender, msg.sender); }
// migrate token for investor
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 12780, 12878 ] }
20,049
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
transferToExchange
function transferToExchange(address _to, uint _value, uint _price) public { uint codeLength; assembly { codeLength := extcodesize(_to) } balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); if (codeLength > 0) ...
/** * @dev Transfer the specified amount of tokens to the specified address. * Invokes the `tokenFallback` function if the recipient is a contract. * The token transfer fails if the recipient is a contract * but does not implement the `tokenFallback` function * or the fallback function to ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 13709, 14298 ] }
20,050
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiCrowdSale
contract NamiCrowdSale { using SafeMath for uint256; /// NAC Broker Presale Token /// @dev Constructor function NamiCrowdSale(address _escrow, address _namiMultiSigWallet, address _namiPresale) public { require(_namiMultiSigWallet != 0x0); escrow = _escrow; namiMultiSigW...
transferToBuyer
function transferToBuyer(address _to, uint _value, address _buyer) public { uint codeLength; assembly { codeLength := extcodesize(_to) } balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); if (codeLength > 0) ...
/** * @dev Transfer the specified amount of tokens to the specified address. * Invokes the `tokenFallback` function if the recipient is a contract. * The token transfer fails if the recipient is a contract * but does not implement the `tokenFallback` function * or the fallback function to ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 14835, 15418 ] }
20,051
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
function() public payable { if (msg.value > 0) Deposit(msg.sender, msg.value); }
/// @dev Fallback function allows to deposit ether.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 1045, 1157 ] }
20,052
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
changeEscrow
function changeEscrow(address _escrow) public onlyNamiMultisig { require(_escrow != 0x0); escrow = _escrow; }
// change escrow
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2607, 2758 ] }
20,053
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
changeTimeInvest
function changeTimeInvest(uint _timeInvest) public onlyEscrow { require(!session.isOpen && _timeInvest < timeOneSession); timeInvestInMinute = _timeInvest; }
/// @dev Change time for investor can invest in one session, can only change at time not in session /// @param _timeInvest time invest in minutes
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2921, 3129 ] }
20,054
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
changeRate
function changeRate(uint _rate) public onlyEscrow { require(100 < _rate && _rate < 200 && !session.isOpen); rate = _rate; }
// 100 < _rate < 200 // price of NAC for investor win = _rate/100 // price of NAC for investor loss = 2 - _rate/100
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 3267, 3441 ] }
20,055
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
withdrawEther
function withdrawEther(uint _amount) public onlyEscrow { require(namiMultiSigWallet != 0x0); // Available at any phase. if (this.balance > 0) { namiMultiSigWallet.transfer(_amount); } }
/// @dev withdraw ether to nami multisignature wallet, only escrow can call /// @param _amount value ether in wei to withdraw
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 3816, 4074 ] }
20,056
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
safeWithdraw
function safeWithdraw(address _withdraw, uint _amount) public onlyEscrow { NamiMultiSigWallet namiWallet = NamiMultiSigWallet(namiMultiSigWallet); if (namiWallet.isOwner(_withdraw)) { _withdraw.transfer(_amount); } }
/// @dev safe withdraw Ether to one of owner of nami multisignature wallet /// @param _withdraw address to withdraw
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4207, 4487 ] }
20,057
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
getInvestors
function getInvestors() public view returns (address[20]) { address[20] memory listInvestor; for (uint i = 0; i < MAX_INVESTOR; i++) { listInvestor[i] = session.investor[i]; } return listInvestor; }
// @dev Returns list of owners. // @return List of owner addresses. // MAX_INVESTOR = 20
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4598, 4887 ] }
20,058
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
resetSession
function resetSession() public onlyEscrow { require(!session.isReset && !session.isOpen); session.priceOpen = 0; session.priceClose = 0; session.isReset = true; session.isOpen = false; session.investOpen = false; session.investorCount = 0; for (uint i = 0; i < MAX_INVE...
// only escrow can call
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 5571, 6089 ] }
20,059
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
openSession
function openSession () public onlyEscrow { require(session.isReset && !session.isOpen); session.isReset = false; // open invest session.investOpen = true; session.timeOpen = now; session.isOpen = true; SessionOpen(now, sessionId); }
/// @dev Open new session, only escrow can call
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6149, 6478 ] }
20,060
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
invest
function invest (bool _choose) public payable { require(msg.value >= 100000000000000000 && session.investOpen); // msg.value >= 0.1 ether require(now < (session.timeOpen + timeInvestInMinute * 1 minutes)); require(session.investorCount < MAX_INVESTOR && session.investedSession[msg.sender] != s...
/// @dev Fuction for investor, minimun ether send is 0.1, one address can call one time in one session /// @param _choose choise of investor, true is call, false is put
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6664, 7374 ] }
20,061
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
closeInvest
function closeInvest (uint _priceOpen) public onlyEscrow { require(_priceOpen != 0 && session.investOpen); require(now > (session.timeOpen + timeInvestInMinute * 1 minutes)); session.investOpen = false; session.priceOpen = _priceOpen; InvestClose(now, _priceOpen, sessionId); }
/// @dev close invest for escrow /// @param _priceOpen price ETH in USD
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 7463, 7819 ] }
20,062
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
getEtherToBuy
function getEtherToBuy (uint _ether, uint _rate, bool _status) public pure returns (uint) { if (_status) { return _ether * _rate / 100; } else { return _ether * (200 - _rate) / 100; } }
/// @dev get amount of ether to buy NAC for investor /// @param _ether amount ether which investor invest /// @param _rate rate between win and loss investor /// @param _status true for investor win and false for investor loss
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 8073, 8353 ] }
20,063
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
BinaryOption
contract BinaryOption { /* * binary option controled by escrow to buy NAC with good price */ // NamiCrowdSale address address public namiCrowdSaleAddr; address public escrow; // namiMultiSigWallet address public namiMultiSigWallet; Session public session; ...
/* * Binary option smart contract------------------------------- */
Comment
closeSession
function closeSession (uint _priceClose) public onlyEscrow { require(_priceClose != 0 && now > (session.timeOpen + timeOneSession * 1 minutes)); require(!session.investOpen && session.isOpen); session.priceClose = _priceClose; bool result = (_priceClose>session.priceOpen)?true:false; ...
/// @dev close session, only escrow can call /// @param _priceClose price of ETH in USD
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 8454, 9884 ] }
20,064
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
ERC223ReceivingContract
contract ERC223ReceivingContract { /** * @dev Standard ERC223 function that will handle incoming token transfers. * * @param _from Token sender address. * @param _value Amount of tokens. * @param _data Transaction metadata. */ function tokenFallback(address _from, uint _value, bytes _data) public re...
/** * @title Contract that will work with ERC223 tokens. */
NatSpecMultiLine
tokenFallback
function tokenFallback(address _from, uint _value, bytes _data) public returns (bool success);
/** * @dev Standard ERC223 function that will handle incoming token transfers. * * @param _from Token sender address. * @param _value Amount of tokens. * @param _data Transaction metadata. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 243, 342 ] }
20,065
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiExchange
contract NamiExchange { using SafeMath for uint; function NamiExchange(address _namiAddress) public { NamiAddr = _namiAddress; } event UpdateBid(address owner, uint price, uint balance); event UpdateAsk(address owner, uint price, uint volume); mapping(address => Or...
/* * Nami Internal Exchange smartcontract----------------------------------------------------------------- * */
Comment
function() payable public { require(msg.value > 0); if (bid[msg.sender].price > 0) { bid[msg.sender].eth = (bid[msg.sender].eth).add(msg.value); etherBalance = etherBalance.add(msg.value); UpdateBid(msg.sender, bid[msg.sender].price, bid[msg.sender].eth); } else { // r...
// prevent lost ether
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 845, 1394 ] }
20,066
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiExchange
contract NamiExchange { using SafeMath for uint; function NamiExchange(address _namiAddress) public { NamiAddr = _namiAddress; } event UpdateBid(address owner, uint price, uint balance); event UpdateAsk(address owner, uint price, uint volume); mapping(address => Or...
/* * Nami Internal Exchange smartcontract----------------------------------------------------------------- * */
Comment
tokenFallback
function tokenFallback(address _from, uint _value, bytes _data) public returns (bool success) { require(_value > 0 && _data.length == 0); if (ask[_from].price > 0) { ask[_from].volume = (ask[_from].volume).add(_value); nacBalance = nacBalance.add(_value); UpdateAsk(_from, ask[_from]...
// prevent lost token
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 1424, 1995 ] }
20,067
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiExchange
contract NamiExchange { using SafeMath for uint; function NamiExchange(address _namiAddress) public { NamiAddr = _namiAddress; } event UpdateBid(address owner, uint price, uint balance); event UpdateAsk(address owner, uint price, uint volume); mapping(address => Or...
/* * Nami Internal Exchange smartcontract----------------------------------------------------------------- * */
Comment
placeBuyOrder
function placeBuyOrder(uint _price) payable public { require(_price > 0); if (msg.value > 0) { etherBalance += msg.value; bid[msg.sender].eth = (bid[msg.sender].eth).add(msg.value); UpdateBid(msg.sender, _price, bid[msg.sender].eth); } bid[msg.sender].price = _price; }
// function about bid Order-----------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2221, 2575 ] }
20,068
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiExchange
contract NamiExchange { using SafeMath for uint; function NamiExchange(address _namiAddress) public { NamiAddr = _namiAddress; } event UpdateBid(address owner, uint price, uint balance); event UpdateAsk(address owner, uint price, uint volume); mapping(address => Or...
/* * Nami Internal Exchange smartcontract----------------------------------------------------------------- * */
Comment
tokenFallbackExchange
function tokenFallbackExchange(address _from, uint _value, uint _price) onlyNami public returns (bool success) { require(_price > 0); if (_value > 0) { nacBalance = nacBalance.add(_value); ask[_from].volume = (ask[_from].volume).add(_value); ask[_from].price = _price; Updat...
// function about ask Order----------------------------------------------------------- // place ask order by send NAC to contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4428, 4945 ] }
20,069
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
function() public payable { if (msg.value > 0) Deposit(msg.sender, msg.value); }
/// @dev Fallback function allows to deposit ether.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2228, 2340 ] }
20,070
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
NamiMultiSigWallet
function NamiMultiSigWallet(address[] _owners, uint _required) public validRequirement(_owners.length, _required) { for (uint i = 0; i < _owners.length; i++) { require(!(isOwner[_owners[i]] || _owners[i] == 0)); isOwner[_owners[i]] = true; } owners = _owners; required = ...
/// @dev Contract constructor sets initial owners and required number of confirmations. /// @param _owners List of initial owners. /// @param _required Number of required confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 2586, 2964 ] }
20,071
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
addOwner
function addOwner(address owner) public onlyWallet ownerDoesNotExist(owner) notNull(owner) validRequirement(owners.length + 1, required) { isOwner[owner] = true; owners.push(owner); OwnerAddition(owner); }
/// @dev Allows to add a new owner. Transaction has to be sent by wallet. /// @param owner Address of new owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 3090, 3382 ] }
20,072
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
removeOwner
function removeOwner(address owner) public onlyWallet ownerExists(owner) { isOwner[owner] = false; for (uint i=0; i<owners.length - 1; i++) { if (owners[i] == owner) { owners[i] = owners[owners.length - 1]; break; } } owners.length -= 1; ...
/// @dev Allows to remove an owner. Transaction has to be sent by wallet. /// @param owner Address of owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 3504, 3997 ] }
20,073
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
replaceOwner
function replaceOwner(address owner, address newOwner) public onlyWallet ownerExists(owner) ownerDoesNotExist(newOwner) { for (uint i=0; i<owners.length; i++) { if (owners[i] == owner) { owners[i] = newOwner; break; } } isOwner[owner] = fal...
/// @dev Allows to replace an owner with a new owner. Transaction has to be sent by wallet. /// @param owner Address of owner to be replaced. /// @param owner Address of new owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4196, 4678 ] }
20,074
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
changeRequirement
function changeRequirement(uint _required) public onlyWallet validRequirement(owners.length, _required) { required = _required; RequirementChange(_required); }
/// @dev Allows to change the number of required confirmations. Transaction has to be sent by wallet. /// @param _required Number of required confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 4848, 5067 ] }
20,075
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
submitTransaction
function submitTransaction(address destination, uint value, bytes data) public returns (uint transactionId) { transactionId = addTransaction(destination, value, data); confirmTransaction(transactionId); }
/// @dev Allows an owner to submit and confirm a transaction. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param data Transaction data payload. /// @return Returns transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 5328, 5583 ] }
20,076
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
confirmTransaction
function confirmTransaction(uint transactionId) public ownerExists(msg.sender) transactionExists(transactionId) notConfirmed(transactionId, msg.sender) { confirmations[transactionId][msg.sender] = true; Confirmation(msg.sender, transactionId); executeTransaction(transactionId); }
/// @dev Allows an owner to confirm a transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 5688, 6046 ] }
20,077
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
revokeConfirmation
function revokeConfirmation(uint transactionId) public ownerExists(msg.sender) confirmed(transactionId, msg.sender) notExecuted(transactionId) { confirmations[transactionId][msg.sender] = false; Revocation(msg.sender, transactionId); }
/// @dev Allows an owner to revoke a confirmation for a transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6169, 6473 ] }
20,078
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
executeTransaction
function executeTransaction(uint transactionId) public notExecuted(transactionId) { if (isConfirmed(transactionId)) { // Transaction tx = transactions[transactionId]; transactions[transactionId].executed = true; // tx.executed = true; if (transactions[transactionId].d...
/// @dev Allows anyone to execute a confirmed transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 6586, 7247 ] }
20,079
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
isConfirmed
function isConfirmed(uint transactionId) public constant returns (bool) { uint count = 0; for (uint i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) count += 1; if (count == required) return true; } }
/// @dev Returns the confirmation status of a transaction. /// @param transactionId Transaction ID. /// @return Confirmation status.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 7398, 7756 ] }
20,080
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
addTransaction
function addTransaction(address destination, uint value, bytes data) internal notNull(destination) returns (uint transactionId) { transactionId = transactionCount; transactions[transactionId] = Transaction({ destination: destination, value: value, data: data, ...
/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param data Transaction data payload. /// @return Returns transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 8094, 8565 ] }
20,081
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
getConfirmationCount
function getConfirmationCount(uint transactionId) public constant returns (uint count) { for (uint i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) count += 1; } }
/// @dev Returns number of confirmations of a transaction. /// @param transactionId Transaction ID. /// @return Number of confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 8765, 9047 ] }
20,082
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
getTransactionCount
function getTransactionCount(bool pending, bool executed) public constant returns (uint count) { for (uint i = 0; i < transactionCount; i++) { if (pending && !transactions[i].executed || executed && transactions[i].executed) count += 1; } }
/// @dev Returns total number of transactions after filers are applied. /// @param pending Include pending transactions. /// @param executed Include executed transactions. /// @return Total number of transactions after filters are applied.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 9310, 9640 ] }
20,083
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
getOwners
function getOwners() public constant returns (address[]) { return owners; }
/// @dev Returns list of owners. /// @return List of owner addresses.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 9723, 9849 ] }
20,084
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
getConfirmations
function getConfirmations(uint transactionId) public constant returns (address[] _confirmations) { address[] memory confirmationsTemp = new address[](owners.length); uint count = 0; uint i; for (i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) { ...
/// @dev Returns array with owner addresses, which confirmed transaction. /// @param transactionId Transaction ID. /// @return Returns array of owner addresses.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 10028, 10658 ] }
20,085
NamiCrowdSale
NamiCrowdSale.sol
0x8f2ecccc42ed88348ad39a1985188dc57d75bdf0
Solidity
NamiMultiSigWallet
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed t...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
NatSpecSingleLine
getTransactionIds
function getTransactionIds(uint from, uint to, bool pending, bool executed) public constant returns (uint[] _transactionIds) { uint[] memory transactionIdsTemp = new uint[](transactionCount); uint count = 0; uint i; for (i = 0; i < transactionCount; i++) { if (pending && !tr...
/// @dev Returns list of transaction IDs in defined range. /// @param from Index start position of transaction array. /// @param to Index end position of transaction array. /// @param pending Include pending transactions. /// @param executed Include executed transactions. /// @return Returns array of transaction IDs.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://ede90759cca9e423ac27cc27c07abccb93d4124f18d60842fee0f4c60102a0f1
{ "func_code_index": [ 11010, 11710 ] }
20,086
WabiStore
contracts/Wabistore.sol
0x699d2d1e5c21211109cdc4bf174fc6319aae7624
Solidity
WabiStore
contract WabiStore is Pausable, Ownable { using Strings for uint256; using SignatureChecker for address; address payable private wabiWallet; mapping(uint256 => bool) public _nonceSpended; address private signer; IWabipunks public wabiPunks; constructor( ){ signer = 0x0EBD57Cc598E8604e8808aE...
mint
function mint(uint256 amount, uint256 totalPrice, uint256 nonce, bytes memory signature) external payable whenNotPaused { require(!_nonceSpended[nonce], "WabiStore: Signature already used"); require(signer.isValidSignatureNow(keccak256(abi.encodePacked(amount, msg.sender, totalPrice, nonce)), signature)...
/** @dev Mint new token and maps to receiver */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://6462b5d1203af3a2c35c4c5027948d1c2c1869b99f624659984825344e620df8
{ "func_code_index": [ 485, 1022 ] }
20,087
WabiStore
contracts/Wabistore.sol
0x699d2d1e5c21211109cdc4bf174fc6319aae7624
Solidity
WabiStore
contract WabiStore is Pausable, Ownable { using Strings for uint256; using SignatureChecker for address; address payable private wabiWallet; mapping(uint256 => bool) public _nonceSpended; address private signer; IWabipunks public wabiPunks; constructor( ){ signer = 0x0EBD57Cc598E8604e8808aE...
withdraw
function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); }
/** @dev Withdraw ETH balance to the owner */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://6462b5d1203af3a2c35c4c5027948d1c2c1869b99f624659984825344e620df8
{ "func_code_index": [ 1089, 1192 ] }
20,088
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; } /** *...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 95, 303 ] }
20,089
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; } /** *...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // require(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // require(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://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 393, 695 ] }
20,090
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; } /** *...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(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://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 815, 944 ] }
20,091
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; } /** *...
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 1014, 1161 ] }
20,092
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
ERC20
contract ERC20 { uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed s...
_transfer
function _transfer(address _from, address _to, uint _value) internal { require(balanceOf[_from] >= _value); require(SafeMath.add(balanceOf[_to], _value) >= balanceOf[_to]); balanceOf[_from] = SafeMath.sub(balanceOf[_from], _value); balanceOf[_to] = SafeMath.add(balanceOf[_to], _value); ...
/** * ###################### * # private function # * ###################### */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 1189, 1577 ] }
20,093
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
setStatus
function setStatus(uint8 status) external;
/** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 190, 237 ] }
20,094
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
getStatus
function getStatus() external view returns (uint8);
/** * Get contract service status. * @return contract service status. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 336, 392 ] }
20,095
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
getPlatformName
function getPlatformName() external view returns (bytes32);
/** * Get the current contract platform name. * @return contract platform name. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 501, 565 ] }
20,096
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
setAdmin
function setAdmin(address account) external;
/** * Set the current contract administrator. * @param account account of contract administrator. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 692, 741 ] }
20,097
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
getAdmin
function getAdmin() external view returns (address);
/** * Get the current contract administrator. * @return contract administrator. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 850, 907 ] }
20,098
XC
XC.sol
0xd3970927a9fc6dd00628368f7e72fd8ac90823a1
Solidity
XCInterface
interface XCInterface { /** * Set contract service status. * @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;). */ function setStatus(uint8 status) external; /** * Get contract service status. * @return contract service st...
setToken
function setToken(address account) external;
/** * Set the Token contract address. * @param account contract address. */
NatSpecMultiLine
v0.4.22+commit.4cb486ee
bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2
{ "func_code_index": [ 1009, 1058 ] }
20,099