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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
106,
544
]
} | 10,800 | |
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
674,
982
]
} | 10,801 | |
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
1115,
1270
]
} | 10,802 | |
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
1353,
1508
]
} | 10,803 | |
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
1664,
1793
]
} | 10,804 | |
Nutopia | Nutopia.sol | 0x1c3ac706cf023365004f48da5094ff01c3bed4f2 | Solidity | Nutopia | contract Nutopia is IERC20 {
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
using SafeMath for uint256;
mapping (address => uint256) private _balance;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply... | ownerTransfer | function ownerTransfer(address newOwner) public onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| // Contract owner transfer | LineComment | v0.5.8+commit.23d335f2 | bzzr://862abc8411942d4b1dc2aa18c23f3c5f8824021a54873004ea3eaa6843f73ec3 | {
"func_code_index": [
2498,
2691
]
} | 10,805 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | _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.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
1636,
2483
]
} | 10,806 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* 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.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
2689,
2846
]
} | 10,807 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | 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;
}
| /**
* 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.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
3121,
3422
]
} | 10,808 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(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.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
3686,
3916
]
} | 10,809 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | 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;
}
}
| /**
* 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.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
4310,
4662
]
} | 10,810 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | 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,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
4832,
5211
]
} | 10,811 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | JdmanyToken | contract JdmanyToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addr... | 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... | /**
* Destroy tokens from other account
*
* 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://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
5469,
6085
]
} | 10,812 | |||
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | _transfer | function _transfer(address _from, address _to, uint _value) internal {
require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
require (balanceOf[_from] >= _value); // Check if the sender has enough
require (balanceOf[_to] + _value >= balan... | /* Internal transfer, only can be called by this contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
646,
1434
]
} | 10,813 | |
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | mintToken | function mintToken(address target, uint256 mintedAmount) onlyOwner public {
balanceOf[target] += mintedAmount;
totalSupply += mintedAmount;
emit Transfer(0, this, mintedAmount);
emit Transfer(this, target, mintedAmount);
}
| /// @notice Create `mintedAmount` tokens and send it to `target`
/// @param target Address to receive the tokens
/// @param mintedAmount the amount of tokens it will receive | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
1626,
1894
]
} | 10,814 | |
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | freezeAccount | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
2075,
2241
]
} | 10,815 | |
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | setPrices | function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
sellPrice = newSellPrice;
buyPrice = newBuyPrice;
}
| /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
/// @param newSellPrice Price the users can sell to the contract
/// @param newBuyPrice Price users can buy from the contract | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
2484,
2644
]
} | 10,816 | |
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | buy | function buy() payable public {
uint amount = msg.value / buyPrice; // calculates the amount
_transfer(this, msg.sender, amount); // makes the transfers
}
| /// @notice Buy tokens from contract by sending ether | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
2706,
2915
]
} | 10,817 | |
JdmanyToken | JdmanyToken.sol | 0xe45416231e25dfba19816be22dd9b29129aa596f | Solidity | MyAdvancedJdmanyToken | contract MyAdvancedJdmanyToken is owned, JdmanyToken {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/... | /******************************************/ | NatSpecMultiLine | sell | function sell(uint256 amount) public {
address myAddress = this;
require(myAddress.balance >= amount * sellPrice); // checks if the contract has enough ether to buy
_transfer(msg.sender, this, amount); // makes the transfers
msg.sender.transfer(amount * sellPrice); // send... | /// @notice Sell `amount` tokens to contract
/// @param amount amount of tokens to be sold | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://1edc262aa16e08eade77ceb391958079c7fc7d9d09c1d8f8b85939dd80b6f25c | {
"func_code_index": [
3019,
3447
]
} | 10,818 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
T... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
268,
659
]
} | 10,819 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
865,
981
]
} | 10,820 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
401,
853
]
} | 10,821 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
1485,
1675
]
} | 10,822 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
1999,
2144
]
} | 10,823 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
2389,
2662
]
} | 10,824 | |
VeryImportantCoin | VeryImportantCoin.sol | 0xa427fac47100e82d79e8c90ec8e2fca6f1364c21 | Solidity | VeryImportantCoin | contract VeryImportantCoin is StandardToken {
string public constant name = "VeryImportantCoin";
string public constant symbol = "VIC";
uint8 public constant decimals = 4;
uint256 public constant INITIAL_SUPPLY = 1 * (10 ** uint256(decimals));
/**
* @dev Constructor that gives msg.sender all of... | /**
* @title VeryImportantCoin
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
* Note they can later distribute these tokens as they wish using `transfer` and other
* `StandardToken` functions.
*/ | NatSpecMultiLine | VeryImportantCoin | function VeryImportantCoin() {
totalSupply = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
}
| /**
* @dev Constructor that gives msg.sender all of existing tokens.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://74ea80c3ea25873750e1e1d7af799c534943744e8ef6055bd59cd92bd132054c | {
"func_code_index": [
346,
463
]
} | 10,825 | |
SubdomainRegistrar | contracts/SubdomainRegistrar.sol | 0xecd494c1c127ee50f4fc569c5643a81f0030e0e8 | Solidity | SubdomainRegistrar | contract SubdomainRegistrar is AbstractSubdomainRegistrar {
modifier onlyOwner() {
require(msg.sender == oowner);
_;
}
event NewSubdomain(string domain, string subdomain, uint256 tokenId, address tokenOwner, string oldSubdomain);
Resolver public resolver;
DotComSeance pu... | /**
Subdomain Registrar is heavily modified from
https://github.com/ensdomains/subdomain-registrar
*/ | NatSpecMultiLine | updateOwner | function updateOwner(address newOwner) public onlyOwner {
oowner = newOwner;
}
| // admin | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://cd3d85f775de700ef786cd63c459acbc005036a05e728cb8569507b7b8b59cae | {
"func_code_index": [
3373,
3470
]
} | 10,826 |
SubdomainRegistrar | contracts/SubdomainRegistrar.sol | 0xecd494c1c127ee50f4fc569c5643a81f0030e0e8 | Solidity | SubdomainRegistrar | contract SubdomainRegistrar is AbstractSubdomainRegistrar {
modifier onlyOwner() {
require(msg.sender == oowner);
_;
}
event NewSubdomain(string domain, string subdomain, uint256 tokenId, address tokenOwner, string oldSubdomain);
Resolver public resolver;
DotComSeance pu... | /**
Subdomain Registrar is heavily modified from
https://github.com/ensdomains/subdomain-registrar
*/ | NatSpecMultiLine | registerSubdomain | function registerSubdomain(string calldata subdomain, uint256 tokenId) external not_stopped payable {
// make sure msg.sender is the owner of the NFT tokenId
address subdomainOwner = dotComSeance.ownerOf(tokenId);
require(subdomainOwner == msg.sender, "cant register a subdomain for an NFT you dont own");... | // meat and potatoes | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://cd3d85f775de700ef786cd63c459acbc005036a05e728cb8569507b7b8b59cae | {
"func_code_index": [
3647,
5190
]
} | 10,827 |
SubdomainRegistrar | contracts/SubdomainRegistrar.sol | 0xecd494c1c127ee50f4fc569c5643a81f0030e0e8 | Solidity | SubdomainRegistrar | contract SubdomainRegistrar is AbstractSubdomainRegistrar {
modifier onlyOwner() {
require(msg.sender == oowner);
_;
}
event NewSubdomain(string domain, string subdomain, uint256 tokenId, address tokenOwner, string oldSubdomain);
Resolver public resolver;
DotComSeance pu... | /**
Subdomain Registrar is heavily modified from
https://github.com/ensdomains/subdomain-registrar
*/ | NatSpecMultiLine | unregister | function unregister(string calldata subdomain, uint256 tokenId) external onlyOwner {
uint256 workId = tokenId / 100;
if (workId == 0) {
workId = tokenId % 100;
}
bytes32 label = idToDomain[workId - 1];
bytes32 domainNode = keccak256(abi.encodePacked(TLD_NODE, label));
bytes32 _s... | // admin | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://cd3d85f775de700ef786cd63c459acbc005036a05e728cb8569507b7b8b59cae | {
"func_code_index": [
5209,
5669
]
} | 10,828 |
SubdomainRegistrar | contracts/SubdomainRegistrar.sol | 0xecd494c1c127ee50f4fc569c5643a81f0030e0e8 | Solidity | SubdomainRegistrar | contract SubdomainRegistrar is AbstractSubdomainRegistrar {
modifier onlyOwner() {
require(msg.sender == oowner);
_;
}
event NewSubdomain(string domain, string subdomain, uint256 tokenId, address tokenOwner, string oldSubdomain);
Resolver public resolver;
DotComSeance pu... | /**
Subdomain Registrar is heavily modified from
https://github.com/ensdomains/subdomain-registrar
*/ | NatSpecMultiLine | register | function register(bytes32 label, string calldata subdomain, address owner, address resolver) external payable {
revert("nope");
}
| // Don't want to modify too much of the inherited ENS stuff.
// Everything below is just to satisfy interface and might be used for ENS frontent. | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://cd3d85f775de700ef786cd63c459acbc005036a05e728cb8569507b7b8b59cae | {
"func_code_index": [
5830,
5978
]
} | 10,829 |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | BRN | function BRN() public {
symbol = "BRN";
name = "Bruno Coin";
decimals = 18;
_totalSupply = 1000000000 * 10**uint(decimals);
balances[owner] = _totalSupply;
Transfer(address(0), owner, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
472,
736
]
} | 10,830 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// 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.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
924,
1045
]
} | 10,831 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// 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.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
1267,
1396
]
} | 10,832 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to `to` account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
1742,
2009
]
} | 10,833 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval do... | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
2521,
2729
]
} | 10,834 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
Transfer(from, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer `tokens` from the `from` account to the `to` account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the `from` account and
// - From account must have sufficient balance to transfe... | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
3268,
3611
]
} | 10,835 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
3894,
4050
]
} | 10,836 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account. The `spender` contract function
// `receiveApproval(...)` is then executed
// ------------------------------------------------------------... | LineComment | v0.4.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
4413,
4730
]
} | 10,837 | |
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// 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.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
4922,
4981
]
} | 10,838 | ||
BRN | BRN.sol | 0x437a9bda25a83392956bbcfda8f4bb7adda81d98 | Solidity | BRN | contract BRN 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;
// -----------------------... | // ----------------------------------------------------------------------------
// 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.24-nightly.2018.4.27+commit.1604a996 | bzzr://3331f9d417ae63fe41127759bb8ef9bfaed5d3f2e9c5e20fbfeb166bce451921 | {
"func_code_index": [
5214,
5403
]
} | 10,839 | |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
5909,
6005
]
} | 10,840 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
6063,
6178
]
} | 10,841 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public returns (bool) {
if(availableForTransfer(_msgSender()) >= amount) {
_transfer(_msgSender(), recipient, amount);
return true;
} else {
revert("Attempt to transfer more tokens than what is allowed at this time");
}
}
... | /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
6388,
6740
]
} | 10,842 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
6798,
6937
]
} | 10,843 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
7079,
7236
]
} | 10,844 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
7703,
8021
]
} | 10,845 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
8425,
8640
]
} | 10,846 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public 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.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
9138,
9404
]
} | 10,847 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "ERC20: Amount not greater than zero");
_balances[se... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
9889,
10434
]
} | 10,848 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
10710,
11023
]
} | 10,849 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amo... | /**
* @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.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
11350,
11703
]
} | 10,850 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is 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... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
12138,
12481
]
} | 10,851 |
XPLL | contracts/token/ERC20/ERC20.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20 | contract ERC20 is IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint16[19] allLockupPeriods = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 400, 450, 480, 540, 60... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
}
| /**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
12662,
12899
]
} | 10,852 |
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | formatDecimals | function formatDecimals(uint256 _value) internal returns (uint256 ) {
return _value * 10 ** decimals;
}
| // 转换 | LineComment | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
1156,
1278
]
} | 10,853 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | WeiWeiToken | function WeiWeiToken(
address _ethFundDeposit,
uint256 _currentSupply)
{
ethFundDeposit = _ethFundDeposit;
isFunding = false; //通过控制预CrowdS ale状态
fundingStartBlock = 0;
fundingStopBlock = 0;
currentSupply = formatDecimals(_currentSupply);
totalSup... | // constructor | LineComment | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
1302,
1796
]
} | 10,854 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | setTokenExchangeRate | function setTokenExchangeRate(uint256 _tokenExchangeRate) isOwner external {
if (_tokenExchangeRate == 0) throw;
if (_tokenExchangeRate == tokenExchangeRate) throw;
tokenExchangeRate = _tokenExchangeRate;
}
| /// 设置token汇率 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
1894,
2140
]
} | 10,855 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | increaseSupply | function increaseSupply (uint256 _value) isOwner external {
uint256 value = formatDecimals(_value);
if (value + currentSupply > totalSupply) throw;
currentSupply = safeAdd(currentSupply, value);
IncreaseSupply(value);
}
| /// @dev 超发token处理 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
2168,
2433
]
} | 10,856 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | decreaseSupply | function decreaseSupply (uint256 _value) isOwner external {
uint256 value = formatDecimals(_value);
if (value + tokenRaised > currentSupply) throw;
currentSupply = safeSubtract(currentSupply, value);
DecreaseSupply(value);
}
| /// @dev 被盗token处理 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
2461,
2734
]
} | 10,857 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | startFunding | function startFunding (uint256 _fundingStartBlock, uint256 _fundingStopBlock) isOwner external {
if (isFunding) throw;
if (_fundingStartBlock >= _fundingStopBlock) throw;
if (block.number >= _fundingStartBlock) throw;
fundingStartBlock = _fundingStartBlock;
fundingStopBlock = _fundingStopBlo... | /// 启动区块检测 异常的处理 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
2761,
3143
]
} | 10,858 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | stopFunding | function stopFunding() isOwner external {
if (!isFunding) throw;
isFunding = false;
}
| /// 关闭区块异常处理 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
3166,
3279
]
} | 10,859 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | setMigrateContract | function setMigrateContract(address _newContractAddr) isOwner external {
if (_newContractAddr == newContractAddr) throw;
newContractAddr = _newContractAddr;
}
| /// 开发了一个新的合同来接收token(或者更新token) | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
3321,
3507
]
} | 10,860 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | changeOwner | function changeOwner(address _newFundDeposit) isOwner() external {
if (_newFundDeposit == address(0x0)) throw;
ethFundDeposit = _newFundDeposit;
}
| /// 设置新的所有者地址 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
3530,
3704
]
} | 10,861 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | migrate | function migrate() external {
if(isFunding) throw;
if(newContractAddr == address(0x0)) throw;
uint256 tokens = balances[msg.sender];
if (tokens == 0) throw;
balances[msg.sender] = 0;
tokenMigrated = safeAdd(tokenMigrated, tokens);
IMigrationContract newContract = IMigrationCo... | ///转移token到新的合约 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
3729,
4240
]
} | 10,862 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | transferETH | function transferETH() isOwner external {
if (this.balance == 0) throw;
if (!ethFundDeposit.send(this.balance)) throw;
}
| /// 转账ETH 到WEI团队 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
4266,
4414
]
} | 10,863 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | allocateToken | function allocateToken (address _addr, uint256 _eth) isOwner external {
if (_eth == 0) throw;
if (_addr == address(0x0)) throw;
uint256 tokens = safeMult(formatDecimals(_eth), tokenExchangeRate);
if (tokens + tokenRaised > currentSupply) throw;
tokenRaised = safeAdd(tokenRaised, tokens);
... | /// 将WEI token分配到预处理地址。 | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
4448,
4891
]
} | 10,864 | |||
WeiWeiToken | WeiWeiToken.sol | 0xd49c3b24ecd9ea1b43e95d15dcdc98111413790e | Solidity | WeiWeiToken | contract WeiWeiToken is StandardToken, SafeMath {
// metadata
string public constant name = "WEI";
string public constant symbol = "WeiWeiCoin";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放... | function () payable {
if (!isFunding) throw;
if (msg.value == 0) throw;
if (block.number < fundingStartBlock) throw;
if (block.number > fundingStopBlock) throw;
uint256 tokens = safeMult(msg.value, tokenExchangeRate);
if (tokens + tokenRaised > currentSupply) throw;
tokenRais... | /// 购买token | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://9a646832112a824221ca6ee198d565b953126385a99b8d8fa1e49f86e4988c3e | {
"func_code_index": [
4912,
5399
]
} | 10,865 | ||||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
251,
437
]
} | 10,866 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
707,
848
]
} | 10,867 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | 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.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1180,
1377
]
} | 10,868 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1623,
2099
]
} | 10,869 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
2562,
2699
]
} | 10,870 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
3224,
3574
]
} | 10,871 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
4026,
4161
]
} | 10,872 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
4675,
4846
]
} | 10,873 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | AggregatorV3Interface | interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to r... | getRoundData | function getRoundData(uint80 _roundId)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
| // getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to report, instead of returning unset values
// which could be misinterpreted as actual reported values. | LineComment | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
425,
640
]
} | 10,874 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | AggregatorV3Interface | interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to r... | latestTimestamp | function latestTimestamp() external view returns (uint256);
| //not actually in AggregatorV3Interface but implemented by said contracts | LineComment | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
926,
988
]
} | 10,875 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | CheckContract | contract CheckContract {
/**
* Check that the account is an already deployed non-destroyed contract.
* See: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L12
*/
function checkContract(address _account) internal view {
require(_account... | checkContract | function checkContract(address _account) internal view {
require(_account != address(0), "Account cannot be zero address");
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(_account) }
require(size > 0, "Account code size cannot be zero");
}
| /**
* Check that the account is an already deployed non-destroyed contract.
* See: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L12
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
234,
576
]
} | 10,876 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
94,
154
]
} | 10,877 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
237,
310
]
} | 10,878 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
534,
616
]
} | 10,879 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
895,
983
]
} | 10,880 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1840,
1919
]
} | 10,881 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
2232,
2334
]
} | 10,882 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC2612 | interface IERC2612 {
/**
* @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens,
* given `owner`'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
... | permit | function permit(address owner, address spender, uint256 amount,
uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
| /**
* @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens,
* given `owner`'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero ... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
883,
1032
]
} | 10,883 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | IERC2612 | interface IERC2612 {
/**
* @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens,
* given `owner`'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
... | nonces | function nonces(address owner) external view returns (uint256);
| /**
* @dev Returns the current ERC2612 nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases `owner`'s nonce by one. This
* prevents a signature from being used multiple times.
*
* `owner` can limit the time a Permi... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1581,
1649
]
} | 10,884 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | beginDispute | function beginDispute(
uint256 _requestId,
uint256 _timestamp,
uint256 _minerIndex
) external;
| /**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being disputed
* @param _minerIndex the index of the... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
498,
629
]
} | 10,885 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | vote | function vote(uint256 _disputeId, bool _supportsDispute) external;
| /**
* @dev Allows token holders to vote
* @param _disputeId is the dispute id
* @param _supportsDispute is the vote (true=the dispute has basis false = vote against dispute)
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
838,
909
]
} | 10,886 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | tallyVotes | function tallyVotes(uint256 _disputeId) external;
| /**
* @dev tallies the votes.
* @param _disputeId is the dispute id
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1006,
1060
]
} | 10,887 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | proposeFork | function proposeFork(address _propNewTellorAddress) external;
| /**
* @dev Allows for a fork to be proposed
* @param _propNewTellorAddress address for new proposed Tellor
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1196,
1262
]
} | 10,888 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | addTip | function addTip(uint256 _requestId, uint256 _tip) external;
| /**
* @dev Add tip to Request value from oracle
* @param _requestId being requested to be mined
* @param _tip amount the requester is willing to pay to be get on queue. Miners
* mine the onDeckQueryHash, or the api with the highest payout pool
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1547,
1611
]
} | 10,889 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | submitMiningSolution | function submitMiningSolution(
string calldata _nonce,
uint256 _requestId,
uint256 _value
) external;
| /**
* @dev This is called by the miner when they submit the PoW solution (proof of work and value)
* @param _nonce uint submitted by miner
* @param _requestId the apiId being mined
* @param _value of api query
*
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
1870,
2008
]
} | 10,890 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | submitMiningSolution | function submitMiningSolution(
string calldata _nonce,
uint256[5] calldata _requestId,
uint256[5] calldata _value
) external;
| /**
* @dev This is called by the miner when they submit the PoW solution (proof of work and value)
* @param _nonce uint submitted by miner
* @param _requestId is the array of the 5 PSR's being mined
* @param _value is an array of 5 values
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
2288,
2450
]
} | 10,891 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | proposeOwnership | function proposeOwnership(address payable _pendingOwner) external;
| /**
* @dev Allows the current owner to propose transfer control of the contract to a
* newOwner and the ownership is pending until the new owner calls the claimOwnership
* function
* @param _pendingOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
2733,
2804
]
} | 10,892 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | claimOwnership | function claimOwnership() external;
| /**
* @dev Allows the new owner to claim control of the contract
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
2892,
2932
]
} | 10,893 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | depositStake | function depositStake() external;
| /**
* @dev This function allows miners to deposit their stake.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
3018,
3056
]
} | 10,894 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | requestStakingWithdraw | function requestStakingWithdraw() external;
| /**
* @dev This function allows stakers to request to withdraw their stake (no longer stake)
* once they lock for withdraw(stakes.currentStatus = 2) they are locked for 7 days before they
* can withdraw the stake
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
3304,
3352
]
} | 10,895 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | withdrawStake | function withdrawStake() external;
| /**
* @dev This function allows users to withdraw their stake after a 7 day waiting period from request
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
3479,
3518
]
} | 10,896 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | approve | function approve(address _spender, uint256 _amount) external returns (bool);
| /**
* @dev This function approves a _spender an _amount of tokens to use
* @param _spender address
* @param _amount amount the spender is being approved for
* @return true if spender appproved successfully
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
3765,
3846
]
} | 10,897 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | transfer | function transfer(address _to, uint256 _amount) external returns (bool);
| /**
* @dev Allows for a transfer of tokens to _to
* @param _to The address to send tokens to
* @param _amount The amount of tokens to send
* @return true if transfer is successful
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
4067,
4144
]
} | 10,898 | ||
StabilityPool | StabilityPool.sol | 0x9a795fcb3bb0e712f0a681f7463644079eead62d | Solidity | ITellor | interface ITellor {
/**
* @dev Helps initialize a dispute by assigning it a disputeId
* when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the
* invalidated value information to POS voting
* @param _requestId being disputed
* @param _timestamp being dis... | transferFrom | function transferFrom(
address _from,
address _to,
uint256 _amount
) external returns (bool);
| /**
* @dev Sends _amount tokens to _to from _from on the condition it
* is approved by _from
* @param _from The address holding the tokens being transferred
* @param _to The address of the recipient
* @param _amount The amount of tokens to be transferred
* @return True if the transfer was successful
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | MIT | ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5 | {
"func_code_index": [
4498,
4628
]
} | 10,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.