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
PlayerOneToken
PlayerOneToken.sol
0xedf2f194c8d885b3b28098ef8e0b6700a2d95de0
Solidity
PlayerOneToken
contract PlayerOneToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
function () external payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.5.12+commit.7709ece9
None
bzzr://2d9b13d046cef584da94e0dd7f45c7c37b0a6b58d61536070c4b09e5beeee8da
{ "func_code_index": [ 5206, 5267 ] }
5,007
PlayerOneToken
PlayerOneToken.sol
0xedf2f194c8d885b3b28098ef8e0b6700a2d95de0
Solidity
PlayerOneToken
contract PlayerOneToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.5.12+commit.7709ece9
None
bzzr://2d9b13d046cef584da94e0dd7f45c7c37b0a6b58d61536070c4b09e5beeee8da
{ "func_code_index": [ 5500, 5689 ] }
5,008
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 798, 919 ] }
5,009
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 1139, 1268 ] }
5,010
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 1612, 1889 ] }
5,011
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 2397, 2605 ] }
5,012
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(from, to, tokens); return...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 3136, 3494 ] }
5,013
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 3777, 3933 ] }
5,014
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 4288, 4605 ] }
5,015
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 4797, 4856 ] }
5,016
myfichain
myfichain.sol
0xd67a6cd797a8fdc77b12335d7dacdfd14ea7c7fd
Solidity
myfichain
contract myfichain is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function myfichain() public { symbol = ...
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://3f5f091a8b4128e586be9a7066f28fc920c390255ce7726353df3ccf63304757
{ "func_code_index": [ 5089, 5278 ] }
5,017
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
Owned
contract Owned { /// @dev `owner` is the only address that can call a function with this /// modifier modifier onlyOwner() { require(msg.sender == owner); _; } address public owner; /// @notice The Constructor assigns the message sender to be `owner` function O...
/// @dev `Owned` is a base level contract that assigns an `owner` that can be /// later changed
NatSpecSingleLine
Owned
function Owned() { owner = msg.sender; }
/// @notice The Constructor assigns the message sender to be `owner`
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 306, 365 ] }
5,018
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
Owned
contract Owned { /// @dev `owner` is the only address that can call a function with this /// modifier modifier onlyOwner() { require(msg.sender == owner); _; } address public owner; /// @notice The Constructor assigns the message sender to be `owner` function O...
/// @dev `Owned` is a base level contract that assigns an `owner` that can be /// later changed
NatSpecSingleLine
changeOwner
function changeOwner(address _newOwner) onlyOwner { newOwner = _newOwner; }
/// @notice `owner` can step down and assign some other address to this role /// @param _newOwner The address of the new owner. 0x0 can be used to create /// an unowned neutral vault, however that cannot be undone
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 630, 724 ] }
5,019
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
ERC20Protocol
contract ERC20Protocol { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint supply); is replaced with: uint public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since publi...
balanceOf
function balanceOf(address _owner) constant returns (uint balance);
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 628, 700 ] }
5,020
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
ERC20Protocol
contract ERC20Protocol { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint supply); is replaced with: uint public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since publi...
transfer
function transfer(address _to, uint _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.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 937, 1009 ] }
5,021
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
ERC20Protocol
contract ERC20Protocol { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint supply); is replaced with: uint public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since publi...
transferFrom
function transferFrom(address _from, address _to, uint _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.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 1332, 1423 ] }
5,022
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
ERC20Protocol
contract ERC20Protocol { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint supply); is replaced with: uint public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since publi...
approve
function approve(address _spender, uint _value) returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 1713, 1789 ] }
5,023
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
ERC20Protocol
contract ERC20Protocol { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint supply); is replaced with: uint public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since publi...
allowance
function allowance(address _owner, address _spender) constant returns (uint 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.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 1997, 2089 ] }
5,024
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanToken
contract WanToken is StandardToken { using SafeMath for uint; /// Constant token specific fields string public constant name = "WanCoin"; string public constant symbol = "WAN"; uint public constant decimals = 18; /// Wanchain total tokens supply uint public constant MAX_TOTAL_TOKE...
/// @title Wanchain Token Contract /// For more information about this token sale, please visit https://wanchain.org /// @author Cathy - <cathy@wanchain.org>
NatSpecSingleLine
WanToken
function WanToken(address _minter, uint _startTime, uint _endTime){ minter = _minter; startTime = _startTime; endTime = _endTime; }
/** * CONSTRUCTOR * * @dev Initialize the Wanchain Token * @param _minter The Wanchain Contribution Contract * @param _startTime ICO start time * @param _endTime ICO End Time */
NatSpecMultiLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 1263, 1431 ] }
5,025
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanToken
contract WanToken is StandardToken { using SafeMath for uint; /// Constant token specific fields string public constant name = "WanCoin"; string public constant symbol = "WAN"; uint public constant decimals = 18; /// Wanchain total tokens supply uint public constant MAX_TOTAL_TOKE...
/// @title Wanchain Token Contract /// For more information about this token sale, please visit https://wanchain.org /// @author Cathy - <cathy@wanchain.org>
NatSpecSingleLine
mintToken
function mintToken(address receipent, uint amount) external onlyMinter maxWanTokenAmountNotReached(amount) returns (bool) { require(now <= endTime); lockedBalances[receipent] = lockedBalances[receipent].add(amount); totalSupply = totalSupply.add(amount); return true; }
/** * EXTERNAL FUNCTION * * @dev Contribution contract instance mint token * @param receipent The destination account owned mint tokens * @param amount The amount of mint token * be sent to this address. */
NatSpecMultiLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 1698, 2054 ] }
5,026
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanToken
contract WanToken is StandardToken { using SafeMath for uint; /// Constant token specific fields string public constant name = "WanCoin"; string public constant symbol = "WAN"; uint public constant decimals = 18; /// Wanchain total tokens supply uint public constant MAX_TOTAL_TOKE...
/// @title Wanchain Token Contract /// For more information about this token sale, please visit https://wanchain.org /// @author Cathy - <cathy@wanchain.org>
NatSpecSingleLine
claimTokens
function claimTokens(address receipent) public onlyMinter { balances[receipent] = balances[receipent].add(lockedBalances[receipent]); lockedBalances[receipent] = 0; }
/// @dev Locking period has passed - Locked tokens have turned into tradeable /// All tokens owned by receipent will be tradeable
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 2246, 2463 ] }
5,027
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanToken
contract WanToken is StandardToken { using SafeMath for uint; /// Constant token specific fields string public constant name = "WanCoin"; string public constant symbol = "WAN"; uint public constant decimals = 18; /// Wanchain total tokens supply uint public constant MAX_TOTAL_TOKE...
/// @title Wanchain Token Contract /// For more information about this token sale, please visit https://wanchain.org /// @author Cathy - <cathy@wanchain.org>
NatSpecSingleLine
lockedBalanceOf
function lockedBalanceOf(address _owner) constant returns (uint balance) { return lockedBalances[_owner]; }
/* * CONSTANT METHODS */
Comment
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 2508, 2634 ] }
5,028
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
WanchainContribution
function WanchainContribution(address _wanport, uint _bootTime){ require(_wanport != 0x0); halted = false; wanport = _wanport; earlyReserveBeginTime = _bootTime; startTime = earlyReserveBeginTime + EARLY_CONTRIBUTION_DURATION; endTime = startTime + MAX_CONTRIBUTION_DURATION; openSoldTokens ...
/** * CONSTRUCTOR * * @dev Initialize the Wanchain contribution contract * @param _wanport The escrow account address, all ethers will be sent to this address. * @param _bootTime ICO boot time */
NatSpecMultiLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 4351, 5282 ] }
5,029
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
function () public payable { buyWanCoin(msg.sender); }
/** * Fallback function * * @dev If anybody sends Ether directly to this contract, consider he is getting wan token */
NatSpecMultiLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 5436, 5507 ] }
5,030
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
buyWanCoin
function buyWanCoin(address receipient) public payable notHalted initialized ceilingNotReached notEarlierThan(earlyReserveBeginTime) earlierThan(endTime) returns (bool) { require(receipient != 0x0); require(msg.value >= 0.1 ether); // Do not allow contrac...
/// @dev Exchange msg.value ether to WAN for account recepient /// @param receipient WAN tokens receiver
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 5669, 6422 ] }
5,031
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
setEarlyWhitelistQuotas
function setEarlyWhitelistQuotas(address[] users, uint earlyCap, uint openTag) public onlyOwner earlierThan(earlyReserveBeginTime) { for( uint i = 0; i < users.length; i++) { earlyUserQuotas[users[i]] = earlyCap; fullWhiteList[users[i]] = openTag; } }
/// @dev batch set quota for early user quota
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 6660, 6997 ] }
5,032
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
setLaterWhiteList
function setLaterWhiteList(address[] users, uint openTag) public onlyOwner earlierThan(endTime) { require(saleNotEnd()); for( uint i = 0; i < users.length; i++) { fullWhiteList[users[i]] = openTag; } }
/// @dev batch set quota for early user quota
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 7051, 7334 ] }
5,033
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
halt
function halt() public onlyWallet{ halted = true; }
/// @dev Emergency situation that requires contribution period to stop. /// Contributing not possible anymore.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 7458, 7528 ] }
5,034
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
unHalt
function unHalt() public onlyWallet{ halted = false; }
/// @dev Emergency situation resolved. /// Contributing becomes possible again withing the outlined restrictions.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 7655, 7728 ] }
5,035
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
changeWalletAddress
function changeWalletAddress(address newAddress) onlyWallet { wanport = newAddress; }
/// @dev Emergency situation
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 7765, 7871 ] }
5,036
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
saleNotEnd
function saleNotEnd() constant returns (bool) { return now < endTime && openSoldTokens < MAX_OPEN_SOLD; }
/// @return true if sale not ended, false otherwise.
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 7932, 8056 ] }
5,037
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
priceRate
function priceRate() public constant returns (uint) { // Three price tiers if (earlyReserveBeginTime <= now && now < startTime + 1 weeks) return PRICE_RATE_FIRST; if (startTime + 1 weeks <= now && now < startTime + 2 weeks) return PRICE_RATE_SECOND; if (startTime + 2 weeks <= now &...
/// CONSTANT METHODS /// @dev Get current exchange rate
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 8125, 8627 ] }
5,038
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
buyEarlyAdopters
function buyEarlyAdopters(address receipient) internal { uint quotaAvailable = earlyUserQuotas[receipient]; require(quotaAvailable > 0); uint toFund = quotaAvailable.min256(msg.value); uint tokenAvailable4Adopter = toFund.mul(PRICE_RATE_FIRST); earlyUserQuotas[receipient] = earlyUserQuotas[receip...
/// @dev Buy wanchain tokens for early adopters
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 8869, 9301 ] }
5,039
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
buyNormal
function buyNormal(address receipient) internal { uint inWhiteListTag = fullWhiteList[receipient]; require(inWhiteListTag > 0); // protect partner quota in stage one uint tokenAvailable = MAX_OPEN_SOLD.sub(openSoldTokens); require(tokenAvailable > 0); uint toFund; uint toCollect; (...
/// @dev Buy wanchain token normally
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 9346, 9815 ] }
5,040
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
buyCommon
function buyCommon(address receipient, uint toFund, uint wanTokenCollect) internal { require(msg.value >= toFund); // double check if(toFund > 0) { require(wanToken.mintToken(receipient, wanTokenCollect)); wanport.transfer(toFund); openSoldTokens = openSoldTokens.add(wanT...
/// @dev Utility function for bug wanchain token
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 9872, 10452 ] }
5,041
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
costAndBuyTokens
function costAndBuyTokens(uint availableToken) constant internal returns (uint costValue, uint getTokens){ // all conditions has checked in the caller functions uint exchangeRate = priceRate(); getTokens = exchangeRate * msg.value; if(availableToken >= getTokens){ costValue = msg.value; } else { ...
/// @dev Utility function for calculate available tokens and cost ethers
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 10533, 10985 ] }
5,042
WanchainContribution
WanchainContribution.sol
0xaac3090257be280087d8bdc530265203d105b120
Solidity
WanchainContribution
contract WanchainContribution is Owned { using SafeMath for uint; /// Constant fields /// Wanchain total tokens supply uint public constant WAN_TOTAL_SUPPLY = 210000000 ether; uint public constant EARLY_CONTRIBUTION_DURATION = 24 hours; uint public constant MAX_CONTRIBUTION_DURATION = 3 ...
/// @title Wanchain Contribution Contract /// ICO Rules according: https://www.wanchain.org/crowdsale /// For more information about this token sale, please visit https://wanchain.org /// @author Zane Liang - <zaneliang@wanchain.org>
NatSpecSingleLine
isContract
function isContract(address _addr) constant internal returns(bool) { uint size; if (_addr == 0) return false; assembly { size := extcodesize(_addr) } return size > 0; }
/// @dev Internal function to determine if an address is a contract /// @param _addr The address being queried /// @return True if `_addr` is a contract
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
bzzr://cf354415565dbcba55ca7d803241ed623e9875b86e7d49619e734c70d0b4d0bf
{ "func_code_index": [ 11156, 11392 ] }
5,043
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 94, 154 ] }
5,044
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 237, 310 ] }
5,045
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 534, 616 ] }
5,046
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 895, 983 ] }
5,047
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 1647, 1726 ] }
5,048
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 2039, 2141 ] }
5,049
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 259, 445 ] }
5,050
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 723, 864 ] }
5,051
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 1162, 1359 ] }
5,052
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 1613, 2089 ] }
5,053
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 2560, 2697 ] }
5,054
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 3188, 3471 ] }
5,055
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 3931, 4066 ] }
5,056
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 4546, 4717 ] }
5,057
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 606, 1230 ] }
5,058
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 2160, 2562 ] }
5,059
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 3318, 3496 ] }
5,060
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 3721, 3922 ] }
5,061
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 4292, 4523 ] }
5,062
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 4774, 5095 ] }
5,063
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
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 { address msgSender = _msgSend...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 497, 581 ] }
5,064
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
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 { address msgSender = _msgSend...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 1139, 1292 ] }
5,065
BabyStarl
BabyStarl.sol
0xebc7dac5edf07bfa97b3728dd71985b48d45f418
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 { address msgSender = _msgSend...
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://bb886ce1f95a2a607e37c279c7a40bb205af2d9cf6893e706726934a70edd0d5
{ "func_code_index": [ 1442, 1691 ] }
5,066
iETHRewards
contracts/iETHRewards.sol
0x0333bd82e1f5ff89c19ec44ab5302a0041b33139
Solidity
iETHRewards
contract iETHRewards is LPTokenWrapper, IRewardDistributionRecipient { IERC20 public snx = IERC20(0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F); uint256 public constant DURATION = 7 days; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256...
stake
function stake(uint256 amount) public updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); super.stake(amount); emit Staked(msg.sender, amount); }
// stake visibility is public as overriding LPTokenWrapper's stake() function
LineComment
v0.5.5+commit.47a71e8f
MIT
bzzr://dae748db0658f524ef80ddcdcc1ba07e7fa6bcd7604de1cf2768ac59feea0a9a
{ "func_code_index": [ 1947, 2143 ] }
5,067
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 94, 154 ] }
5,068
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 237, 310 ] }
5,069
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 534, 616 ] }
5,070
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 895, 983 ] }
5,071
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 1647, 1726 ] }
5,072
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 2039, 2141 ] }
5,073
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 259, 445 ] }
5,074
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 723, 864 ] }
5,075
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 1162, 1359 ] }
5,076
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 1613, 2089 ] }
5,077
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 2560, 2697 ] }
5,078
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 3188, 3471 ] }
5,079
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 3931, 4066 ] }
5,080
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 4546, 4717 ] }
5,081
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 606, 1230 ] }
5,082
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 2160, 2562 ] }
5,083
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 3318, 3496 ] }
5,084
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 3721, 3922 ] }
5,085
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 4292, 4523 ] }
5,086
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 4774, 5095 ] }
5,087
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
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 { address msgSender = _msgSend...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 497, 581 ] }
5,088
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
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 { address msgSender = _msgSend...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 1139, 1292 ] }
5,089
OriginalInu
OriginalInu.sol
0x579bc1aca7f398dfa3b31e0eca30c12ce3ef80ff
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 { address msgSender = _msgSend...
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
MIT
ipfs://0d0ad5fe53ae667bfb4d7878ce5bd100b73b00e832cf86b5c1fa34e7a78897aa
{ "func_code_index": [ 1442, 1691 ] }
5,090
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 261, 321 ] }
5,091
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 640, 821 ] }
5,092
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersPlayerList
contract StrikersPlayerList is Ownable { // We only use playerIds in StrikersChecklist.sol (to // indicate which player features on instances of a // given ChecklistItem), and nowhere else in the app. // While it's not explictly necessary for any of our // contracts to know that playerId 0 corresponds to...
/// @title The contract that manages all the players that appear in our game. /// @author The CryptoStrikers Team
NatSpecSingleLine
addPlayer
function addPlayer(string _name) public onlyOwner { require(playerCount < 255, "You've already added the maximum amount of players."); emit PlayerAdded(playerCount, _name); playerCount++; }
/// @dev Fires an event, proving that we said a player corresponds to a given ID. /// @param _name The name of the player we are adding.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 5268, 5478 ] }
5,093
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
_addOriginalChecklistItem
function _addOriginalChecklistItem(uint8 _playerId, RarityTier _tier) internal { originalChecklistItems.push(ChecklistItem({ playerId: _playerId, tier: _tier })); }
/// @dev Internal function to add a checklist item to the Originals set. /// @param _playerId The player represented by this checklist item. (see StrikersPlayerList.sol) /// @param _tier This checklist item's rarity tier. (see Rarity Tier enum and corresponding tierLimits)
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 3628, 3822 ] }
5,094
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
_addIconicChecklistItem
function _addIconicChecklistItem(uint8 _playerId, RarityTier _tier) internal { iconicChecklistItems.push(ChecklistItem({ playerId: _playerId, tier: _tier })); }
/// @dev Internal function to add a checklist item to the Iconics set. /// @param _playerId The player represented by this checklist item. (see StrikersPlayerList.sol) /// @param _tier This checklist item's rarity tier. (see Rarity Tier enum and corresponding tierLimits)
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 4106, 4296 ] }
5,095
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
addUnreleasedChecklistItem
function addUnreleasedChecklistItem(uint8 _playerId, RarityTier _tier) external onlyOwner { require(deployStep == DeployStep.DoneInitialDeploy, "Finish deploying the Originals and Iconics sets first."); require(unreleasedCount() < 56, "You can't add any more checklist items."); require(_playerId < playerCount,...
/// @dev External function to add a checklist item to our mystery set. /// Must have completed initial deploy, and can't add more than 56 items (because checklistId is a uint8). /// @param _playerId The player represented by this checklist item. (see StrikersPlayerList.sol) /// @param _tier This checklist item's rari...
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 4692, 5184 ] }
5,096
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
originalsCount
function originalsCount() external view returns (uint256) { return originalChecklistItems.length; }
/// @dev Returns how many Original checklist items we've added.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 5254, 5364 ] }
5,097
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
iconicsCount
function iconicsCount() public view returns (uint256) { return iconicChecklistItems.length; }
/// @dev Returns how many Iconic checklist items we've added.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 5432, 5536 ] }
5,098
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
unreleasedCount
function unreleasedCount() public view returns (uint256) { return unreleasedChecklistItems.length; }
/// @dev Returns how many Unreleased checklist items we've added.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 5608, 5719 ] }
5,099
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
deployStepOne
function deployStepOne() external onlyOwner { require(deployStep == DeployStep.WaitingForStepOne, "You're not following the steps in order..."); /* ORIGINALS - DIAMOND */ _addOriginalChecklistItem(0, RarityTier.Diamond); // 000 Messi _addOriginalChecklistItem(1, RarityTier.Diamond); // 001 Ronaldo _add...
/// @dev Deploys Originals #000 through #032.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 6626, 9239 ] }
5,100
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
deployStepTwo
function deployStepTwo() external onlyOwner { require(deployStep == DeployStep.WaitingForStepTwo, "You're not following the steps in order..."); /* ORIGINALS - SILVER (033 to 049) */ _addOriginalChecklistItem(33, RarityTier.Silver); // 033 Casemiro _addOriginalChecklistItem(34, RarityTier.Silver); // 034 ...
/// @dev Deploys Originals #033 through #065.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 9291, 11943 ] }
5,101
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
deployStepThree
function deployStepThree() external onlyOwner { require(deployStep == DeployStep.WaitingForStepThree, "You're not following the steps in order..."); /* ORIGINALS - BRONZE (066 to 099) */ _addOriginalChecklistItem(66, RarityTier.Bronze); // 066 Kagawa _addOriginalChecklistItem(67, RarityTier.Bronze); // 06...
/// @dev Deploys Originals #066 through #099.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 11995, 14666 ] }
5,102
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
deployStepFour
function deployStepFour() external onlyOwner { require(deployStep == DeployStep.WaitingForStepFour, "You're not following the steps in order..."); /* ICONICS */ _addIconicChecklistItem(0, RarityTier.IconicInsert); // 100 Messi _addIconicChecklistItem(1, RarityTier.IconicInsert); // 101 Ronaldo _addIcon...
/// @dev Deploys all Iconics and marks the deploy as complete!
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 14735, 17351 ] }
5,103
StrikersChecklist
StrikersChecklist.sol
0xdbc260a05f81629ffa062df3d1668a43133abba4
Solidity
StrikersChecklist
contract StrikersChecklist is StrikersPlayerList { // High level overview of everything going on in this contract: // // ChecklistItem is the parent class to Card and has 3 properties: // - uint8 checklistId (000 to 255) // - uint8 playerId (see StrikersPlayerList.sol) // - RarityTier tier (more in...
/// @title The contract that manages checklist items, sets, and rarity tiers. /// @author The CryptoStrikers Team
NatSpecSingleLine
limitForChecklistId
function limitForChecklistId(uint8 _checklistId) external view returns (uint16) { RarityTier rarityTier; uint8 index; if (_checklistId < 100) { // Originals = #000 to #099 rarityTier = originalChecklistItems[_checklistId].tier; } else if (_checklistId < 200) { // Iconics = #100 to #131 index = _ch...
/// @dev Returns the mint limit for a given checklist item, based on its tier. /// @param _checklistId Which checklist item we need to get the limit for. /// @return How much of this checklist item we are allowed to mint.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://f87c20fe7eb593456a65c383f65f6ca3a578031b9800b338b3629208d23ef268
{ "func_code_index": [ 17585, 18363 ] }
5,104
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
Ownable
abstract 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() { _setOwner(_msgSender()); ...
/** * @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. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 399, 491 ] }
5,105
DiamondDolphins
@openzeppelin/contracts/access/Ownable.sol
0x881018075d93573d581d129574cbff3c632daaea
Solidity
Ownable
abstract 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() { _setOwner(_msgSender()); ...
/** * @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. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
GNU GPLv3
ipfs://763a4f36c2c223ff72c53e3c00d7bad788692853f811b911cf0ece4d394dca26
{ "func_code_index": [ 1050, 1149 ] }
5,106