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
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairToken
contract PayFairToken is SafeMath, ERC20, Ownable { string public name = "PayFair Token"; string public symbol = "PFR"; uint public constant decimals = 8; uint public constant FROZEN_TOKENS = 11e6; uint public constant FREEZE_PERIOD = 1 years; uint public constant MULTIPLIER = 10 ** decimals; uint public ...
/// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
NatSpecSingleLine
transferFrom
function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(2 * 32) canTransfer checkFrozenAmount(_from, _value) returns (bool success) { var _allowance = allowed[_from][msg.sender]; balances[_to] = safeAdd(balances[_to], _value); balances[_from] = safeSub(balances[_from], _value); ...
/// @dev Tranfer tokens from one address to other /// @param _from source address /// @param _to dest address /// @param _value tokens amount /// @return transfer result
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 4023, 4463 ] }
17,200
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairToken
contract PayFairToken is SafeMath, ERC20, Ownable { string public name = "PayFair Token"; string public symbol = "PFR"; uint public constant decimals = 8; uint public constant FROZEN_TOKENS = 11e6; uint public constant FREEZE_PERIOD = 1 years; uint public constant MULTIPLIER = 10 ** decimals; uint public ...
/// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
NatSpecSingleLine
balanceOf
function balanceOf(address _owner) constant returns (uint balance) { return balances[_owner]; }
/// @dev Tokens balance /// @param _owner holder address /// @return balance amount
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 4554, 4657 ] }
17,201
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairToken
contract PayFairToken is SafeMath, ERC20, Ownable { string public name = "PayFair Token"; string public symbol = "PFR"; uint public constant decimals = 8; uint public constant FROZEN_TOKENS = 11e6; uint public constant FREEZE_PERIOD = 1 years; uint public constant MULTIPLIER = 10 ** decimals; uint public ...
/// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
NatSpecSingleLine
approve
function approve(address _spender, uint _value) returns (bool success) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/E...
/// @dev Approve transfer /// @param _spender holder address /// @param _value tokens amount /// @return result
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 4780, 5322 ] }
17,202
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairToken
contract PayFairToken is SafeMath, ERC20, Ownable { string public name = "PayFair Token"; string public symbol = "PFR"; uint public constant decimals = 8; uint public constant FROZEN_TOKENS = 11e6; uint public constant FREEZE_PERIOD = 1 years; uint public constant MULTIPLIER = 10 ** decimals; uint public ...
/// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
NatSpecSingleLine
allowance
function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; }
/// @dev Token allowance /// @param _owner holder address /// @param _spender spender address /// @return remain amount
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 5453, 5585 ] }
17,203
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
PayFairTokenCrowdsale
function PayFairTokenCrowdsale(address _token, address _multisigWallet, uint _start) { require(_multisigWallet != 0); require(_start != 0); token = PayFairToken(_token); multisigWallet = _multisigWallet; startsAt = _start; milestones.push(Milestone(startsAt, startsAt + 1 days, 20)); milestone...
/// @dev Constructor /// @param _token Pay Fair token address /// @param _multisigWallet team wallet /// @param _start token ICO start date
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 3154, 3708 ] }
17,204
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
function() payable { buy(); }
/// Don't expect to just send in money and get tokens.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 3770, 3810 ] }
17,205
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
getCurrentMilestone
function getCurrentMilestone() private constant returns (Milestone) { for (uint i = 0; i < milestones.length; i++) { if (milestones[i].start <= now && milestones[i].end > now) { return milestones[i]; } }
/// @dev Get the current milestone or bail out if we are not in the milestone periods. /// @return Milestone current bonus milestone
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 3952, 4194 ] }
17,206
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
investInternal
function investInternal(address receiver) stopInEmergency private { var state = getState(); require(state == State.Funding); require(msg.value > 0); // Add investment record var weiAmount = msg.value; investments.push(Investment(receiver, weiAmount, getCurrentMilestone().bonus + 100)); investedAm...
/// @dev Make an investment. Crowdsale must be running for one to invest. /// @param receiver The Ethereum address who receives the tokens
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 4344, 4978 ] }
17,207
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
invest
function invest(address receiver) public payable { investInternal(receiver); }
/// @dev Allow anonymous contributions to this crowdsale. /// @param receiver The Ethereum address who receives the tokens
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 5110, 5199 ] }
17,208
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
buy
function buy() public payable { invest(msg.sender); }
/// @dev The basic entry point to participate the crowdsale process.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 5655, 5719 ] }
17,209
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
finalize
function finalize() public inState(State.Success) onlyOwner stopInEmergency { require(!finalized); finalized = true; finalizeCrowdsale(); }
/// @dev Finalize a succcesful crowdsale.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 5767, 5929 ] }
17,210
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
finalizeCrowdsale
function finalizeCrowdsale() internal { // Calculate divisor of the total token count uint divisor; for (uint i = 0; i < investments.length; i++) divisor = safeAdd(divisor, safeMul(investments[i].weiValue, investments[i].weight)); uint localMultiplier = 10 ** 12; // Get unit price uint unitPri...
/// @dev Finalize a succcesful crowdsale.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 5977, 6796 ] }
17,211
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
loadRefund
function loadRefund() public payable inState(State.Failure) { require(msg.value > 0); loadedRefund = safeAdd(loadedRefund, msg.value); }
/// @dev Allow load refunds back on the contract for the refunding.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 6870, 7022 ] }
17,212
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
refund
function refund() public inState(State.Refunding) { uint256 weiValue = investedAmountOf[msg.sender]; if (weiValue == 0) return; investedAmountOf[msg.sender] = 0; weiRefunded = safeAdd(weiRefunded, weiValue); Refund(msg.sender, weiValue); msg.sender.transfer(weiValue); }
/// @dev Investors can claim refund.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 7065, 7378 ] }
17,213
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
isMinimumGoalReached
function isMinimumGoalReached() public constant returns (bool reached) { return weiRaised >= MIN_ICO_GOAL; }
/// @dev Minimum goal was reached /// @return true if the crowdsale has raised enough money to not initiate the refunding
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 7509, 7628 ] }
17,214
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
isCrowdsaleFull
function isCrowdsaleFull() public constant returns (bool) { return isMinimumGoalReached() && now > startsAt + ICO_DURATION; }
/// @dev Check if the ICO goal was reached. /// @return true if the crowdsale has raised enough money to be a success
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 7755, 7891 ] }
17,215
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
getState
function getState() public constant returns (State) { if (finalized) return State.Finalized; if (address(token) == 0 || address(multisigWallet) == 0) return State.Preparing; if (preIcoTokensDistributed < token.convertToDecimal(PRE_ICO_MAX_TOKENS)) return State.PreFunding; if (now >= startsA...
/// @dev Crowdfund state machine management. /// @return State current state
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 7977, 8605 ] }
17,216
PayFairTokenCrowdsale
PayFairTokenCrowdsale.sol
0x3200a57215941de7e460cf32810780ee5bf8a134
Solidity
PayFairTokenCrowdsale
contract PayFairTokenCrowdsale is Haltable, Killable, SafeMath { /// Total count of tokens distributed via ICO uint public constant TOTAL_ICO_TOKENS = 56e6; /// Total count of tokens distributed manually on the pre-ICO stage uint public constant PRE_ICO_MAX_TOKENS = 33e6; /// Miminal tokens funding...
/// @title PayFairTokenCrowdsale contract - contract for token sales.
NatSpecSingleLine
assignTokens
function assignTokens(address receiver, uint tokenAmount) private { token.mint(receiver, tokenAmount); }
/// @dev Dynamically create tokens and assign them to the investor. /// @param receiver investor address /// @param tokenAmount The amount of tokens we try to give to the investor in the current transaction
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041
{ "func_code_index": [ 8831, 8949 ] }
17,217
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 60, 124 ] }
17,218
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 232, 309 ] }
17,219
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 546, 623 ] }
17,220
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 946, 1042 ] }
17,221
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 1326, 1407 ] }
17,222
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 1615, 1712 ] }
17,223
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
NUTScoin
contract NUTScoin is StandardToken { // CHANGE THIS. Update the contract name. /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functi...
NUTScoin
function NUTScoin() { balances[msg.sender] = 115000000000000000000000000000000000000000000000000000000000000000000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE TH...
// Where should the raised ETH go? // This is a constructor function // which means the following function name has to match the contract name declared above
LineComment
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 1196, 2331 ] }
17,224
NUTScoin
NUTScoin.sol
0x308cdde4e47022a12912e5e7179c47e550d2d25a
Solidity
NUTScoin
contract NUTScoin is StandardToken { // CHANGE THIS. Update the contract name. /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functi...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s...
/* Approves and then calls the receiving contract */
Comment
v0.4.20+commit.3155dd80
bzzr://bc57bbd73efe5a8d1bc94650a40d9a75cc31f9b6449291215710785ad0942279
{ "func_code_index": [ 2955, 3760 ] }
17,225
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
allowance
function allowance(address account, address spender) external view returns (uint) { return allowances[account][spender]; }
/** * @notice Get the number of tokens `spender` is approved to spend on behalf of `account` * @param account The address of the account holding the funds * @param spender The address of the account spending the funds * @return The number of tokens approved */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 2995, 3136 ] }
17,226
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
approve
function approve(address spender, uint rawAmount) external returns (bool) { uint96 amount; if (rawAmount == uint(-1)) { amount = uint96(-1); } else { amount = safe96(rawAmount, "DEBO::approve: amount exceeds 96 bits"); } allowances[msg.sender][spender] = amount; emit ...
/** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param rawAmount Th...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 3609, 4033 ] }
17,227
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
balanceOf
function balanceOf(address account) external view returns (uint) { return balances[account]; }
/** * @notice Get the number of tokens held by the `account` * @param account The address of the account to get the balance of * @return The number of tokens held */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 4231, 4344 ] }
17,228
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
transfer
function transfer(address dst, uint rawAmount) external returns (bool) { uint96 amount = safe96(rawAmount, "DEBO::transfer: amount exceeds 96 bits"); _transferTokens(msg.sender, dst, amount); return true; }
/** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param rawAmount The number of tokens to transfer * @return Whether or not the transfer succeeded */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 4603, 4846 ] }
17,229
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
transferFrom
function transferFrom(address src, address dst, uint rawAmount) external returns (bool) { address spender = msg.sender; uint96 spenderAllowance = allowances[src][spender]; uint96 amount = safe96(rawAmount, "DEBO::approve: amount exceeds 96 bits"); if (spender != src && spenderAllowance != uint96(-...
/** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param rawAmount The number of tokens to transfer * @return Whether or not the transfer succeeded */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 5151, 5828 ] }
17,230
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
delegate
function delegate(address delegatee) public { return _delegate(msg.sender, delegatee); }
/** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 5971, 6078 ] }
17,231
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
delegateBySig
function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public { bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, exp...
/** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECD...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 6507, 7301 ] }
17,232
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
getCurrentVotes
function getCurrentVotes(address account) external view returns (uint96) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; }
/** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 7497, 7724 ] }
17,233
Debo
Debo.sol
0xb8a881e8b537026cae123d1be5e6c82c879369c0
Solidity
Debo
contract Debo { /// @notice EIP-20 token name for this token string public constant name = "Deborrow"; /// @notice EIP-20 token symbol for this token string public constant symbol = "DEBO"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; ///...
getPriorVotes
function getPriorVotes(address account, uint blockNumber) public view returns (uint96) { require(blockNumber < block.number, "DEBO::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent ba...
/** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at ...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://4aeb11f67f0d76dca652bea9a3228ab6349bc7c599a9237603167a8cae3ff658
{ "func_code_index": [ 8150, 9373 ] }
17,234
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
isContributorInLists
function isContributorInLists(address contributor) external view returns(bool) { return whiteList[contributor] || privilegedList[contributor] || token.limitedWallets(contributor); }
/** * @dev check if address can contribute */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 4815, 5015 ] }
17,235
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
isValidContribution
function isValidContribution() internal view returns(bool) { uint256 currentUserContribution = safeAdd(msg.value, userTotalContributed[msg.sender]); if(whiteList[msg.sender] && msg.value >= ETHER_MIN_CONTRIB) { if(now <= MAX_CONTRIB_CHECK_END_TIME && currentUserContribution > ETHER_MAX_CONTRIB ) { ...
/** * @dev check contribution amount and time */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 5084, 6098 ] }
17,236
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
validateCap
function validateCap() internal view returns(bool){ if(msg.value <= safeSub(hardCap, totalEtherContributed)) { return true; } return false; }
/** * @dev Check hard cap overflow */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 6156, 6347 ] }
17,237
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
setTokenPrice
function setTokenPrice(uint256 _tokenPriceNum, uint256 _tokenPriceDenom) public onlyOwner { require(tokenPriceNum == 0 && tokenPriceDenom == 0); require(_tokenPriceNum > 0 && _tokenPriceDenom > 0); tokenPriceNum = _tokenPriceNum; tokenPriceDenom = _tokenPriceDenom; }
/** * @dev Set token price once before start of crowdsale */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 6428, 6741 ] }
17,238
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
setHardCap
function setHardCap(uint256 _hardCap) public onlyOwner { require(hardCap == 0); hardCap = _hardCap; }
/** * @dev Set hard cap. * @param _hardCap - Hard cap value */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 6830, 6959 ] }
17,239
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
setSoftCap
function setSoftCap(uint256 _softCap) public onlyOwner { require(softCap == 0); softCap = _softCap; }
/** * @dev Set soft cap. * @param _softCap - Soft cap value */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 7048, 7177 ] }
17,240
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
getSoftCap
function getSoftCap() external view returns(uint256) { return softCap; }
/** * @dev Get soft cap amount **/
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 7232, 7323 ] }
17,241
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
isValidBNBContribution
function isValidBNBContribution() internal view returns(bool) { if(token.limitedWallets(msg.sender)) { return false; } if(!whiteList[msg.sender] && !privilegedList[msg.sender]) { return false; } uint256 amount = bnbToken.allowance(msg.sender, address(this)); if(amount < B...
/** * @dev Check bnb contribution time, amount and hard cap overflow */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 7415, 7913 ] }
17,242
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
getBonus
function getBonus() internal constant returns (uint256, uint256) { uint256 numerator = 0; uint256 denominator = 100; if(now < BONUS_WINDOW_1_END_TIME) { numerator = 25; } else if(now < BONUS_WINDOW_2_END_TIME) { numerator = 15; } else if(now < BONUS_WINDOW_3_END_TIME) { ...
/** * @dev Calc bonus amount by contribution time */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 7986, 8551 ] }
17,243
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
addToWhiteList
function addToWhiteList(address _wallet) public onlyOwner { whiteList[_wallet] = true; }
/** * @dev Add wallet to whitelist. For contract owner only. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 9373, 9480 ] }
17,244
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
addAdditionalBonusMember
function addAdditionalBonusMember(address _wallet) public onlyOwner { additionalBonusOwnerState[_wallet] = AdditionalBonusState.Active; }
/** * @dev Add wallet to additional bonus members. For contract owner only. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 9579, 9735 ] }
17,245
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
addToPrivilegedList
function addToPrivilegedList(address _wallet) public onlyOwner { privilegedList[_wallet] = true; }
/** * @dev Add wallet to privileged list. For contract owner only. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 9825, 9942 ] }
17,246
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
setLockedTokens
function setLockedTokens(address lockedTokensAddress) public onlyOwner { lockedTokens = LockedTokens(lockedTokensAddress); }
/** * @dev Set LockedTokens contract address */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 10010, 10153 ] }
17,247
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
function () payable public whenNotPaused { if(whiteList[msg.sender] || privilegedList[msg.sender] || token.limitedWallets(msg.sender)) { processContribution(msg.sender, msg.value); } else { processReservationContribution(msg.sender, msg.value); } }
/** * @dev Fallback function to receive ether contributions */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 10236, 10547 ] }
17,248
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
processBNBContribution
function processBNBContribution() public whenNotPaused checkTime checkBNBContribution { bool additionalBonusApplied = false; uint256 bonusNum = 0; uint256 bonusDenom = 100; (bonusNum, bonusDenom) = getBonus(); uint256 amountBNB = bnbToken.allowance(msg.sender, address(this)); bnbToken.tran...
/** * @dev Process BNB token contribution * Transfer all amount of tokens approved by sender. Calc bonuses and issue tokens to contributor. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 11740, 13299 ] }
17,249
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
processContribution
function processContribution(address contributor, uint256 amount) private checkTime checkContribution checkCap { bool additionalBonusApplied = false; uint256 bonusNum = 0; uint256 bonusDenom = 100; (bonusNum, bonusDenom) = getBonus(); uint256 tokenBonusAmount = 0; uint256 tokenAmount = s...
/** * @dev Process ether contribution. Calc bonuses and issue tokens to contributor. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 13407, 14531 ] }
17,250
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
processReservationFundContribution
function processReservationFundContribution( address contributor, uint256 tokenAmount, uint256 tokenBonusAmount ) external payable checkCap { require(msg.sender == address(reservationFund)); require(msg.value > 0); processPayment(contributor, msg.value, tokenAmount, tokenBonusAmount, fa...
/** * @dev Process ether contribution before KYC. Calc bonuses and tokens to issue after KYC. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 14648, 15013 ] }
17,251
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
finalizeCrowdsale
function finalizeCrowdsale() public onlyOwner { if( (totalEtherContributed >= safeSub(hardCap, 20 ether) && totalBNBContributed >= safeSub(BNB_HARD_CAP, 10000 ether)) || (now >= SALE_END_TIME && totalEtherContributed >= softCap) ) { fund.onCrowdsaleEnd(); reservationFund.on...
/** * @dev Finalize crowdsale if we reached hard cap or current time > SALE_END_TIME */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 15778, 17948 ] }
17,252
TheAbyssDAICO
contracts/Crowdsale.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
TheAbyssDAICO
contract TheAbyssDAICO is Ownable, SafeMath, Pausable, ISimpleCrowdsale { enum AdditionalBonusState { Unavailable, Active, Applied } uint256 public constant ADDITIONAL_BONUS_NUM = 3; uint256 public constant ADDITIONAL_BONUS_DENOM = 100; uint256 public constant ETH...
refundBNBContributor
function refundBNBContributor() public { require(bnbRefundEnabled); require(bnbContributions[msg.sender] > 0); uint256 amount = bnbContributions[msg.sender]; bnbContributions[msg.sender] = 0; bnbToken.transfer(msg.sender, amount); token.destroy(msg.sender, token.balanceOf(msg.sender)); } ...
/** * @dev Function is called by contributor to refund BNB token payments if crowdsale failed to reach soft cap */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 18083, 18435 ] }
17,253
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
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) ret...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 268, 507 ] }
17,254
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
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) ret...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) 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.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 714, 823 ] }
17,255
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 169, 222 ] }
17,256
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner { if (newOwner != address(0)) { owner = newOwner; } }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 545, 676 ] }
17,257
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) 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 ...
/** * @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) returns (bool) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); balances[_to] = balances[_to].add(_val...
/** * @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 amout of tokens to be transfered */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 390, 893 ] }
17,258
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) 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 ...
/** * @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) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs...
/** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 1128, 1676 ] }
17,259
IWWEE
IWWEE.sol
0xfc7e01c56db28316f615b229b1d786254c31b2ba
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) 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 ...
/** * @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) 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 specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c68e5d1c8b345242c8cfe96c764b85139addae80a9663dfe6ffd780416145a1a
{ "func_code_index": [ 1997, 2135 ] }
17,260
FriendlyShibaInu
FriendlyShibaInu.sol
0x60b42779fb9404786089cccb7bc0f9bbead97e15
Solidity
Context
contract Context { constructor() internal {} // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns(address payable) { return msg.sender; } }
_msgSender
function _msgSender() internal view returns(address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.17+commit.d19bba13
None
bzzr://3099c4e2f948d596e546c3105b7d5a0764d92e4486491d80896ae3a9e02c6663
{ "func_code_index": [ 105, 207 ] }
17,261
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 104, 168 ] }
17,262
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 261, 338 ] }
17,263
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 584, 670 ] }
17,264
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 971, 1063 ] }
17,265
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 1770, 1853 ] }
17,266
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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 r...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 2194, 2300 ] }
17,267
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 290, 496 ] }
17,268
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 805, 958 ] }
17,269
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 1287, 1504 ] }
17,270
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 1789, 2309 ] }
17,271
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 2817, 2966 ] }
17,272
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 3494, 3801 ] }
17,273
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 4298, 4445 ] }
17,274
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
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...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 4962, 5149 ] }
17,275
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 658, 1322 ] }
17,276
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 2301, 2727 ] }
17,277
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 3538, 3726 ] }
17,278
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 3970, 4183 ] }
17,279
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 4587, 4830 ] }
17,280
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Amon...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 5100, 5437 ] }
17,281
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { ad...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 545, 641 ] }
17,282
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { ad...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 1247, 1416 ] }
17,283
Blast
Blast.sol
0xdcd48d12b73c43249ac2cea37eed1c544eec8268
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { ad...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://32ada047c6d142b4e970761316f8a6ece1679f4c7ddc56bfe3effa66a139f885
{ "func_code_index": [ 1579, 1848 ] }
17,284
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
Initializable
contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the ini...
/** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable co...
NatSpecMultiLine
isConstructor
function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effecti...
/// @dev Returns true if and only if the function is running in the constructor
NatSpecSingleLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 854, 1427 ] }
17,285
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
Initializable
contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the ini...
/** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable co...
NatSpecMultiLine
isInitialized
function isInitialized() public view returns (bool) { return initialized; }
/** * @dev Return true if and only if the contract has been initialized * @return whether the contract has been initialized */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 1580, 1674 ] }
17,286
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
UpgradeableClaimable
contract UpgradeableClaimable is Initializable, Context { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting a custom initial owner of choice. * @param...
/** * @title UpgradeableClaimable * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. Since * this contract ...
NatSpecMultiLine
initialize
function initialize(address __owner) internal initializer { _owner = __owner; emit OwnershipTransferred(address(0), __owner); }
/** * @dev Initializes the contract setting a custom initial owner of choice. * @param __owner Initial owner of contract to be set. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 376, 531 ] }
17,287
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
UpgradeableClaimable
contract UpgradeableClaimable is Initializable, Context { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting a custom initial owner of choice. * @param...
/** * @title UpgradeableClaimable * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. Since * this contract ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 607, 691 ] }
17,288
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
UpgradeableClaimable
contract UpgradeableClaimable is Initializable, Context { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting a custom initial owner of choice. * @param...
/** * @title UpgradeableClaimable * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. Since * this contract ...
NatSpecMultiLine
pendingOwner
function pendingOwner() public view returns (address) { return _pendingOwner; }
/** * @dev Returns the address of the pending owner. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 767, 865 ] }
17,289
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
UpgradeableClaimable
contract UpgradeableClaimable is Initializable, Context { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting a custom initial owner of choice. * @param...
/** * @title UpgradeableClaimable * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. Since * this contract ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _pendingOwner = newOwner; }
/** * @dev Allows the current owner to set the pendingOwner address. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 1479, 1589 ] }
17,290
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
UpgradeableClaimable
contract UpgradeableClaimable is Initializable, Context { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting a custom initial owner of choice. * @param...
/** * @title UpgradeableClaimable * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. Since * this contract ...
NatSpecMultiLine
claimOwnership
function claimOwnership() public onlyPendingOwner { emit OwnershipTransferred(_owner, _pendingOwner); _owner = _pendingOwner; _pendingOwner = address(0); }
/** * @dev Allows the pendingOwner address to finalize the transfer. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 1681, 1873 ] }
17,291
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
ImplementationReference
contract ImplementationReference is UpgradeableClaimable { address public implementation; /** * @dev Event to show that implementation address has been changed * @param newImplementation New address of the implementation */ event ImplementationChanged(address newImplementation); ...
/** * @title ImplementationReference * @dev This contract is made to serve a simple purpose only. * To hold the address of the implementation contract to be used by proxy. * The implementation address, is changeable anytime by the owner of this contract. */
NatSpecMultiLine
setImplementation
function setImplementation(address newImplementation) external onlyOwner { implementation = newImplementation; emit ImplementationChanged(newImplementation); }
/** * @dev Function to change the implementation address, which can be called only by the owner * @param newImplementation New address of the implementation */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 807, 994 ] }
17,292
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
proxyOwner
function proxyOwner() public view returns (address owner) { bytes32 position = proxyOwnerPosition; assembly { owner := sload(position) } }
/** * @dev Tells the address of the owner * @return owner the address of the owner */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 2563, 2751 ] }
17,293
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
pendingProxyOwner
function pendingProxyOwner() public view returns (address pendingOwner) { bytes32 position = pendingProxyOwnerPosition; assembly { pendingOwner := sload(position) } }
/** * @dev Tells the address of the owner * @return pendingOwner the address of the pending owner */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 2878, 3094 ] }
17,294
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
_setUpgradeabilityOwner
function _setUpgradeabilityOwner(address newProxyOwner) internal { bytes32 position = proxyOwnerPosition; assembly { sstore(position, newProxyOwner) } }
/** * @dev Sets the address of the owner * @param newProxyOwner New owner to be set */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 3207, 3409 ] }
17,295
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
_setPendingUpgradeabilityOwner
function _setPendingUpgradeabilityOwner(address newPendingProxyOwner) internal { bytes32 position = pendingProxyOwnerPosition; assembly { sstore(position, newPendingProxyOwner) } }
/** * @dev Sets the address of the owner * @param newPendingProxyOwner New pending owner address */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 3535, 3765 ] }
17,296
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
transferProxyOwnership
function transferProxyOwnership(address newOwner) external onlyProxyOwner { require(newOwner != address(0)); _setPendingUpgradeabilityOwner(newOwner); emit NewPendingOwner(proxyOwner(), newOwner); }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * changes the pending owner to newOwner. But doesn't actually transfer * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 4014, 4249 ] }
17,297
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
claimProxyOwnership
function claimProxyOwnership() external onlyPendingProxyOwner { emit ProxyOwnershipTransferred(proxyOwner(), pendingProxyOwner()); _setUpgradeabilityOwner(pendingProxyOwner()); _setPendingUpgradeabilityOwner(address(0)); }
/** * @dev Allows the pendingOwner to claim ownership of the proxy */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 4339, 4598 ] }
17,298
OwnedProxyWithReference
OwnedProxyWithReference.sol
0x1ed460d149d48fa7d91703bf4890f97220c09437
Solidity
OwnedProxyWithReference
contract OwnedProxyWithReference { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address indexed previousOwner,...
/** * @title OwnedProxyWithReference * @dev This contract combines an upgradeability proxy with basic authorization control functionalities * Its structure makes it easy for a group of contracts alike, to share an implementation and to change it easily for all of them at once */
NatSpecMultiLine
changeImplementationReference
function changeImplementationReference(address _implementationReference) public virtual onlyProxyOwner { _changeImplementationReference(_implementationReference); }
/** * @dev Allows the proxy owner to change the contract holding address of implementation. * @param _implementationReference representing the address contract, which holds implementation. */
NatSpecMultiLine
v0.6.10+commit.00c0fcaf
MIT
ipfs://4414d87863f7493cba07450f067e5798740d25895d8a515f930224351ce21951
{ "func_code_index": [ 4816, 4999 ] }
17,299