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
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint256
library SafeMathUint256 { /** * @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, "SafeMath: Multiplier exception"); ...
/** * @title SafeMath for uint256 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: Modulo exception"); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1263, 1422 ] }
6,200
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint8
library SafeMathUint8 { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); ret...
/** * @title SafeMath for uint8 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 98, 334 ] }
6,201
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint8
library SafeMathUint8 { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); ret...
/** * @title SafeMath for uint8 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint8 a, uint8 b) internal pure returns (uint8) { return a / b; // Solidity automatically throws when dividing by 0 }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 424, 573 ] }
6,202
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint8
library SafeMathUint8 { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); ret...
/** * @title SafeMath for uint8 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint8 a, uint8 b) internal pure returns (uint8) { require(b <= a, "SafeMath: Subtraction exception"); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 693, 851 ] }
6,203
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint8
library SafeMathUint8 { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); ret...
/** * @title SafeMath for uint8 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint8 a, uint8 b) internal pure returns (uint8 c) { c = a + b; require(c >= a, "SafeMath: Addition exception"); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 921, 1094 ] }
6,204
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SafeMathUint8
library SafeMathUint8 { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath: Multiplier exception"); ret...
/** * @title SafeMath for uint8 * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mod
function mod(uint8 a, uint8 b) internal pure returns (uint8) { require(b != 0, "SafeMath: Modulo exception"); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1237, 1390 ] }
6,205
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
BasicToken
contract BasicToken is ERC20Basic, Controllable { using SafeMathUint256 for uint256; mapping(address => uint256) balances; uint256 public totalSupply; constructor(uint256 _initialSupply) public { totalSupply = _initialSupply; if (0 < _initialSupply) { bala...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public isUsable onlyActive(msg.sender) onlyActive(_to) returns (bool) { require(0 < _value, "BasicToken.transfer: Zero value"); require(_value <= balances[msg.sender], "BasicToken.transfer: Insufficient fund"); // SafeMath.sub will thr...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 609, 1196 ] }
6,206
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
BasicToken
contract BasicToken is ERC20Basic, Controllable { using SafeMathUint256 for uint256; mapping(address => uint256) balances; uint256 public totalSupply; constructor(uint256 _initialSupply) public { totalSupply = _initialSupply; if (0 < _initialSupply) { bala...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1412, 1546 ] }
6,207
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public isUsable onlyActive(msg.sender) onlyActive(_from) onlyActive(_to) returns (bool) { require(0 < _value, "StandardToken.transferFrom: Zero value"); require(_value <= balances[_from], "StandardToken.transferFrom: I...
/** * @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.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 408, 1155 ] }
6,208
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public isUsable onlyActive(msg.sender) onlyActive(_spender) returns (bool) { require(0 < _value, "StandardToken.approve: Zero value"); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return...
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1798, 2172 ] }
6,209
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 2503, 2656 ] }
6,210
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint256 _addedValue) public isUsable onlyActive(msg.sender) onlyActive(_spender) returns (bool) { require(0 < _addedValue, "StandardToken.increaseApproval: Zero value"); allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedV...
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 3133, 3598 ] }
6,211
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint256 _subtractedValue) public isUsable onlyActive(msg.sender) onlyActive(_spender) returns (bool) { require(0 < _subtractedValue, "StandardToken.decreaseApproval: Zero value"); uint256 oldValue = allowed[msg.sender][_spender]; if (_s...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 4080, 4710 ] }
6,212
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
increaseSupply
function increaseSupply(uint256 _value, address _to) external onlyOwner onlyActive(_to) returns (bool) { require(0 < _value, "StableCoin.increaseSupply: Zero value"); totalSupply = totalSupply.add(_value); balances[_to] = balances[_to].add(_value); emit Transfer(address(0), _to, _v...
/** * @dev Increase total supply (mint) to an address * * @param _value The amount of tokens to be mint * @param _to The address which will receive token */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1204, 1596 ] }
6,213
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
increaseSupplyWithDeposit
function increaseSupplyWithDeposit(uint256 _value, address _to, uint256 _deposit) external onlyOwner onlyActive(_to) returns (bool) { require(0 < _value, "StableCoin.increaseSupplyWithDeposit: Zero value"); require(_deposit <= _value, "StableCoin.increaseSupplyWithDeposit: Insufficient deposit...
/** * @dev Increase total supply (mint) to an address with deposit * * @param _value The amount of tokens to be mint * @param _to The address which will receive token * @param _deposit The amount of deposit */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 1850, 2475 ] }
6,214
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
decreaseSupply
function decreaseSupply(uint256 _value, address _from) external onlyOwner onlyActive(_from) returns (bool) { require(0 < _value, "StableCoin.decreaseSupply: Zero value"); require(_value <= balances[_from], "StableCoin.decreaseSupply: Insufficient fund"); require(_value <= allowed[_from][a...
/** * @dev Decrease total supply (burn) from an address that gave allowance * * @param _value The amount of tokens to be burn * @param _from The address's token will be burn */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 2690, 3372 ] }
6,215
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
freeze
function freeze(address _from, uint256 _value) external onlyOwner returns (bool) { require(_value <= balances[_from], "StableCoin.freeze: Insufficient fund"); balances[_from] = balances[_from].sub(_value); freezeOf[_from] = freezeOf[_from].add(_value); freezes[_from][FREEZE_CODE_DEFAULT...
/** * @dev Freeze holder balance * * @param _from The address which will be freeze * @param _value The amount of tokens to be freeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 3542, 4082 ] }
6,216
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
freezeWithPurpose
function freezeWithPurpose(address _from, uint256 _value, string calldata _purpose) external returns (bool) { return freezeWithPurposeCode(_from, _value, encodePacked(_purpose)); }
/** * @dev Freeze holder balance with purpose code * * @param _from The address which will be freeze * @param _value The amount of tokens to be freeze * @param _purpose The purpose of freeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 4315, 4528 ] }
6,217
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
freezeWithPurposeCode
function freezeWithPurposeCode(address _from, uint256 _value, bytes32 _purposeCode) public onlyOwner returns (bool) { require(_value <= balances[_from], "StableCoin.freezeWithPurposeCode: Insufficient fund"); balances[_from] = balances[_from].sub(_value); freezeOf[_from] = freezeOf[_from].ad...
/** * @dev Freeze holder balance with purpose code * * @param _from The address which will be freeze * @param _value The amount of tokens to be freeze * @param _purposeCode The purpose code of freeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 4770, 5339 ] }
6,218
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
unfreeze
function unfreeze(address _from, uint256 _value) external onlyOwner returns (bool) { require(_value <= freezes[_from][FREEZE_CODE_DEFAULT], "StableCoin.unfreeze: Insufficient fund"); freezeOf[_from] = freezeOf[_from].sub(_value); freezes[_from][FREEZE_CODE_DEFAULT] = freezes[_from][FREEZE_CO...
/** * @dev Unfreeze holder balance * * @param _from The address which will be unfreeze * @param _value The amount of tokens to be unfreeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 5515, 6083 ] }
6,219
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
unfreezeWithPurpose
function unfreezeWithPurpose(address _from, uint256 _value, string calldata _purpose) external onlyOwner returns (bool) { return unfreezeWithPurposeCode(_from, _value, encodePacked(_purpose)); }
/** * @dev Unfreeze holder balance with purpose code * * @param _from The address which will be unfreeze * @param _value The amount of tokens to be unfreeze * @param _purpose The purpose of unfreeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 6323, 6559 ] }
6,220
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
unfreezeWithPurposeCode
function unfreezeWithPurposeCode(address _from, uint256 _value, bytes32 _purposeCode) public onlyOwner returns (bool) { require(_value <= freezes[_from][_purposeCode], "StableCoin.unfreezeWithPurposeCode: Insufficient fund"); freezeOf[_from] = freezeOf[_from].sub(_value); freezes[_from][_pur...
/** * @dev Unfreeze holder balance with purpose code * * @param _from The address which will be unfreeze * @param _value The amount of tokens to be unfreeze * @param _purposeCode The purpose code of unfreeze */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 6808, 7398 ] }
6,221
SUSD
SUSD.sol
0xe8de351d8f949b2ffb8068a84a3bc8034874fd32
Solidity
SUSD
contract SUSD is StandardToken { using SafeMathUint256 for uint256; bytes32 constant FREEZE_CODE_DEFAULT = 0x0000000000000000000000000000000000000000000000000000000000000000; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); event Free...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes calldata _extraData) external isUsable returns (bool) { // Give allowance to spender (previous approved allowances will be clear) approve(_spender, _value); ApprovalReceiver(_spender).receiveApproval(msg.sender, _value, address(...
/** * @dev Allocate allowance and perform contract call * * @param _spender The spender address * @param _value The allowance value * @param _extraData The function call data */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52
{ "func_code_index": [ 7620, 8017 ] }
6,222
FREXATestToken2
Ownable.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 250, 307 ] }
6,223
FREXATestToken2
Ownable.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 613, 789 ] }
6,224
VolOracle
contracts/libraries/Welford.sol
0x4df938e57fd4ad1dfdddeeb1b4cfabab19e33a0e
Solidity
Welford
library Welford { using SignedSafeMath for int256; /** * @notice Performs an update of the tuple (count, mean, m2) using the new value * @param curCount is the current value for count * @param curMean is the current value for mean * @param curM2 is the current value for M2 * @param new...
// REFERENCE // https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm
LineComment
update
function update( uint256 curCount, int256 curMean, uint256 curM2, int256 newValue ) internal pure returns ( uint256 count, int256 mean, uint256 m2 ) { int256 _count = int256(curCount + 1); int256 delta = newValue.sub(int256(curMean)); int256 _mean = in...
/** * @notice Performs an update of the tuple (count, mean, m2) using the new value * @param curCount is the current value for count * @param curMean is the current value for mean * @param curM2 is the current value for M2 * @param newValue is the new value to be added into the dataset */
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 380, 1075 ] }
6,225
VolOracle
contracts/libraries/Welford.sol
0x4df938e57fd4ad1dfdddeeb1b4cfabab19e33a0e
Solidity
Welford
library Welford { using SignedSafeMath for int256; /** * @notice Performs an update of the tuple (count, mean, m2) using the new value * @param curCount is the current value for count * @param curMean is the current value for mean * @param curM2 is the current value for M2 * @param new...
// REFERENCE // https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm
LineComment
variance
function variance(uint256 count, uint256 m2) internal pure returns (uint256) { require(count > 0, "!count"); return m2 / count; }
/** * @notice Calculate the variance using the existing tuple (count, mean, m2) * @param count is the length of the dataset * @param m2 is the sum of square errors */
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 1268, 1449 ] }
6,226
VolOracle
contracts/libraries/Welford.sol
0x4df938e57fd4ad1dfdddeeb1b4cfabab19e33a0e
Solidity
Welford
library Welford { using SignedSafeMath for int256; /** * @notice Performs an update of the tuple (count, mean, m2) using the new value * @param curCount is the current value for count * @param curMean is the current value for mean * @param curM2 is the current value for M2 * @param new...
// REFERENCE // https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm
LineComment
stdev
function stdev(uint256 count, uint256 m2) internal pure returns (uint256) { return Math.sqrt(variance(count, m2)); }
/** * @notice Calculate the standard deviation using the existing tuple (count, mean, m2) * @param count is the length of the dataset * @param m2 is the sum of square errors */
NatSpecMultiLine
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 1652, 1784 ] }
6,227
GasCrowdsale
GasCrowdsale.sol
0xa54a1b3a6203cef877b759b64c6d205421e9f86c
Solidity
GasCrowdsale
contract GasCrowdsale { using SafeMath for uint256; address public beneficiary; uint256 public fundingGoal; uint256 public amountRaised; uint256 public startdate; uint256 public deadline; uint256 public price; uint256 public fundTransferred; token public tokenReward; ...
GasCrowdsale
function GasCrowdsale() { beneficiary = 0x007FB3e94dCd7C441CAA5b87621F275d199Dff81; fundingGoal = 8000 ether; startdate = 1518134400; deadline = startdate + 29 days; price = 0.0003 ether; tokenReward = token(0x75c79b88facE8892E7043797570c390bc2Db52A7); }
/** * Constrctor function * * Setup the owner */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://937858ff8fc5d8ea4d04d4b76dca8d93b183c98bea4f5a3b9880dafe95e140d1
{ "func_code_index": [ 678, 996 ] }
6,228
GasCrowdsale
GasCrowdsale.sol
0xa54a1b3a6203cef877b759b64c6d205421e9f86c
Solidity
GasCrowdsale
contract GasCrowdsale { using SafeMath for uint256; address public beneficiary; uint256 public fundingGoal; uint256 public amountRaised; uint256 public startdate; uint256 public deadline; uint256 public price; uint256 public fundTransferred; token public tokenReward; ...
function () payable { require(!crowdsaleClosed); uint256 bonus; uint256 amount = msg.value; balanceOf[msg.sender] = balanceOf[msg.sender].add(amount); amountRaised = amountRaised.add(amount); //add bounus for funders if(now >= startdate && now <= startdate + 24 hours ){ ...
/** * Fallback function * * The function without name is the default function that is called whenever anyone sends funds to a contract */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://937858ff8fc5d8ea4d04d4b76dca8d93b183c98bea4f5a3b9880dafe95e140d1
{ "func_code_index": [ 1166, 2340 ] }
6,229
GasCrowdsale
GasCrowdsale.sol
0xa54a1b3a6203cef877b759b64c6d205421e9f86c
Solidity
GasCrowdsale
contract GasCrowdsale { using SafeMath for uint256; address public beneficiary; uint256 public fundingGoal; uint256 public amountRaised; uint256 public startdate; uint256 public deadline; uint256 public price; uint256 public fundTransferred; token public tokenReward; ...
endCrowdsale
function endCrowdsale() afterDeadline { crowdsaleClosed = true; }
/** *ends the campaign after deadline */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://937858ff8fc5d8ea4d04d4b76dca8d93b183c98bea4f5a3b9880dafe95e140d1
{ "func_code_index": [ 2468, 2552 ] }
6,230
GasCrowdsale
GasCrowdsale.sol
0xa54a1b3a6203cef877b759b64c6d205421e9f86c
Solidity
GasCrowdsale
contract GasCrowdsale { using SafeMath for uint256; address public beneficiary; uint256 public fundingGoal; uint256 public amountRaised; uint256 public startdate; uint256 public deadline; uint256 public price; uint256 public fundTransferred; token public tokenReward; ...
safeWithdrawal
function safeWithdrawal() { if (beneficiary == msg.sender) { if(fundTransferred != amountRaised){ uint256 transferfund; transferfund = amountRaised.sub(fundTransferred); fundTransferred = fundTransferred.add(transferfund); beneficiary.send(transferfund); ...
/** * Withdraw the funds */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://937858ff8fc5d8ea4d04d4b76dca8d93b183c98bea4f5a3b9880dafe95e140d1
{ "func_code_index": [ 2602, 2981 ] }
6,231
FourthBountyWPTpayoutCorrection
FourthBountyWPTpayoutCorrection.sol
0x36c6a8126c64b74923a202ffa20dc9fb84afb587
Solidity
FourthBountyWPTpayoutCorrection
contract FourthBountyWPTpayoutCorrection { //storage address public owner; Token public company_token; address[] public addressOfBountyMembers; mapping(address => uint256) bountyMembersAmounts; uint currentBatch; uint addrPerStep; //modifiers modifier onlyOwner { require(owner == ms...
function() public payable { revert(); }
/// @dev Fallback function: don't accept ETH
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://7b4ed3155eebc248d840b3df687f5a0a8a3ea6936bea70185388b72ae820172b
{ "func_code_index": [ 755, 818 ] }
6,232
FREXATestToken2
Whitelist.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Whitelist
contract Whitelist is Ownable { mapping(address => bool) public whitelist; event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); /** * @dev Throws if called by any account that's not whitelisted. */ modifier onlyWhitelisted() { require(whitelist[msg.sender]); ...
/** * @title Whitelist * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */
NatSpecMultiLine
isWhitelisted
function isWhitelisted(address addr) onlyOwner public returns(bool onWhitelist) { onWhitelist = whitelist[addr]; }
/** * @dev check if an address is on the whitelist * @param addr address * @return true if the address was on the whitelist, false if the address was not in the whitelist */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 520, 642 ] }
6,233
FREXATestToken2
Whitelist.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Whitelist
contract Whitelist is Ownable { mapping(address => bool) public whitelist; event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); /** * @dev Throws if called by any account that's not whitelisted. */ modifier onlyWhitelisted() { require(whitelist[msg.sender]); ...
/** * @title Whitelist * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */
NatSpecMultiLine
addAddressToWhitelist
function addAddressToWhitelist(address addr) onlyOwner public returns(bool success) { if (!whitelist[addr]) { whitelist[addr] = true; emit WhitelistedAddressAdded(addr); success = true; } }
/** * @dev add an address to the whitelist * @param addr address * @return true if the address was added to the whitelist, false if the address was already in the whitelist */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 834, 1053 ] }
6,234
FREXATestToken2
Whitelist.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Whitelist
contract Whitelist is Ownable { mapping(address => bool) public whitelist; event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); /** * @dev Throws if called by any account that's not whitelisted. */ modifier onlyWhitelisted() { require(whitelist[msg.sender]); ...
/** * @title Whitelist * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */
NatSpecMultiLine
addAddressesToWhitelist
function addAddressesToWhitelist(address[] addrs) onlyOwner public returns(bool success) { for (uint256 i = 0; i < addrs.length; i++) { if (addAddressToWhitelist(addrs[i])) { success = true; } } }
/** * @dev add addresses to the whitelist * @param addrs addresses * @return true if at least one address was added to the whitelist, * false if all addresses were already in the whitelist */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 1264, 1492 ] }
6,235
FREXATestToken2
Whitelist.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Whitelist
contract Whitelist is Ownable { mapping(address => bool) public whitelist; event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); /** * @dev Throws if called by any account that's not whitelisted. */ modifier onlyWhitelisted() { require(whitelist[msg.sender]); ...
/** * @title Whitelist * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */
NatSpecMultiLine
removeAddressFromWhitelist
function removeAddressFromWhitelist(address addr) onlyOwner public returns(bool success) { if (whitelist[addr]) { whitelist[addr] = false; emit WhitelistedAddressRemoved(addr); success = true; } }
/** * @dev remove an address from the whitelist * @param addr address * @return true if the address was removed from the whitelist, * false if the address wasn't in the whitelist in the first place */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 1712, 1938 ] }
6,236
FREXATestToken2
Whitelist.sol
0xa1acbb78164fdc4446426ebcaed119536816467a
Solidity
Whitelist
contract Whitelist is Ownable { mapping(address => bool) public whitelist; event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); /** * @dev Throws if called by any account that's not whitelisted. */ modifier onlyWhitelisted() { require(whitelist[msg.sender]); ...
/** * @title Whitelist * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. * @dev This simplifies the implementation of "user permissions". */
NatSpecMultiLine
removeAddressesFromWhitelist
function removeAddressesFromWhitelist(address[] addrs) onlyOwner public returns(bool success) { for (uint256 i = 0; i < addrs.length; i++) { if (removeAddressFromWhitelist(addrs[i])) { success = true; } } }
/** * @dev remove addresses from the whitelist * @param addrs addresses * @return true if at least one address was removed from the whitelist, * false if all addresses weren't in the whitelist in the first place */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://d04737775bc0704b175fe61a3217f41103dc821b7f67d7b181e6f15595655034
{ "func_code_index": [ 2172, 2410 ] }
6,237
Cardanocash
Cardanocash.sol
0x92d41a7af372adf799adecd036796dc6bb7af896
Solidity
Cardanocash
contract Cardanocash { // Public variables of the token string public name = "Cardanocash"; string public symbol = "ADAC"; uint8 public decimals = 18; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public datboiSupply = 100000000000; uint256 ...
Cardanocash
function Cardanocash() public { totalSupply = datboiSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give DatBoiCoin Mint the total created tokens creator = msg.sender; }
/** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://bfb0ce4cc919ffb008d8fc9bad5ddcb957c6304b5d34c0e39bbbbff53f155e59
{ "func_code_index": [ 941, 1224 ] }
6,238
Cardanocash
Cardanocash.sol
0x92d41a7af372adf799adecd036796dc6bb7af896
Solidity
Cardanocash
contract Cardanocash { // Public variables of the token string public name = "Cardanocash"; string public symbol = "ADAC"; uint8 public decimals = 18; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public datboiSupply = 100000000000; uint256 ...
_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.19+commit.c4cbbb05
bzzr://bfb0ce4cc919ffb008d8fc9bad5ddcb957c6304b5d34c0e39bbbbff53f155e59
{ "func_code_index": [ 1306, 1862 ] }
6,239
Cardanocash
Cardanocash.sol
0x92d41a7af372adf799adecd036796dc6bb7af896
Solidity
Cardanocash
contract Cardanocash { // Public variables of the token string public name = "Cardanocash"; string public symbol = "ADAC"; uint8 public decimals = 18; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public datboiSupply = 100000000000; uint256 ...
transfer
function transfer(address _to, uint256 _value) public { _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.19+commit.c4cbbb05
bzzr://bfb0ce4cc919ffb008d8fc9bad5ddcb957c6304b5d34c0e39bbbbff53f155e59
{ "func_code_index": [ 2068, 2180 ] }
6,240
Cardanocash
Cardanocash.sol
0x92d41a7af372adf799adecd036796dc6bb7af896
Solidity
Cardanocash
contract Cardanocash { // Public variables of the token string public name = "Cardanocash"; string public symbol = "ADAC"; uint8 public decimals = 18; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public datboiSupply = 100000000000; uint256 ...
function () payable internal { uint amount = msg.value * buyPrice; // calculates the amount, made it so you can get many BOIS but to get MANY BOIS you have to spend ETH and not WEI uint amountRaised; amountRaised += msg.value; ...
/// @notice Buy tokens from contract by sending ether
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://bfb0ce4cc919ffb008d8fc9bad5ddcb957c6304b5d34c0e39bbbbff53f155e59
{ "func_code_index": [ 2254, 3242 ] }
6,241
CPSHT
tests/nfthugo.sol
0xc943b3f2cf45dbaaa99319a2792e0756c39cff5b
Solidity
CPSHT
contract CPSHT is ERC721, ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; string private baseTokenURI; constructor() ERC721("ComputedSheets ", "CSHT") { } function safeMintTo(address _to, string memory tokenURI_) onlyOwner p...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { turn baseTokenURI;
// The following functions are overrides required by Solidity.
LineComment
v0.8.2+commit.661d1103
None
ipfs://1ee7cd69c695bd05808075d83b79b764d193d300e1835e02bd3311d41a3cf12d
{ "func_code_index": [ 557, 666 ] }
6,242
CPSHT
tests/nfthugo.sol
0xc943b3f2cf45dbaaa99319a2792e0756c39cff5b
Solidity
CPSHT
contract CPSHT is ERC721, ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; string private baseTokenURI; constructor() ERC721("ComputedSheets ", "CSHT") { } function safeMintTo(address _to, string memory tokenURI_) onlyOwner p...
getCounter
function getCounter() public view returns (uint256) { return _tokenIdCounter.current(); }
//Return current counter value
LineComment
v0.8.2+commit.661d1103
None
ipfs://1ee7cd69c695bd05808075d83b79b764d193d300e1835e02bd3311d41a3cf12d
{ "func_code_index": [ 1144, 1281 ] }
6,243
HypnoxysToken
HypnoxysToken.sol
0xd35833f9255fb28cc6b91acb8a66ba6429d6ef5a
Solidity
HypnoxysToken
contract HypnoxysToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function HypnoxysT...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and an // initial fixed supply // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://5973c3d1545c37cf02d144375b4d8ca1d20be7b7d8e269851450d425abaa5511
{ "func_code_index": [ 760, 881 ] }
6,244
HypnoxysToken
HypnoxysToken.sol
0xd35833f9255fb28cc6b91acb8a66ba6429d6ef5a
Solidity
HypnoxysToken
contract HypnoxysToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function HypnoxysT...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and an // initial fixed supply // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account `tokenOwner` // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://5973c3d1545c37cf02d144375b4d8ca1d20be7b7d8e269851450d425abaa5511
{ "func_code_index": [ 1103, 1232 ] }
6,245
HypnoxysToken
HypnoxysToken.sol
0xd35833f9255fb28cc6b91acb8a66ba6429d6ef5a
Solidity
HypnoxysToken
contract HypnoxysToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function HypnoxysT...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and an // initial fixed supply // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://5973c3d1545c37cf02d144375b4d8ca1d20be7b7d8e269851450d425abaa5511
{ "func_code_index": [ 3010, 3069 ] }
6,246
HypnoxysToken
HypnoxysToken.sol
0xd35833f9255fb28cc6b91acb8a66ba6429d6ef5a
Solidity
HypnoxysToken
contract HypnoxysToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function HypnoxysT...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and an // initial fixed supply // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://5973c3d1545c37cf02d144375b4d8ca1d20be7b7d8e269851450d425abaa5511
{ "func_code_index": [ 3300, 3489 ] }
6,247
Wallet
base64Exporter.sol
0xa10572340f030d2fec6d8d9197a13e073c749891
Solidity
Base64Exporter
contract Base64Exporter is Base64 { /// @dev export _base64decode() as an external function. function base64decode(bytes calldata _encoded) external pure returns (bytes memory) { return _base64decode(_encoded); } }
base64decode
function base64decode(bytes calldata _encoded) external pure returns (bytes memory) { return _base64decode(_encoded); }
/// @dev export _base64decode() as an external function.
NatSpecSingleLine
v0.5.17+commit.d19bba13
GNU LGPLv3
bzzr://82dbeaf00b088cab6b410587240b7ae9254dbc4e7cfb55ff2186b1bb5062272d
{ "func_code_index": [ 97, 232 ] }
6,248
NftSale
contracts/NftSale.sol
0x34e6e20e45da13a0d19fff59d5b915bc99f5aced
Solidity
NftSale
contract NftSale is Ownable { uint private _totalShares; mapping(address => uint) private _shares; address[] private _payees; uint public constant MAX_UNITS_PER_TRANSACTION = 5; uint public constant MAX_NFT_TO_SELL = 1550; uint public constant SALE_PRICE = 0.08 ether; uint public constant START_TIME =...
_addPayee
function _addPayee(address account_, uint shares_) private { require(account_ != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account_] == 0, "PaymentSplitter: account already has shares"); _payees.push(account_...
/* * @dev Add a new payee to the contract. * @param account_ The address of the payee to add. * @param shares_ The number of shares owned by the payee. */
Comment
v0.8.11+commit.d7f03943
MIT
ipfs://cee1b2f96760b0f9f707418e40f4c1b4b21106c829c633ab410af2f1dcad0aad
{ "func_code_index": [ 962, 1384 ] }
6,249
NftSale
contracts/NftSale.sol
0x34e6e20e45da13a0d19fff59d5b915bc99f5aced
Solidity
NftSale
contract NftSale is Ownable { uint private _totalShares; mapping(address => uint) private _shares; address[] private _payees; uint public constant MAX_UNITS_PER_TRANSACTION = 5; uint public constant MAX_NFT_TO_SELL = 1550; uint public constant SALE_PRICE = 0.08 ether; uint public constant START_TIME =...
buyBatch
function buyBatch(uint _amount) external payable { require(block.timestamp >= START_TIME, "sale is not started yet"); require(tokensSold + _amount <= MAX_NFT_TO_SELL, "exceed sell limit"); require(_amount > 0, "empty input"); require(_amount <= MAX_UNITS_PER_TRANSACTION, "exceed MAX_UNITS_PER_TRANSACTION"); ...
/* * @dev function to buy tokens. * @param _amount how much tokens can be bought. */
Comment
v0.8.11+commit.d7f03943
MIT
ipfs://cee1b2f96760b0f9f707418e40f4c1b4b21106c829c633ab410af2f1dcad0aad
{ "func_code_index": [ 1484, 2172 ] }
6,250
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // 确保目标地址不为0x0,因为0x0地址代表销毁 require(_to != 0x0); // 检查发送者余额 require(balanceOf[_from] >= _value); // 确保转移为正数个 require(balanceOf[_to] + _value > balanceOf[_to]); // 以下用来检查交易, uint previousBalances = balanceOf[_...
/** * 代币交易转移的内部实现 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 770, 1454 ] }
6,251
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * 代币交易转移 * 从创建交易者账号发送`_value`个代币到 `_to`账号 * * @param _to 接收者地址 * @param _value 转移数额 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 1590, 1702 ] }
6,252
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * 账号之间代币交易转移 * @param _from 发送者地址 * @param _to 接收者地址 * @param _value 转移数额 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 1821, 2122 ] }
6,253
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * 设置某个地址(合约)可以交易者名义花费的代币数。 * * 允许发送者`_spender` 花费不多于 `_value` 个代币 * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 2343, 2519 ] }
6,254
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * 设置允许一个地址(合约)以交易者名义可最多花费的代币数。 * * @param _spender 被授权的地址(合约) * @param _value 最大可花费代币数 * @param _extraData 发送给合约的附加数据 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 2688, 3040 ] }
6,255
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender,...
/** * 销毁创建者账户中指定个代币 */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 3083, 3462 ] }
6,256
OREOtoken
OREOtoken.sol
0x35360784597174c8aed96561044ada5ddd91ef83
Solidity
OREOtoken
contract OREOtoken { string public name = "OREO"; string public symbol = "OREO"; uint8 public decimals = 18; // decimals 可以有的小数点个数,最小的代币单位。18 是建议的默认值 uint256 public totalSupply = 1000000000000000000000000000; // 用mapping保存每个地址对应的余额 mapping (address => uint256) public balanceOf; // ...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * 销毁用户账户中指定个代币 * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6cae7d2ffa43422ff32e0f385c1bbf377ef4130db121669405c742df805364c0
{ "func_code_index": [ 3699, 4315 ] }
6,257
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
setBaseURI
function setBaseURI(string memory baseURI) external onlyOwner { _setBaseURI(baseURI); }
/** * @dev Changes the base URI if we want to move things in the future (Callable by owner only) */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 2229, 2332 ] }
6,258
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
mintNFTs
function mintNFTs(uint256 count) external payable { require(saleIsActive, "Sale must be active to mint"); require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended"); require(count > 0, "numberOfNfts cannot be 0"); require(count <= 20, "You may not buy more than 20 NFTs at once"); require( ...
/** * @dev Mints yourself NFTs. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 2513, 3739 ] }
6,259
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
withdraw
function withdraw() external onlyOwner { uint256 total = address(this).balance; uint256 amount = total.div(4); _tFirst.transfer(amount); _tSecond.transfer(total.sub(amount)); }
/** * @dev send eth to treasuryFirst and treasurySecond. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 3815, 4031 ] }
6,260
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
setRevealTimestamp
function setRevealTimestamp(uint256 revealTimeStamp) external onlyOwner { REVEAL_TIMESTAMP = revealTimeStamp; }
/** * Set the reveal timestamp index for the collection */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 4381, 4508 ] }
6,261
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
setStartingIndex
function setStartingIndex() external { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint256(blockhash(startingIndexBlock)) % MAX_NFT_SUPPLY; // Just a sanity case in the worst case if this function is...
/** * Set the starting index for the collection */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 4575, 5286 ] }
6,262
Ciphersquares
Ciphersquares.sol
0x9944acaaf5e106fdfad1a0d9668e5f97e9cf7ee8
Solidity
Ciphersquares
contract Ciphersquares is ERC721, Ownable { using SafeMath for uint256; string public CIPHERSQUARES_PROVENANCE = ""; // Maximum amount of NFTs in existance. uint256 public constant MAX_NFT_SUPPLY = 3623; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public REV...
emergencySetStartingIndexBlock
function emergencySetStartingIndexBlock() external onlyOwner { require(startingIndex == 0, "Starting index is already set"); startingIndexBlock = block.number; }
/** * Set the starting index block for the collection, essentially unblocking * setting starting index */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://062f15ad73324cc34744ab1c4c010ae0fb3ebdbb79ea5b51dd990e81bb0e7418
{ "func_code_index": [ 5413, 5599 ] }
6,263
GoalTimeN
GoalTimeN.sol
0xfede867046cf36f15f6ab7545279cf0e33265dc9
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://320701f7e8174265f75aeacf3041dea5ed0797f3e5ef259f1743c49615a0b6af
{ "func_code_index": [ 105, 207 ] }
6,264
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
Tribute
contract Tribute is Ownable, Inject, IERC20 { using DistributedStorage for bytes32; using SafeMath for uint256; // Distribution event Choosen(address indexed _addr, uint256 _value); // Org event SetName(string _prev, string _new); event SetExtraGas(uint256 _prev, uint256 _new); ...
_toKey
function _toKey(address a) internal pure returns (bytes32) { return bytes32(uint256(a)); }
// Get Functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ 1670, 1779 ] }
6,265
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
Tribute
contract Tribute is Ownable, Inject, IERC20 { using DistributedStorage for bytes32; using SafeMath for uint256; // Distribution event Choosen(address indexed _addr, uint256 _value); // Org event SetName(string _prev, string _new); event SetExtraGas(uint256 _prev, uint256 _new); ...
_setAllowance
function _setAllowance(address _addr, address _spender, uint256 _value) internal { _toKey(_addr).write(keccak256(abi.encodePacked("allowance", _spender)), bytes32(_value)); }
// Set Functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ 2327, 2520 ] }
6,266
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
Tribute
contract Tribute is Ownable, Inject, IERC20 { using DistributedStorage for bytes32; using SafeMath for uint256; // Distribution event Choosen(address indexed _addr, uint256 _value); // Org event SetName(string _prev, string _new); event SetExtraGas(uint256 _prev, uint256 _new); ...
_isWhitelisted
function _isWhitelisted(address _from, address _to) internal view returns (bool) { return whitelistFrom[_from]||whitelistTo[_to]; }
// Distribution Functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ 2917, 3067 ] }
6,267
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
Tribute
contract Tribute is Ownable, Inject, IERC20 { using DistributedStorage for bytes32; using SafeMath for uint256; // Distribution event Choosen(address indexed _addr, uint256 _value); // Org event SetName(string _prev, string _new); event SetExtraGas(uint256 _prev, uint256 _new); ...
_transferFrom
function _transferFrom(address _operator, address _from, address _to, uint256 _value, bool _payFee) internal { if (_value == 0) { emit Transfer(_from, _to, 0); return; } uint256 balanceFrom = _balanceOf(_from); require(balanceFrom >= _value, "balance not enough"); if (_fro...
//event DebugTest2(uint allowance,uint from,address sender);
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ 3746, 4512 ] }
6,268
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
<NA>
<NA>
<NA>
<NA>
setWhitelistedTo
function setWhitelistedTo(address _addr, bool _whitelisted) external onlyOwner { emit WhitelistTo(_addr, _whitelisted); whitelistTo[_addr] = _whitelisted; }
// Org functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ -1, -1 ] }
6,269
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
<NA>
<NA>
<NA>
<NA>
topSize
function topSize() external view returns (uint256) { return mound.topSize(); }
// Mound functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ -1, -1 ] }
6,270
Tribute
Tribute.sol
0x7031ab87dcc46818806ec07af46fa8c2ad2a2bfc
Solidity
<NA>
<NA>
<NA>
<NA>
balanceOf
function balanceOf(address _addr) external view returns (uint256) { return _balanceOf(_addr); }
// ERC20 functions
LineComment
v0.5.17+commit.d19bba13
None
bzzr://04676f8be5effbbe9148a3c8094afad0f5922a2924ef4887bd5729c752cdd644
{ "func_code_index": [ -1, -1 ] }
6,271
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
ReceivingContract
contract ReceivingContract { /** * @dev Handle incoming token transfers. * @param _from The token sender address. * @param _value The amount of tokens. */ function tokenFallback(address _from, uint _value) public; }
/** * @title ReceivingContract Interface * @dev ReceivingContract handle incoming token transfers. */
NatSpecMultiLine
tokenFallback
function tokenFallback(address _from, uint _value) public;
/** * @dev Handle incoming token transfers. * @param _from The token sender address. * @param _value The amount of tokens. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 187, 250 ] }
6,272
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint _a, uint _b) internal pure returns (uint) { if (_a == 0) { return 0; } uint c = _a * _b; assert(c / _a == _b); ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint _a, uint _b) internal pure returns (uint) { if (_a == 0) { return 0; } uint c = _a * _b; assert(c / _a == _b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 97, 343 ] }
6,273
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint _a, uint _b) internal pure returns (uint) { if (_a == 0) { return 0; } uint c = _a * _b; assert(c / _a == _b); ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint _a, uint _b) internal pure returns (uint) { // Solidity automatically throws when dividing by 0 uint c = _a / _b; return c; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 435, 647 ] }
6,274
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint _a, uint _b) internal pure returns (uint) { if (_a == 0) { return 0; } uint c = _a * _b; assert(c / _a == _b); ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint _a, uint _b) internal pure returns (uint) { assert(_b <= _a); return _a - _b; }
/** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 770, 927 ] }
6,275
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint _a, uint _b) internal pure returns (uint) { if (_a == 0) { return 0; } uint c = _a * _b; assert(c / _a == _b); ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint _a, uint _b) internal pure returns (uint) { uint c = _a + _b; assert(c >= _a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 999, 1176 ] }
6,276
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
Ownable
contract Ownable { address public owner; /** * Events */ event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == o...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; OwnershipTransferred(0, owner); }
/** * @dev Constructor * Sets the original `owner` of the contract to the sender account. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 465, 574 ] }
6,277
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
Ownable
contract Ownable { address public owner; /** * Events */ event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == o...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address _newOwner) public onlyOwner { require(_newOwner != 0); OwnershipTransferred(owner, _newOwner); owner = _newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a new owner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 748, 960 ] }
6,278
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
changeTokenInformation
function changeTokenInformation(string _name, string _symbol) public onlyOwner { name = _name; symbol = _symbol; ChangeTokenInformation(_name, _symbol); }
/** * Owner can update token information here. * * It is often useful to conceal the actual token association, until * the token operations, like central issuance or reissuance have been completed. * * This function allows the token owner to rename the token after the operations * have been completed and ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 968, 1182 ] }
6,279
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value) public returns (bool) { require(_to != 0); require(_value > 0); balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); Transfer(msg.sender, _to, _value); return true; }
/** * @dev Transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1354, 1704 ] }
6,280
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint _value) public returns (bool) { require(_to != 0); require(_value > 0); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_...
/** * @dev Transfer tokens from one address to another * @param _from The address which you want to send tokens from * @param _to The address which you want to transfer to * @param _value The amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1972, 2404 ] }
6,281
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
approve
function approve(address _spender, uint _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 3064, 3290 ] }
6,282
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { require(_addedValue > 0); allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * * @param _spender The address which will s...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 3749, 4089 ] }
6,283
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { require(_subtractedValue > 0); uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sende...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * * @param _spender The address which will s...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 4553, 5074 ] }
6,284
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
StandardToken
contract StandardToken is Ownable { using SafeMath for uint; string public name; string public symbol; uint8 public decimals; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; /** * Eve...
/** * @title Standard ERC20 token */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner The address which owns the funds. * @param _spender The address which will spend the funds. * @return A uint specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 5391, 5559 ] }
6,285
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
freezeTransfer
function freezeTransfer() public onlyOwner { isTradable = false; FreezeTransfer(); }
/** * Disallow to transfer token from an address to other address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 345, 480 ] }
6,286
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
unfreezeTransfer
function unfreezeTransfer() public onlyOwner { isTradable = true; UnfreezeTransfer(); }
/** * Allow to transfer token from an address to other address */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 566, 704 ] }
6,287
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value) public canTransfer returns (bool) { return super.transfer(_to, _value); }
/** * @dev Transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 876, 1044 ] }
6,288
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint _value) public canTransfer returns (bool) { return super.transferFrom(_from, _to, _value); }
/** * @dev Transfer tokens from one address to another * @param _from The address which you want to send tokens from * @param _to The address which you want to transfer to * @param _value The amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1312, 1510 ] }
6,289
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
approve
function approve(address _spender, uint _value) public canTransfer returns (bool) { return super.approve(_spender, _value); }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 2170, 2346 ] }
6,290
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public canTransfer returns (bool) { return super.increaseApproval(_spender, _addedValue); }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * * @param _spender The address which will s...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 2805, 3009 ] }
6,291
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
PausableToken
contract PausableToken is StandardToken { bool public isTradable = true; /** * Events */ event FreezeTransfer(); event UnfreezeTransfer(); modifier canTransfer() { require(isTradable); _; } /** * Disallow to transfer token from an address to...
/** * @title Pausable token * @dev Token that can be freeze "Transfer" function */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public canTransfer returns (bool) { return super.decreaseApproval(_spender, _subtractedValue); }
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * * @param _spender The address which will s...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 3473, 3687 ] }
6,292
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
changeUpgradeMaster
function changeUpgradeMaster(address _newMaster) public onlyOwner { require(_newMaster != 0); upgradeMaster = _newMaster; ChangeUpgradeMaster(_newMaster); }
/** * Change the upgrade master. * @param _newMaster New upgrade master. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 862, 1080 ] }
6,293
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
changeUpgradeAgent
function changeUpgradeAgent(address _newAgent) public onlyOwner { require(totalUpgraded == 0); upgradeAgent = UpgradeAgent(_newAgent); require(upgradeAgent.isUpgradeAgent()); ChangeUpgradeAgent(_newAgent); }
/** * Change the upgrade agent. * @param _newAgent New upgrade agent. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1179, 1461 ] }
6,294
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
freezeUpgrade
function freezeUpgrade() public onlyOwner { isUpgradable = false; FreezeUpgrade(); }
/** * Disallow to upgrade token to new smart contract */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1538, 1673 ] }
6,295
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
unfreezeUpgrade
function unfreezeUpgrade() public onlyOwner { isUpgradable = true; UnfreezeUpgrade(); }
/** * Allow to upgrade token to new smart contract */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1747, 1885 ] }
6,296
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
upgrade
function upgrade() public canUpgrade { uint amount = balanceOf[msg.sender]; require(amount > 0); processUpgrade(msg.sender, amount); }
/** * Token holder upgrade their tokens to a new smart contract. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 1973, 2171 ] }
6,297
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
UpgradableToken
contract UpgradableToken is StandardToken { address public upgradeMaster; // The next contract where the tokens will be migrated. UpgradeAgent public upgradeAgent; bool public isUpgradable = false; // How many tokens we have upgraded by now. uint public totalUpgraded; /** ...
/** * @title Upgradable token */
NatSpecMultiLine
forceUpgrade
function forceUpgrade(address[] _holders) public onlyUpgradeMaster canUpgrade { uint amount; for (uint i = 0; i < _holders.length; i++) { amount = balanceOf[_holders[i]]; if (amount == 0) { continue; } processUpgrade(_holders[i], amount); ...
/** * Upgrader upgrade tokens of holder to a new smart contract. * @param _holders List of token holder. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 2305, 2691 ] }
6,298
QNTU
QNTU.sol
0x4234f63b1d202f6c016ca3b6a0d41d7d85f17716
Solidity
QNTU
contract QNTU is UpgradableToken, PausableToken { /** * @dev Constructor */ function QNTU(address[] _wallets, uint[] _amount) public { require(_wallets.length == _amount.length); symbol = "QNTU"; name = "QNTU Token"; decimals = 18; u...
/** * @title QNTU 1.0 token */
NatSpecMultiLine
QNTU
function QNTU(address[] _wallets, uint[] _amount) public { require(_wallets.length == _amount.length); symbol = "QNTU"; name = "QNTU Token"; decimals = 18; uint num = 0; uint length = _wallets.length; uint multiplier = 10 ** uint(decimals); for (uint i = 0; i < length...
/** * @dev Constructor */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://7b2322c984aba8e3e0ec830a52d277a41c06b6784a66d81856018224b990ea68
{ "func_code_index": [ 96, 655 ] }
6,299