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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
StakingPool | StakingPool.sol | 0xd59ef6cd1e78885ad88e333a4b14a44b57a3160c | Solidity | StakingPool | contract StakingPool is Owned {
using SafeMath for uint256;
Ierc20 public tswap;
Ierc20 public rewardToken;
uint256 poolDuration;
uint256 totalRewards;
uint256 rewardsWithdrawn;
uint256 poolStartTime;
uint256 poolEndTime;
uint256 totalStaked;
// Represents a singl... | getSwapAddress | function getSwapAddress() external constant returns (address _swapAddress) {
return address(tswap);
}
| //get SWAP token address | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://6e5318eac7df67e48068b4dbee17a08e4e67f2ed053df512c671d44e7a2e589e | {
"func_code_index": [
11241,
11361
]
} | 14,500 | ||
StakingPool | StakingPool.sol | 0xd59ef6cd1e78885ad88e333a4b14a44b57a3160c | Solidity | StakingPool | contract StakingPool is Owned {
using SafeMath for uint256;
Ierc20 public tswap;
Ierc20 public rewardToken;
uint256 poolDuration;
uint256 totalRewards;
uint256 rewardsWithdrawn;
uint256 poolStartTime;
uint256 poolEndTime;
uint256 totalStaked;
// Represents a singl... | setTswapAddress | function setTswapAddress(address _address) external onlyOwner {
tswap = Ierc20(_address);
}
| //set tswap address | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://6e5318eac7df67e48068b4dbee17a08e4e67f2ed053df512c671d44e7a2e589e | {
"func_code_index": [
11393,
11503
]
} | 14,501 | ||
StakingPool | StakingPool.sol | 0xd59ef6cd1e78885ad88e333a4b14a44b57a3160c | Solidity | StakingPool | contract StakingPool is Owned {
using SafeMath for uint256;
Ierc20 public tswap;
Ierc20 public rewardToken;
uint256 poolDuration;
uint256 totalRewards;
uint256 rewardsWithdrawn;
uint256 poolStartTime;
uint256 poolEndTime;
uint256 totalStaked;
// Represents a singl... | setRewardTokenAddress | function setRewardTokenAddress(address _address) external onlyOwner {
rewardToken = Ierc20(_address);
}
| //set reward token address | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://6e5318eac7df67e48068b4dbee17a08e4e67f2ed053df512c671d44e7a2e589e | {
"func_code_index": [
11542,
11664
]
} | 14,502 | ||
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
c = a... | /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
89,
476
]
} | 14,503 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
560,
840
]
} | 14,504 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
954,
1070
]
} | 14,505 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
1134,
1264
]
} | 14,506 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev Transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
199,
287
]
} | 14,507 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev Transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _to, _value);
return true;
}
| /**
* @dev Transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
445,
777
]
} | 14,508 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev Total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev Transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
983,
1087
]
} | 14,509 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | BurnableToken | contract BurnableToken is BasicToken {
event Burn(address indexed burner, uint256 value);
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint256 _value) public {
_burn(msg.sender, _value);
}
function _burn(address _w... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 _value) public {
_burn(msg.sender, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
212,
290
]
} | 14,510 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
owner = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
815,
932
]
} | 14,511 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address _newOwner) public onlyOwner {
_transferOwnership(_newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
1097,
1205
]
} | 14,512 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
1343,
1521
]
} | 14,513 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address _from,
address _to,
uint256 _value
)
public
returns (bool)
{
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_v... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
401,
891
]
} | 14,514 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
1517,
1712
]
} | 14,515 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(
address _owner,
address _spender
)
public
view
returns (uint256)
{
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
2036,
2201
]
} | 14,516 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(
address _spender,
uint256 _addedValue
)
public
returns (bool)
{
allowed[msg.sender][_spender] = (
allowed[msg.sender][_spender].add(_addedValue));
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spender T... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
2661,
2971
]
} | 14,517 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | decreaseApproval | function decreaseApproval(
address _spender,
uint256 _subtractedValue
)
public
returns (bool)
{
uint256 oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue)... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spender T... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
3436,
3885
]
} | 14,518 | |
Teza | Teza.sol | 0x0d941d0379bc5cb2a610a9b0f02ec6fa4a387dc8 | Solidity | StandardBurnableToken | contract StandardBurnableToken is BurnableToken, StandardToken {
/**
* @dev Burns a specific amount of tokens from the target address and decrements allowance
* @param _from address The address which you want to send tokens from
* @param _value uint256 The amount of token to be burned
*/
functio... | /**
* @title Standard Burnable Token
* @dev Adds burnFrom method to ERC20 implementations
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address _from, uint256 _value) public {
require(_value <= allowed[_from][msg.sender]);
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
// this function needs to emit an event with the updated approval.
allowed[_from][msg.sender] = allowed[_from][msg.send... | /**
* @dev Burns a specific amount of tokens from the target address and decrements allowance
* @param _from address The address which you want to send tokens from
* @param _value uint256 The amount of token to be burned
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b548d1b8bb54eb9360ca556621e5f2d32bce86dc727beb0d43081e85f4d2ea50 | {
"func_code_index": [
311,
690
]
} | 14,519 | |
Boardboomer | contracts/Boardboomer.sol | 0x5474d6c39fc6a75b0429f7870a832b8efc76ea11 | Solidity | Boardboomer | contract Boardboomer is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
uint256 public MIN_CASH_PRICE = 10**18;
ITreasury public treasury;
IBoardroom public boardroom;
IERC20 public share;
IERC20 public cash;
IERC20 public dai;
IUniswapV2Pair public bac... | stake | function stake(uint256 amount) public onlyAllowed {
require(amount > 0, "Boomer: zero amount");
_totalSupply = _totalSupply.add(amount);
_balances[msg.sender] = _balances[msg.sender].add(amount);
share.safeTransferFrom(msg.sender, address(this), amount);
boardroom.stake(amount);
}
| // ======================= CORE | LineComment | v0.6.12+commit.27d51765 | None | ipfs://1e06f0e6d56eff53bdfdbde54087cd86656eeeaa4001d0146945cd41f919bd30 | {
"func_code_index": [
1734,
2074
]
} | 14,520 | ||
Boardboomer | contracts/Boardboomer.sol | 0x5474d6c39fc6a75b0429f7870a832b8efc76ea11 | Solidity | Boardboomer | contract Boardboomer is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
uint256 public MIN_CASH_PRICE = 10**18;
ITreasury public treasury;
IBoardroom public boardroom;
IERC20 public share;
IERC20 public cash;
IERC20 public dai;
IUniswapV2Pair public bac... | approveAny | function approveAny(IERC20 token, address spender) external onlyOwner {
token.approve(spender, 10**50);
}
| ///// emergency methods ///// | NatSpecSingleLine | v0.6.12+commit.27d51765 | None | ipfs://1e06f0e6d56eff53bdfdbde54087cd86656eeeaa4001d0146945cd41f919bd30 | {
"func_code_index": [
5225,
5349
]
} | 14,521 | ||
KyberHistory | contracts/sol6/KyberHistory.sol | 0x26a9ecbeca589aa575a9806f0555df0382940ba3 | Solidity | KyberHistory | contract KyberHistory is IKyberHistory, PermissionGroupsNoModifiers {
address public kyberStorage;
address[] internal contractsHistory;
constructor(address _admin) public PermissionGroupsNoModifiers(_admin) {}
event KyberStorageUpdated(address newStorage);
modifier onlyStorage() {
... | /**
* @title kyberHistory contract
* The contract provides the following functions for kyberStorage contract:
* - Record contract changes for a set of contracts
*/ | NatSpecMultiLine | getContracts | function getContracts() external override view returns (address[] memory) {
return contractsHistory;
}
| /// @notice Should be called off chain
/// @dev Index 0 is currently used contract address, indexes > 0 are older versions | NatSpecSingleLine | v0.6.6+commit.6c089d02 | MIT | ipfs://0ac9d5ea1edda864082f7c9e4492629858fe51c2fcf265761eed97d912e79374 | {
"func_code_index": [
1239,
1360
]
} | 14,522 |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | issueToken | function issueToken(
address _to,
string _hashID,
string _name,
string _country,
string _photoUrl,
string _institute,
string _occupation,
string _suggestions
)
public onlyOwner
{
uint256 _tokenId = allTokens.length;
IdentityInfoOfId[_tokenId] = IdentityInfo(
... | /**
* @param _hashID token holder customized field, the HashFuture account ID
* @param _name token holder customized field, the name of the holder
* @param _country token holder customized field.
* @param _photoUrl token holder customized field, link to holder's photo
* @param _institute token holder customiz... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
1865,
2392
]
} | 14,523 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | burnToken | function burnToken(uint256 _tokenId) public onlyOwner{
address tokenOwner = ownerOf(_tokenId);
require(tokenOwner != address(0));
delete IdentityInfoOfId[_tokenId];
_burn(tokenOwner, _tokenId);
}
| /**
* @dev the contract owner can burn (recycle) any token in circulation.
**/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
2491,
2734
]
} | 14,524 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | getTokenInfo | function getTokenInfo(uint256 _tokenId)
external view
returns (string, string, string, string, string, string, string)
{
address tokenOwner = ownerOf(_tokenId);
require(tokenOwner != address(0));
IdentityInfo storage pInfo = IdentityInfoOfId[_tokenId];
return (
pInfo.hashID,
... | /**
* @dev Get the holder's info of a token.
* @param _tokenId id of interested token
**/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
2850,
3397
]
} | 14,525 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | setIdentityInfo | function setIdentityInfo(
uint256 _tokenId,
string _name,
string _country,
string _photoUrl,
string _institute,
string _occupation,
string _suggestions
)
public
onlyOwnerOf(_tokenId)
{
IdentityInfo storage pInfo = IdentityInfoOfId[_tokenId];
pInfo.name = _name;... | /**
* @dev Set holder's IdentityInfo of a token
* @param _tokenId id of target token.
* @param _name token holder customized field, the name of the holder
* @param _country token holder customized field.
* @param _photoUrl token holder customized field, link to holder's photo
* @param _institute token holde... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
4016,
4595
]
} | 14,526 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | setSuggestion | function setSuggestion(
uint256 _tokenId,
string _suggestions
)
public
onlyOwnerOf(_tokenId)
{
IdentityInfoOfId[_tokenId].suggestions = _suggestions;
}
| /**
* @dev Set suggestions for Hashfuture
* only holder of a token can use this function
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
4713,
4929
]
} | 14,527 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | getPrivilege | function getPrivilege() external view returns (string) {
return privilege;
}
| /**
* @dev Get privilege of the token
**/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
4991,
5086
]
} | 14,528 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | getContractIntroduction | function getContractIntroduction() external view returns (string) {
return contractIntroduction;
}
| /**
* @dev Get the introduction of the token
**/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
5155,
5272
]
} | 14,529 | |
InvestorToken | InvestorToken.sol | 0xb601ad76c99337dd3366f8e689ead7db31fa439e | Solidity | InvestorToken | contract InvestorToken is HashFutureToken{
string internal privilege;
string internal contractIntroduction;
constructor() HashFutureToken("HashFuture InvestorToken", "HFIT") public
{
privilege = "1.Free service: Token holders enjoy free service of asset tokenization on HashFuture platfo... | /**
* Official token issued by HashFuture Inc.
* This is the token for inverstors and close partners.
*/ | NatSpecMultiLine | updatePrivilege | function updatePrivilege(string _privilege) public onlyOwner {
privilege = _privilege;
}
| /**
* @dev Update token holder's privileges
* only official operator can use this function
**/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://22cc5d8e248e0c19df3e943368d967967209b9b1b3e9d7ecccedbfd266cc8375 | {
"func_code_index": [
5393,
5500
]
} | 14,530 | |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | Proxy | contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no-in... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _delegate | function _delegate(address implementation) internal {
// solhint-disable-next-line no-inline-assembly
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at... | /**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
219,
1336
]
} | 14,531 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | Proxy | contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no-in... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _implementation | function _implementation() internal view returns (address);
| /**
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1520,
1584
]
} | 14,532 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | Proxy | contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no-in... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _fallback | function _fallback() internal {
_beforeFallback();
_delegate(_implementation());
}
| /**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1815,
1925
]
} | 14,533 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | Proxy | contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no-in... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | function() external payable {
_fallback();
}
| /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. This is equivalent to
* fallback and receive functions in solidity 0.6+
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2124,
2187
]
} | 14,534 | |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | Proxy | contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal {
// solhint-disable-next-line no-in... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _beforeFallback | function _beforeFallback() internal {}
| /**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overriden should call `super._beforeFallback()`.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2471,
2514
]
} | 14,535 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | 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.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
607,
1231
]
} | 14,536 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | toPayable | function toPayable(address account) internal pure returns (address payable) {
return address(uint160(account));
}
| /**
* @dev Converts an `address` into `address payable`. Note that this is
* simply a type cast: the actual underlying value is not changed.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1443,
1575
]
} | 14,537 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-call-value
(bool success, ) = recipient.call.value(amount)("");
require(success, "Address: unable to send value, re... | /**
* @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.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2547,
2923
]
} | 14,538 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _implementation | function _implementation() internal view returns (address impl) {
bytes32 slot = _IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
impl := sload(slot)
}
}
| /**
* @dev Returns the current implementation address.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1408,
1652
]
} | 14,539 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _upgradeTo | function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
| /**
* @dev Upgrades the proxy to a new implementation.
*
* Emits an {Upgraded} event.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1773,
1933
]
} | 14,540 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | UpgradeableProxy | contract UpgradeableProxy is Proxy {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating ... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _setImplementation | function _setImplementation(address newImplementation) private {
require(
Address.isContract(newImplementation),
"UpgradeableProxy: new implementation is not a contract"
);
bytes32 slot = _IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
... | /**
* @dev Stores a new address in the EIP1967 implementation slot.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2024,
2435
]
} | 14,541 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | admin | function admin() external ifAdmin returns (address) {
return _admin();
}
| /**
* @dev Returns the current admin.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] ... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
1794,
1885
]
} | 14,542 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | implementation | function implementation() external ifAdmin returns (address) {
return _implementation();
}
| /**
* @dev Returns the current implementation.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`e... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2351,
2460
]
} | 14,543 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | changeAdmin | function changeAdmin(address newAdmin) external ifAdmin {
require(
newAdmin != address(0),
"TransparentUpgradeableProxy: new admin is the zero address"
);
emit AdminChanged(_admin(), newAdmin);
_setAdmin(newAdmin);
}
| /**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
2669,
2957
]
} | 14,544 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | upgradeTo | function upgradeTo(address newImplementation) external ifAdmin {
_upgradeTo(newImplementation);
}
| /**
* @dev Upgrade the implementation of the proxy.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
3119,
3235
]
} | 14,545 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | upgradeToAndCall | function upgradeToAndCall(address newImplementation, bytes calldata data)
external
payable
ifAdmin
{
_upgradeTo(newImplementation);
// solhint-disable-next-line avoid-low-level-calls
(bool success, ) = newImplementation.delegatecall(data);
require(success);
}
| /**
* @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
* by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
* proxied contract.
*
* NOTE: Only the admin can call this function. See {Proxy... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
3615,
3952
]
} | 14,546 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | _admin | function _admin() internal view returns (address adm) {
bytes32 slot = _ADMIN_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
adm := sload(slot)
}
}
| /**
* @dev Returns the current admin.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
4013,
4237
]
} | 14,547 |
TransparentUpgradeableProxy | TransparentUpgradeableProxy.sol | 0xe95977a3c4008df4157d7b6ebdcb1990d94e3b30 | Solidity | TransparentUpgradeableProxy | contract TransparentUpgradeableProxy is UpgradeableProxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
*/
constructor(
address _lo... | /**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-t... | NatSpecMultiLine | _setAdmin | function _setAdmin(address newAdmin) private {
bytes32 slot = _ADMIN_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newAdmin)
}
}
| /**
* @dev Stores a new address in the EIP1967 admin slot.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | GNU GPLv3 | bzzr://ca73f2557720b39f49adcbfc51dedf341ef331907270d5baf4d40af22084b9fb | {
"func_code_index": [
4319,
4540
]
} | 14,548 |
GuildOfGuardiansHeroesNFT | contracts/GuildOfGuardiansHeroesNFT.sol | 0xee972ad3b8ac062de2e4d5e6ea4a37e36c849a11 | Solidity | GuildOfGuardiansHeroesNFT | contract GuildOfGuardiansHeroesNFT is GuildOfGuardiansNFTCommon {
mapping(uint256 => uint8) chromas;
event MintFor(
address to,
uint256 amount,
uint256 tokenId,
uint16 proto,
uint256 serialNumber,
uint8 chroma,
string tokenURI
);
constructor() ER... | mintFor | function mintFor(
address to,
uint256 amount,
bytes memory mintingBlob
) external override {
(
uint256 tokenId,
uint16 proto,
uint256 serialNumber,
uint8 chroma,
string memory tokenURI
) = Minting.deserializeMintingBlobWithChroma(mintingBlob);
_mintCommon(... | /**
* @dev Called by IMX to mint each NFT
*
* @param to the address to mint to
* @param amount not relavent for NFTs
* @param mintingBlob all NFT details
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | {
"func_code_index": [
557,
1190
]
} | 14,549 | ||||
GuildOfGuardiansHeroesNFT | contracts/GuildOfGuardiansHeroesNFT.sol | 0xee972ad3b8ac062de2e4d5e6ea4a37e36c849a11 | Solidity | GuildOfGuardiansHeroesNFT | contract GuildOfGuardiansHeroesNFT is GuildOfGuardiansNFTCommon {
mapping(uint256 => uint8) chromas;
event MintFor(
address to,
uint256 amount,
uint256 tokenId,
uint16 proto,
uint256 serialNumber,
uint8 chroma,
string tokenURI
);
constructor() ER... | getDetails | function getDetails(uint256 tokenId)
public
view
returns (
uint16 proto,
uint256 serialNumber,
uint8 chroma
)
{
return (protos[tokenId], serialNumbers[tokenId], chromas[tokenId]);
}
| /**
* @dev Retrieve the proto, serial and special edition for a particular NFT represented by it's token id
*
* @param tokenId the id of the NFT you'd like to retrieve details for
* @return proto The proto (type) of the specified NFT
* @return serialNumber The serial number of the specified NFT
* @return chroma T... | NatSpecMultiLine | v0.8.2+commit.661d1103 | {
"func_code_index": [
1588,
1857
]
} | 14,550 | ||||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
94,
154
]
} | 14,551 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
238,
311
]
} | 14,552 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
536,
618
]
} | 14,553 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
898,
986
]
} | 14,554 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1651,
1730
]
} | 14,555 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2044,
2180
]
} | 14,556 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns... | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
100,
159
]
} | 14,557 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
227,
288
]
} | 14,558 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
365,
420
]
} | 14,559 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
817,
922
]
} | 14,560 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1037,
1146
]
} | 14,561 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1781,
1879
]
} | 14,562 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1940,
2053
]
} | 14,563 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2112,
2244
]
} | 14,564 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2453,
2633
]
} | 14,565 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2692,
2848
]
} | 14,566 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2991,
3165
]
} | 14,567 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
3643,
4003
]
} | 14,568 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
4408,
4631
]
} | 14,569 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5130,
5404
]
} | 14,570 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _transfer | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5890,
6470
]
} | 14,571 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Trans... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
6753,
7138
]
} | 14,572 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
7467,
7892
]
} | 14,573 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(ow... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
8326,
8712
]
} | 14,574 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
9311,
9441
]
} | 14,575 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
259,
446
]
} | 14,576 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
725,
866
]
} | 14,577 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1165,
1363
]
} | 14,578 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1618,
2096
]
} | 14,579 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
2568,
2705
]
} | 14,580 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
3197,
3481
]
} | 14,581 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
3942,
4077
]
} | 14,582 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
4558,
4729
]
} | 14,583 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
491,
575
]
} | 14,584 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1135,
1288
]
} | 14,585 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | 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.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1439,
1688
]
} | 14,586 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | mul | function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
| /**
* @dev Multiplies two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
235,
544
]
} | 14,587 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | div | function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
| /**
* @dev Division of two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
635,
900
]
} | 14,588 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | sub | function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
| /**
* @dev Subtracts two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
989,
1170
]
} | 14,589 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | add | function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
| /**
* @dev Adds two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1254,
1435
]
} | 14,590 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256... | abs | function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
| /**
* @dev Converts to absolute value, and fails on overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
1521,
1655
]
} | 14,591 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ZizoApe | contract ZizoApe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmo... | enableTrading | function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
launchedAt = block.number;
}
| // once enabled, can never be turned off | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5108,
5261
]
} | 14,592 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ZizoApe | contract ZizoApe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmo... | removeLimits | function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
return true;
}
| // remove limits after token is stable | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5309,
5434
]
} | 14,593 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ZizoApe | contract ZizoApe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmo... | disableTransferDelay | function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
| // disable Transfer delay - cannot be reenabled | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5491,
5630
]
} | 14,594 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ZizoApe | contract ZizoApe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmo... | updateSwapTokensAtAmount | function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapTo... | // change the minimum amount of tokens to sell from fees | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
5808,
6199
]
} | 14,595 | ||
ZizoApe | ZizoApe.sol | 0x84e94e8ce9f382264a50ff273b6ca9386fa08fbf | Solidity | ZizoApe | contract ZizoApe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmo... | updateSwapEnabled | function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
| // only use to disable contract sales if absolutely necessary (emergency use only) | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://c7298ee1ada7edf1e2ce1f1b418f13fa0ea14734da10bb35cb514376897e50ae | {
"func_code_index": [
6911,
7017
]
} | 14,596 | ||
Token | Token.sol | 0x80f7415dac9a37e168047eb56a25032b5fe216cc | Solidity | Token | contract Token is ERC20Interface, Owned {
using SafeMath for uint256;
string public symbol = "PBN";
string public name = "Pluton Blogging Network";
uint256 public decimals = 18;
uint256 _totalSupply = 300000 * 10 ** (decimals);
uint256 _deployedOn;
mapping(address => uint256) ba... | // ----------------------------------------------------------------------------
// 'Pluton Blogging Network' token contract
// Symbol : PBN
// Name : Pluton Blogging Network
// Total supply: 300,000
// Decimals : 18
// ----------------------------------------------------------------------------
// ------... | LineComment | totalSupply | function totalSupply() public override view returns (uint256){
return _totalSupply;
}
| /** ERC20Interface function's implementation **/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unlicense | ipfs://64ff669035616ec25e84335e569a4c39206ec846ce81363f22c6aeaca74651a4 | {
"func_code_index": [
863,
966
]
} | 14,597 |
Token | Token.sol | 0x80f7415dac9a37e168047eb56a25032b5fe216cc | Solidity | Token | contract Token is ERC20Interface, Owned {
using SafeMath for uint256;
string public symbol = "PBN";
string public name = "Pluton Blogging Network";
uint256 public decimals = 18;
uint256 _totalSupply = 300000 * 10 ** (decimals);
uint256 _deployedOn;
mapping(address => uint256) ba... | // ----------------------------------------------------------------------------
// 'Pluton Blogging Network' token contract
// Symbol : PBN
// Name : Pluton Blogging Network
// Total supply: 300,000
// Decimals : 18
// ----------------------------------------------------------------------------
// ------... | LineComment | balanceOf | function balanceOf(address tokenOwner) public override view returns (uint256 balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account `tokenOwner`
// ------------------------------------------------------------------------ | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://64ff669035616ec25e84335e569a4c39206ec846ce81363f22c6aeaca74651a4 | {
"func_code_index": [
1186,
1323
]
} | 14,598 |
Token | Token.sol | 0x80f7415dac9a37e168047eb56a25032b5fe216cc | Solidity | Token | contract Token is ERC20Interface, Owned {
using SafeMath for uint256;
string public symbol = "PBN";
string public name = "Pluton Blogging Network";
uint256 public decimals = 18;
uint256 _totalSupply = 300000 * 10 ** (decimals);
uint256 _deployedOn;
mapping(address => uint256) ba... | // ----------------------------------------------------------------------------
// 'Pluton Blogging Network' token contract
// Symbol : PBN
// Name : Pluton Blogging Network
// Total supply: 300,000
// Decimals : 18
// ----------------------------------------------------------------------------
// ------... | LineComment | transfer | function transfer(address to, uint256 tokens) public override returns (bool success) {
// prevent transfer to 0x0, use burn instead
require(address(to) != address(0));
require(balances[msg.sender] >= tokens );
require(balances[to] + tokens >= balances[to]);
if ((msg.sender == owner) && (balance... | // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to `to` account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.6.12+commit.27d51765 | Unlicense | ipfs://64ff669035616ec25e84335e569a4c39206ec846ce81363f22c6aeaca74651a4 | {
"func_code_index": [
1667,
2381
]
} | 14,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.