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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | attributesOf | function attributesOf(uint256 tokenId_)
external
view
returns (
uint256 tier_,
uint256 credits_,
uint256 withdrawable_,
uint256 expiry_
);
| /// @notice Returns the tier and credits of an NFT. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
9817,
10048
]
} | 28,000 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | consume | function consume(uint256 tokenId_, uint256 amount_) external returns (uint256 remainingCredits_);
| /// @notice Consumes some credits from an NFT, returning the number of credits left. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
10141,
10243
]
} | 28,001 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | consumeWithPermit | function consumeWithPermit(
uint256 tokenId_,
uint256 amount_,
uint256 limit_,
uint256 deadline_,
uint8 v_,
bytes32 r_,
bytes32 s_
) external returns (uint256 remainingCredits_);
| /// @notice Consumes some credits from an NFT, with a signed permit from the owner, returning the number of credits left. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
10373,
10624
]
} | 28,002 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | contractURI | function contractURI() external view returns (string memory contractURI_);
| /// @notice Returns the URI for the contract metadata. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
10687,
10766
]
} | 28,003 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | getCredits | function getCredits(uint256 amount_, uint256 duration_) external pure returns (uint256 credits_);
| /// @notice Returns the credits an NFT will have, given some amount locked for some duration. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
10868,
10970
]
} | 28,004 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | getTier | function getTier(uint256 credits_) external pure returns (uint256 tier_);
| /// @notice Returns the tier an NFT will have, given some credits, which itself can be determined from `getCredits`. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
11095,
11173
]
} | 28,005 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | merge | function merge(uint256[] calldata tokenIds_) external returns (uint256 tokenId_, uint256 credits_);
| /// @notice Burns several unlocked NFTs to combine their credits into the first. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
11262,
11366
]
} | 28,006 | ||
XDEFIDistribution | IXDEFIDistribution.sol | 0x1dfd9029d89f87c8c63ed8ef2be1b5393b2348ef | Solidity | IXDEFIDistribution | interface IXDEFIDistribution is IERC721Enumerable {
/***********/
/* Structs */
/***********/
struct Position {
uint96 units; // 240,000,000,000,000,000,000,000,000 XDEFI * 2.55x bonus (which fits in a `uint96`).
uint88 depositedXDEFI; // XDEFI cap is 240000000000000000000000000 ... | tokenURI | function tokenURI(uint256 tokenId_) external view returns (string memory tokenURI_);
| /// @notice Returns the URI for the NFT metadata for a given token ID. | NatSpecSingleLine | v0.8.12+commit.f00d7308 | MIT | ipfs://08f44c4f44406741d7a1d635245021e57f69f96beed3fe60c42db712ac1b072f | {
"func_code_index": [
11445,
11534
]
} | 28,007 | ||
CCToken | CCToken.sol | 0xf11c9761db573e10d7ad735a313ec8c8b040ce88 | Solidity | CCToken | contract CCToken is Context, ERC20, Ownable {
using SafeMath for uint256;
uint256 private _cap;
/**
* @dev Constructor
*/
constructor (string memory name, string memory symbol, uint256 cap, uint256 initialSupply)
ERC20(name, symbol) {
require(cap > 0, "CCToken: cap ... | /**
* @title Single Witness
*/ | NatSpecMultiLine | getCap | function getCap() public view returns (uint256) {
return _cap;
}
| /**
* @dev Returns the cap on the token's total supply.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://7bf9cddc4fb99b7ed409f4dce3b49da28310124ebf8ef95ac1f596b9a035e3af | {
"func_code_index": [
550,
633
]
} | 28,008 |
CCToken | CCToken.sol | 0xf11c9761db573e10d7ad735a313ec8c8b040ce88 | Solidity | CCToken | contract CCToken is Context, ERC20, Ownable {
using SafeMath for uint256;
uint256 private _cap;
/**
* @dev Constructor
*/
constructor (string memory name, string memory symbol, uint256 cap, uint256 initialSupply)
ERC20(name, symbol) {
require(cap > 0, "CCToken: cap ... | /**
* @title Single Witness
*/ | NatSpecMultiLine | setCap | function setCap(uint256 cap) onlyOwner external {
require(cap > 0, "CCToken: cap is 0");
_cap = cap;
}
| /**
* @dev set the cap on the token's total supply.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://7bf9cddc4fb99b7ed409f4dce3b49da28310124ebf8ef95ac1f596b9a035e3af | {
"func_code_index": [
708,
838
]
} | 28,009 |
CCToken | CCToken.sol | 0xf11c9761db573e10d7ad735a313ec8c8b040ce88 | Solidity | CCToken | contract CCToken is Context, ERC20, Ownable {
using SafeMath for uint256;
uint256 private _cap;
/**
* @dev Constructor
*/
constructor (string memory name, string memory symbol, uint256 cap, uint256 initialSupply)
ERC20(name, symbol) {
require(cap > 0, "CCToken: cap ... | /**
* @title Single Witness
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address account, uint256 amount) onlyOwner external {
_burn(account, amount);
}
| /**
* @dev See `ERC20._burn`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://7bf9cddc4fb99b7ed409f4dce3b49da28310124ebf8ef95ac1f596b9a035e3af | {
"func_code_index": [
889,
1005
]
} | 28,010 |
CCToken | CCToken.sol | 0xf11c9761db573e10d7ad735a313ec8c8b040ce88 | Solidity | CCToken | contract CCToken is Context, ERC20, Ownable {
using SafeMath for uint256;
uint256 private _cap;
/**
* @dev Constructor
*/
constructor (string memory name, string memory symbol, uint256 cap, uint256 initialSupply)
ERC20(name, symbol) {
require(cap > 0, "CCToken: cap ... | /**
* @title Single Witness
*/ | NatSpecMultiLine | mintTo | function mintTo(address account, uint256 amount) external onlyOwner returns (bool) {
require(totalSupply().add(amount) <= _cap, "CCToken: cap exceeded!");
_mint(account, amount);
return true;
}
| /**
* @dev See `ERC20._mint`.
*
* Requirements:
*
* - the caller must have the `MinterRole`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://7bf9cddc4fb99b7ed409f4dce3b49da28310124ebf8ef95ac1f596b9a035e3af | {
"func_code_index": [
1145,
1375
]
} | 28,011 |
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
60,
124
]
} | 28,012 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
232,
309
]
} | 28,013 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
546,
623
]
} | 28,014 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
946,
1042
]
} | 28,015 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
1326,
1407
]
} | 28,016 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
1615,
1712
]
} | 28,017 | |||
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | ElectricUniverse | contract ElectricUniverse is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one t... | //name this contract whatever you'd like | LineComment | ElectricUniverse | function ElectricUniverse(
) {
balances[msg.sender] = 2200000000000000; // Give owner all initial tokens (22,000,000 for example)
totalSupply = 2200000000000000; // Update total supply (22,000,000 for example)
name = "Electric Universe"; // S... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
1216,
1782
]
} | 28,018 | |
ElectricUniverse | ElectricUniverse.sol | 0xffed1cb392e36bdf5004450ab76fab23a5337c05 | Solidity | ElectricUniverse | contract ElectricUniverse is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one t... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.21+commit.dfe3193c | bzzr://2b5889ebee31c9c5651d8d45482f08b3ac06204f72eeb36c59de80291395dfca | {
"func_code_index": [
1843,
2648
]
} | 28,019 | |
BicycleToken | BicycleToken.sol | 0x79182bf192912d83f895a3d04997c27ef7fed4fd | Solidity | BicycleToken | contract BicycleToken {
// Public variables of the token
string public name = "Bicycle Token";
string public symbol = "BIC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default
uint256 public totalSupply;
uint256 public BicycleSupply = 15000000;
uint256 pu... | BicycleToken | function BicycleToken() public {
totalSupply = BicycleSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give BicycleToken Mint the total created tokens
creator = msg.sender;
}
| /**
* Constrctor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://48dd25e97ad9db1b7e162197e788a3ce47d5ef7ea686d42c1fd47c0ca6427c42 | {
"func_code_index": [
925,
1212
]
} | 28,020 | |||
BicycleToken | BicycleToken.sol | 0x79182bf192912d83f895a3d04997c27ef7fed4fd | Solidity | BicycleToken | contract BicycleToken {
// Public variables of the token
string public name = "Bicycle Token";
string public symbol = "BIC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default
uint256 public totalSupply;
uint256 public BicycleSupply = 15000000;
uint256 pu... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balanceOf[_to]... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://48dd25e97ad9db1b7e162197e788a3ce47d5ef7ea686d42c1fd47c0ca6427c42 | {
"func_code_index": [
1294,
1850
]
} | 28,021 | |||
BicycleToken | BicycleToken.sol | 0x79182bf192912d83f895a3d04997c27ef7fed4fd | Solidity | BicycleToken | contract BicycleToken {
// Public variables of the token
string public name = "Bicycle Token";
string public symbol = "BIC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default
uint256 public totalSupply;
uint256 public BicycleSupply = 15000000;
uint256 pu... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://48dd25e97ad9db1b7e162197e788a3ce47d5ef7ea686d42c1fd47c0ca6427c42 | {
"func_code_index": [
2056,
2168
]
} | 28,022 | |||
BicycleToken | BicycleToken.sol | 0x79182bf192912d83f895a3d04997c27ef7fed4fd | Solidity | BicycleToken | contract BicycleToken {
// Public variables of the token
string public name = "Bicycle Token";
string public symbol = "BIC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default
uint256 public totalSupply;
uint256 public BicycleSupply = 15000000;
uint256 pu... | function () payable internal {
if (price == 0 ether){
uint ammount = 500; // calculates the amount, made it so you can get many BicycleMinth but to get MANY BicycleToken you have to spend ETH and not WEI
uint ammountRaised;
ammountRaise... | /// @notice Buy tokens from contract by sending ether | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://48dd25e97ad9db1b7e162197e788a3ce47d5ef7ea686d42c1fd47c0ca6427c42 | {
"func_code_index": [
2242,
3367
]
} | 28,023 | ||||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
92,
152
]
} | 28,024 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
233,
306
]
} | 28,025 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
524,
606
]
} | 28,026 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
872,
960
]
} | 28,027 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1611,
1690
]
} | 28,028 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1995,
2097
]
} | 28,029 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
250,
436
]
} | 28,030 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
705,
846
]
} | 28,031 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1135,
1332
]
} | 28,032 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1577,
2053
]
} | 28,033 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
2513,
2650
]
} | 28,034 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
3130,
3413
]
} | 28,035 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
3862,
3997
]
} | 28,036 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256)... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
4466,
4637
]
} | 28,037 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
590,
1214
]
} | 28,038 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
2129,
2531
]
} | 28,039 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
3270,
3446
]
} | 28,040 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
3666,
3867
]
} | 28,041 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
4227,
4458
]
} | 28,042 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | 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 return f... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
4704,
5025
]
} | 28,043 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
562,
646
]
} | 28,044 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1196,
1349
]
} | 28,045 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | 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 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1496,
1745
]
} | 28,046 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = now + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
1913,
2132
]
} | 28,047 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
... | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(now > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
2199,
2497
]
} | 28,048 | ||
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SuperGoku | contract SuperGoku is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =>... | // Contract implementation | LineComment | manualSwap | function manualSwap() external onlyOwner() {
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
| // We are exposing these functions to be able to manual swap and send
// in case the token is highly valued and 5M becomes too much | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
10571,
10732
]
} | 28,049 |
SuperGoku | SuperGoku.sol | 0xe30599a1db9c6ee8f122b76ba140f5dbcba97157 | Solidity | SuperGoku | contract SuperGoku is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =>... | // Contract implementation | LineComment | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://690da58cae42381ff1e479874b8c9e475d7411ecd08cd5e1cf3ac51b747159ed | {
"func_code_index": [
14623,
14657
]
} | 28,050 | ||
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | setAdmin | function setAdmin(address admin) {
if (msg.sender != _admin) { throw; }
adminChanged(_admin, admin);
_admin = admin;
// Give the admin access to the reverse entry
ReverseRegistrar(_ens.owner(RR_NODE)).claim(admin);
// Point the resolved addr to the new admin
Resolver(_ens.resolv... | /**
* setAdmin(admin)
*
* Change the admin of this contract. This should be used shortly after
* deployment and live testing to switch to a multi-sig contract.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
1467,
1869
]
} | 28,051 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | setFee | function setFee(uint256 fee) {
if (msg.sender != _admin) { throw; }
feeChanged(_fee, fee);
_fee = fee;
}
| /**
* setFee(fee)
*
* This is useful if the price of ether sky-rockets or plummets, but
* for the most part should remain unused
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
2042,
2183
]
} | 28,052 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | setDefaultResolver | function setDefaultResolver(address defaultResolver) {
if (msg.sender != _admin) { throw; }
defaultResolverChanged(_defaultResolver, defaultResolver);
_defaultResolver = Resolver(defaultResolver);
}
| /**
* setDefaultResolver(resolver)
*
* Allow the admin to change the default resolver that is setup with
* new name registrations.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
2358,
2593
]
} | 28,053 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | withdraw | function withdraw(address target, uint256 amount) {
if (msg.sender != _admin) { throw; }
if (!target.send(amount)) { throw; }
didWithdraw(target, amount);
}
| /**
* withdraw(target, amount)
*
* Allow the admin to withdrawl funds.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
2701,
2894
]
} | 28,054 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | register | function register(string label) payable {
// Check the label is legal
uint256 position;
uint256 length;
assembly {
// The first word of a string is its length
length := mload(label)
// The first character position is the beginning of the second word
position :... | /**
* register(label)
*
* Allows anyone to send *fee* ether to the contract with a name to register.
*
* Note: A name must match the regex /^[a-z0-9-]{4,20}$/
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
3103,
4994
]
} | 28,055 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | donate | function donate(bytes32 nodeHash) payable {
_donations[nodeHash] += msg.value;
donation(nodeHash, msg.value);
}
| /**
* donate(nodeHash)
*
* Allow a registered name to donate more and get attribution. This may
* be useful if special limited edition Firefly devices are awarded to
* certain tiers of donors or such.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
5246,
5385
]
} | 28,056 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | config | function config() constant returns (address ens, bytes32 nodeHash, address admin, uint256 fee, address defaultResolver) {
ens = _ens;
nodeHash = _nodeHash;
admin = _admin;
fee = _fee;
defaultResolver = _defaultResolver;
}
| /**
* config()
*
* Get the configuration of this registrar.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
5482,
5758
]
} | 28,057 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | stats | function stats() constant returns (uint256 nameCount, uint256 totalPaid, uint256 balance) {
nameCount = _nameCount;
totalPaid = _totalPaid;
balance = this.balance;
}
| /**
* stats()
*
* Get some statistics for this registrar.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
5853,
6055
]
} | 28,058 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | donations | function donations(bytes32 nodeHash) constant returns (uint256 donation) {
return _donations[nodeHash];
}
| /**
* donations(nodeHash)
*
* Returns the amount of donations a nodeHash has provided.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
6179,
6303
]
} | 28,059 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | fee | function fee() constant returns (uint256 fee) {
return _fee;
}
| /**
* fee()
*
* The current fee forregistering a name.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
6395,
6476
]
} | 28,060 | |
FireflyRegistrar | FireflyRegistrar.sol | 0x6fc21092da55b392b045ed78f4732bff3c580e2c | Solidity | FireflyRegistrar | contract FireflyRegistrar {
// namehash('addr.reverse')
bytes32 constant RR_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// Admin triggered events
event adminChanged(address oldAdmin, address newAdmin);
event feeChanged(uint256 oldFee, uint256 newFee);
eve... | /**
* FireflyRegistrar
*
* This registrar allows arbitrary labels below the root node for a fixed minimum fee.
* Labels must conform to the regex /^[a-z0-9-]{4, 20}$/.
*
* Admin priviledges:
* - change the admin
* - change the fee
* - change the default resolver
* - withdrawl funds
... | NatSpecMultiLine | function () payable {
_donations[0] += msg.value;
donation(0, msg.value);
}
| /**
* Allow anonymous donations.
*/ | NatSpecMultiLine | v0.4.10+commit.f0d539ae | bzzr://5c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b64 | {
"func_code_index": [
6533,
6636
]
} | 28,061 | ||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | totalSupply | function totalSupply() public view returns (uint256 total_Supply) {
total_Supply = _totalSupply;
}
| // what is the total supply of the ech tokens | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
1218,
1338
]
} | 28,062 | |||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | balanceOf | function balanceOf(address _owner)public view returns (uint256 balance) {
return balances[_owner];
}
| // What is the balance of a particular account? | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
1395,
1517
]
} | 28,063 | |||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | transfer | function transfer(address _to, uint256 _amount)public returns (bool ok) {
require( _to != 0x0);
require(balances[msg.sender] >= _amount && _amount >= 0);
balances[msg.sender] = (balances[msg.sender]).sub(_amount);
balances[_to] = (balances[_to]).add(_amount);
emit Transfer(msg.sender, _to, _amount);... | // Transfer the balance from owner's account to another account | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
1592,
1982
]
} | 28,064 | |||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | transferFrom | function transferFrom( address _from, address _to, uint256 _amount )public returns (bool ok) {
require( _to != 0x0);
require(balances[_from] >= _amount && allowed[_from][msg.sender] >= _amount && _amount >= 0);
balances[_from] = (balances[_from]).sub(_amount);
allowed[_from][msg.sender] = (allowed[_from][msg.sender... | // Send _value amount of tokens from address _from to address _to
// The transferFrom method is used for a withdraw workflow, allowing contracts to send
// tokens on your behalf, for example to "deposit" to a contract address and/or to charge
// fees in sub-currencies; the command should fail unless the _from account h... | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
2477,
2964
]
} | 28,065 | |||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | approve | function approve(address _spender, uint256 _amount)public returns (bool ok) {
require( _spender != 0x0);
allowed[msg.sender][_spender] = _amount;
emit Approval(msg.sender, _spender, _amount);
return true;
}
| // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
// If this function is called again it overwrites the current allowance with _value. | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
3155,
3413
]
} | 28,066 | |||
PeoplesBankofChina | PeoplesBankofChina.sol | 0xbe00dbed6ea8db450e3bcca07853e2b7daece338 | Solidity | PeoplesBankofChina | contract PeoplesBankofChina is ERC20
{using SafeMath for uint256;
string public constant symbol = ",000.CNY.ChineseYuan.Renminbi";
string public constant name = "People's Bank of China";
uint public constant decimals = 18;
uint256 _totalSupply = 999000000000000000000 * 10 ** 18; // 999 Trillion T... | transferOwnership | function transferOwnership(address newOwner) external onlyOwner
{
uint256 x = balances[owner];
require( newOwner != 0x0);
balances[newOwner] = (balances[newOwner]).add(balances[owner]);
balances[owner] = 0;
owner = newOwner;
emit Transfer(msg.sender, newOwner, x);
}
| //In case the ownership needs to be transferred | LineComment | v0.4.24+commit.e67f0147 | bzzr://439eb7d37340549f56da3148922bc0b2385105f55a91ea730845d2d61b86770d | {
"func_code_index": [
3685,
3993
]
} | 28,067 | |||
KP2R | KP2R.sol | 0xddade9ddc6e8343f9b2b05e98e240e74a19321c1 | Solidity | KP2R | contract KP2R is ERC20 {
using SafeMath for uint256;
string internal _name;
string internal _symbol;
uint8 internal _decimals;
uint256 internal _totalSupply;
mapping(address => bool) private _saleWhitList;
bool private _saleCheck;
address internal _... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balances[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowed[_from][msg.sender]); // Check allowance
balances[_from] -= _value; // Subtrac... | /**
* Destroy tokens from other account
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://147c7c1abc3f6155292ba4867e6048e39aa89ea63728fbe38d23f40d9b2a1338 | {
"func_code_index": [
3515,
4126
]
} | 28,068 | ||
KP2R | KP2R.sol | 0xddade9ddc6e8343f9b2b05e98e240e74a19321c1 | Solidity | KP2R | contract KP2R is ERC20 {
using SafeMath for uint256;
string internal _name;
string internal _symbol;
uint8 internal _decimals;
uint256 internal _totalSupply;
mapping(address => bool) private _saleWhitList;
bool private _saleCheck;
address internal _... | transferownership | function transferownership(address _newaddress) public returns(bool){
require(msg.sender==_admin);
_admin=_newaddress;
return true;
}
| //Admin can transfer his ownership to new address | LineComment | v0.5.11+commit.c082d0b4 | None | bzzr://147c7c1abc3f6155292ba4867e6048e39aa89ea63728fbe38d23f40d9b2a1338 | {
"func_code_index": [
4202,
4362
]
} | 28,069 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
104,
168
]
} | 28,070 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
261,
338
]
} | 28,071 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
584,
670
]
} | 28,072 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
971,
1063
]
} | 28,073 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
1770,
1853
]
} | 28,074 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view r... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
2194,
2300
]
} | 28,075 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
290,
496
]
} | 28,076 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
805,
958
]
} | 28,077 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
1287,
1504
]
} | 28,078 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
1789,
2309
]
} | 28,079 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
2817,
2966
]
} | 28,080 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
3494,
3801
]
} | 28,081 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
4298,
4445
]
} | 28,082 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
4962,
5149
]
} | 28,083 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
658,
1322
]
} | 28,084 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
2301,
2727
]
} | 28,085 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
3538,
3726
]
} | 28,086 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
3970,
4183
]
} | 28,087 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
4587,
4830
]
} | 28,088 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Amon... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
5100,
5437
]
} | 28,089 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
622,
718
]
} | 28,090 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | 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 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
1324,
1493
]
} | 28,091 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the ... | 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 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
1656,
1925
]
} | 28,092 | ||
EpicElonMerch | EpicElonMerch.sol | 0x82d746d4ac9f86737c3e0264dd468625989841b5 | Solidity | EpicElonMerch | contract EpicElonMerch is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://9cd8214e081730064a655217ca139187eb4cc7791de71f45052d89ee4498ef9d | {
"func_code_index": [
17179,
17217
]
} | 28,093 | ||||
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | setReceivingWallet | function setReceivingWallet(address payable newWallet) external{
require(newWallet != address(0), "receiving wallet cannot be zero address");
require(msg.sender == _admin, "only admin can change the receiving wallet");
_wallet = newWallet;
}
| /// @notice set the wallet receiving the proceeds
/// @param newWallet address of the new receiving wallet | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
1620,
1893
]
} | 28,094 |
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | setDAIEnabled | function setDAIEnabled(bool enabled) external {
require(msg.sender == _admin, "only admin can enable/disable DAI");
_daiEnabled = enabled;
}
| /// @notice enable/disable DAI payment for Lands
/// @param enabled whether to enable or disable | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
2000,
2164
]
} | 28,095 |
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | isDAIEnabled | function isDAIEnabled() external view returns (bool) {
return _daiEnabled;
}
| /// @notice return whether DAI payments are enabled
/// @return whether DAI payments are enabled | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
2271,
2363
]
} | 28,096 |
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | setETHEnabled | function setETHEnabled(bool enabled) external {
require(msg.sender == _admin, "only admin can enable/disable ETH");
_etherEnabled = enabled;
}
| /// @notice enable/disable ETH payment for Lands
/// @param enabled whether to enable or disable | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
2470,
2636
]
} | 28,097 |
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | isETHEnabled | function isETHEnabled() external view returns (bool) {
return _etherEnabled;
}
| /// @notice return whether ETH payments are enabled
/// @return whether ETH payments are enabled | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
2743,
2837
]
} | 28,098 |
LandSaleWithETHAndDAI | src/LandSale/LandSaleWithETHAndDAI.sol | 0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0 | Solidity | LandSaleWithETHAndDAI | contract LandSaleWithETHAndDAI is MetaTransactionReceiver {
using SafeMathWithRequire for uint256;
uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land
uint256 internal constant daiPrice = 14400000000000000;
Land internal _land;
ERC20 internal _sand;
Medianizer private _me... | /**
* @title Land Sale contract that supports also DAI and ETH as payment
* @notice This contract mananges the sale of our lands
*/ | NatSpecMultiLine | setSANDEnabled | function setSANDEnabled(bool enabled) external {
require(msg.sender == _admin, "only admin can enable/disable SAND");
_sandEnabled = enabled;
}
| /// @notice enable/disable the specific SAND payment for Lands
/// @param enabled whether to enable or disable | NatSpecSingleLine | v0.5.9+commit.e560f70d | None | bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a | {
"func_code_index": [
2958,
3125
]
} | 28,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.