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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DiceOnline | DiceOnline.sol | 0xd3b5e17e96fda663da9438f8e1f11185d3433d08 | Solidity | DiceOffline | contract DiceOffline is Config,RoomManager,UserManager {
// 事件
event withdraw_failed();
event withdraw_succeeded(address toUser,uint256 value);
event bet_failed(address indexed player,uint256 value,uint result,uint roomid,uint errorcode);
event bet_succeeded(address indexed player,uint256 v... | doCalculate | function doCalculate(uint num123,bytes32 myid) internal {
BetInfo memory bet = rollingBet[myid];
if(bet.player == 0){
return;
}
if(bet.roomid == 0){ // 普通房间
// 进行结算
int256 winAmount = -int256(bet.value);
if(bet.result == getResul... | /*TLSNotary for oraclize call
function offlineCallback(bytes32 myid) internal {
uint num = uint256(keccak256(block.difficulty,now)) & 216;
uint num1 = num % 6 + 1;
uint num2 = (num / 6) % 6 + 1;
uint num3 = (num / 36) % 6 + 1;
doCalculate(num1 * 100 + num2 * 10 + num3,myid);
}*/ | Comment | v0.4.24+commit.e67f0147 | bzzr://2f0065c395341e4968bc0667cbeafd2985e8db277889539c2b69d29b7f21f5c5 | {
"func_code_index": [
5598,
6753
]
} | 7,307 | |||
DiceOnline | DiceOnline.sol | 0xd3b5e17e96fda663da9438f8e1f11185d3433d08 | Solidity | DiceOnline | contract DiceOnline is DiceOffline {
using strings for *;
// 随机序列号
uint randomQueryID;
function DiceOnline() public{
oraclizeLib.oraclize_setProof(oraclizeLib.proofType_TLSNotary() | oraclizeLib.proofStorage_IPFS());
oraclizeLib.oraclize_setCustomGasPrice(... | __callback | function __callback(bytes32 myid, string result, bytes proof) public onlyOraclize {
/* keep oraclize honest by retrieving the serialNumber from random.org result */
proof;
//emit logString(result,"result");
strings.slice memory sl_result = result.toSlice();
sl_result = sl_result.beyond("... | /*TLSNotary for oraclize call */ | Comment | v0.4.24+commit.e67f0147 | bzzr://2f0065c395341e4968bc0667cbeafd2985e8db277889539c2b69d29b7f21f5c5 | {
"func_code_index": [
1887,
2977
]
} | 7,308 | |||
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | BOA | function BOA() public {
symbol = "BOA";
name = "Bank of America Digital Payment Platform";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[0x797E2fa8c7B9A880d9867A5992A91330f56Ea03C] = _totalSupply;
Transfer(address(0), 0x797E2fa8c7B9A880d9867A5992A91330f56Ea03C, _total... | // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
450,
814
]
} | 7,309 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
1002,
1123
]
} | 7,310 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
1343,
1472
]
} | 7,311 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
1816,
2093
]
} | 7,312 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
2601,
2809
]
} | 7,313 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
3340,
3698
]
} | 7,314 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
3981,
4137
]
} | 7,315 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
4492,
4809
]
} | 7,316 | |
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
5001,
5060
]
} | 7,317 | ||
BOA | BOA.sol | 0xe7e9009df1ba468559fa2e617820c0f6b438b19c | Solidity | BOA | contract BOA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://ddb04b932520b4dd986b796eed5da9aae9ab9c2f61b6cb55ea6db57db943b9fb | {
"func_code_index": [
5293,
5482
]
} | 7,318 | |
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure retu... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
require(a == 0 || c / a == b, 'Invalid values');
return c;
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
263,
448
]
} | 7,319 |
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure retu... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
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.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
973,
1100
]
} | 7,320 |
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure retu... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, 'Substraction result smaller than zero');
return a - b;
}
| /**
* @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.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
1370,
1540
]
} | 7,321 |
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure retu... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, 'Invalid values');
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
1773,
1944
]
} | 7,322 |
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | allowUser | function allowUser(address _user) public onlyOwner {
require(nostarted, 'You cant allow user in battle mode');
allowUsers[_user] = 1;
}
| // allow user in invite mode | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
5146,
5309
]
} | 7,323 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | battleMode | function battleMode() public onlyOwner {
require(nostarted, 'Battle mode activated');
nostarted = false;
}
| // disable inviting | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
5337,
5471
]
} | 7,324 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | setDAOAddress | function setDAOAddress(address payable _dao_addr) public onlyOwner {
require(!daoSet, 'DAO address already set');
_dao = AbsDAO(_dao_addr);
daoSet = true;
}
| // this function sets the DAO contract address | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
5526,
5719
]
} | 7,325 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | payToAdmin | function payToAdmin(uint _amount) internal {
if (daoSet) {
// Pay for DAO
uint holderCount = _dao.getHolderCount(); // get the DAO holders count
for (uint i = 1; i <= holderCount; i++) {
uint val = _dao.getHolderPieAt(i); // get pie of holder with index == i
... | // process payment to administrator wallet
// or DAO holders | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
5793,
6840
]
} | 7,326 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | regUser | function regUser(uint referrerID) public payable {
require(!isContract(msg.sender), 'This contract cannot support payments from other contracts');
if (nostarted) {
require(allowUsers[msg.sender] > 0, 'You cannot use this contract on start');
}
require(!users[msg.sender].isExist, 'User e... | // user registration | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
6869,
8970
]
} | 7,327 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | buyLevel | function buyLevel(uint _level) public payable {
require(!isContract(msg.sender), 'This contract cannot support payments from other contracts');
require(users[msg.sender].isExist, 'User not exist');
require(_level>0 && _level<=8, 'Incorrect level');
require(msg.value==LEVEL_PRICE[_level], 'Incorrec... | // buy level function | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
9000,
10494
]
} | 7,328 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | setMaxAutopayForLevelCount | function setMaxAutopayForLevelCount(uint _count) public onlyOwnerOrManager {
MAX_AUTOPAY_COUNT = _count;
}
| // for interactive correction of the limitations | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
10987,
11112
]
} | 7,329 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | buyLevelByFund | function buyLevelByFund(address referer, uint _counter) internal {
require(users[referer].isExist, 'User not exists');
uint _level = users[referer].currentLvl + 1; // calculate a next level
require(users[referer].fund >= LEVEL_PRICE[_level], 'Not have funds to autobuy level');
uint remaining = u... | // buyLevelByFund provides automatic payment for next level for user | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
11189,
12450
]
} | 7,330 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | updateCurrentLevel | function updateCurrentLevel(address _user) internal {
users[_user].currentLvl = actualLevel(_user);
}
| // updateCurrentLevel calculate 'currentLvl' value for given user | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
12524,
12644
]
} | 7,331 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | actualLevel | function actualLevel(address _user) public view returns(uint) {
require(users[_user].isExist, 'User not found');
for (uint i = 1; i <= 8; i++) {
if (users[_user].levelExpired[i] <= now) {
return i-1;
}
}
return 8;
}
| // helper function | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
12671,
12979
]
} | 7,332 | ||
Absolutus | Absolutus.sol | 0x0c9e046e22a04ce91b6036f3f7496a4fbd827260 | Solidity | Absolutus | contract Absolutus is Ownable, WalletOnly {
// Events
event RegLevelEvent(address indexed _user, address indexed _referrer, uint _id, uint _time);
event BuyLevelEvent(address indexed _user, uint _level, uint _time);
event ProlongateLevelEvent(address indexed _user, uint _level, uint _time);
eve... | payForLevel | function payForLevel(uint _level, address _user, address _sender, uint _autoPayCtr, bool prevLost) internal {
address referer;
address referer1;
address referer2;
address referer3;
if (_level == 1 || _level == 5) {
referer = userList[users[_user].referrerID];
} else if (_level =... | // payForLevel provides payment processing for user's referer and automatic buying referer's next
// level. | LineComment | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://18e2dfe8ebf7cefa713c3c410c3ee6e5b2a8151cd8310b4c152a6bbe075d75d3 | {
"func_code_index": [
13100,
16613
]
} | 7,333 | ||
UniV3PairManagerFactory | solidity/interfaces/IPairManagerFactory.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IPairManagerFactory | interface IPairManagerFactory is IGovernable {
// Variables
/// @notice Maps the address of a Uniswap pool, to the address of the corresponding PairManager
/// For example, the uniswap address of DAI-WETH, will return the Keep3r/DAI-WETH pair manager address
/// @param _pool The address of the Uniswap ... | /// @title Factory of Pair Managers
/// @notice This contract creates new pair managers | NatSpecSingleLine | pairManagers | function pairManagers(address _pool) external view returns (address _pairManager);
| /// @notice Maps the address of a Uniswap pool, to the address of the corresponding PairManager
/// For example, the uniswap address of DAI-WETH, will return the Keep3r/DAI-WETH pair manager address
/// @param _pool The address of the Uniswap pool
/// @return _pairManager The address of the corresponding pair m... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
398,
482
]
} | 7,334 | ||
UniV3PairManagerFactory | solidity/interfaces/IPairManagerFactory.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IPairManagerFactory | interface IPairManagerFactory is IGovernable {
// Variables
/// @notice Maps the address of a Uniswap pool, to the address of the corresponding PairManager
/// For example, the uniswap address of DAI-WETH, will return the Keep3r/DAI-WETH pair manager address
/// @param _pool The address of the Uniswap ... | /// @title Factory of Pair Managers
/// @notice This contract creates new pair managers | NatSpecSingleLine | createPairManager | function createPairManager(address _pool) external returns (address _pairManager);
| /// @notice Creates a new pair manager based on the address of a Uniswap pool
/// For example, the uniswap address of DAI-WETH, will create the Keep3r/DAI-WETH pool
/// @param _pool The address of the Uniswap pool the pair manager will be based of
/// @return _pairManager The address of the just-created pair ma... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1297,
1381
]
} | 7,335 | ||
MetaFrenchies | contracts/MetaFrenchies.sol | 0x3b44044735a46272ba15569e918f3266965e0eae | Solidity | MetaFrenchies | contract MetaFrenchies is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.07 ether;
uint256 public maxSupply = 4444;
uint256 public maxMintAmount = 10;
bool public paused = true;
constructor(
... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
502,
612
]
} | 7,336 | ||||
MetaFrenchies | contracts/MetaFrenchies.sol | 0x3b44044735a46272ba15569e918f3266965e0eae | Solidity | MetaFrenchies | contract MetaFrenchies is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.07 ether;
uint256 public maxSupply = 4444;
uint256 public maxMintAmount = 10;
bool public paused = true;
constructor(
... | mint | function mint(address _to, uint256 _mintAmount) public payable {
uint256 supply = totalSupply();
require(!paused, "Minting is Paused!");
require(_mintAmount > 0);
require(_mintAmount <= maxMintAmount);
require(supply + _mintAmount <= maxSupply);
if (msg.sender != owner()) {
require(msg.... | // public | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
628,
1129
]
} | 7,337 | ||||
MetaFrenchies | contracts/MetaFrenchies.sol | 0x3b44044735a46272ba15569e918f3266965e0eae | Solidity | MetaFrenchies | contract MetaFrenchies is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.07 ether;
uint256 public maxSupply = 4444;
uint256 public maxMintAmount = 10;
bool public paused = true;
constructor(
... | airdrop | function airdrop(address _to, uint256 _tokenId) public onlyOwner {
require(
_tokenId >= 4445 && _tokenId <= 4471,
"Please input only legendry token ids"
);
_safeMint(_to, _tokenId);
}
| // Airdrop | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1148,
1387
]
} | 7,338 | ||||
PINKSEXY | PINKSEXY.sol | 0x0f481cbf7bf9f503062d3d27db2eda331eab930b | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
e... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://4c7b3909eae483b0fb1c7ba59afccd9fd04bf9c0b154a3584791938c3b80dc69 | {
"func_code_index": [
268,
664
]
} | 7,339 | ||
PINKSEXY | PINKSEXY.sol | 0x0f481cbf7bf9f503062d3d27db2eda331eab930b | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | balanceOf | function balanceOf(address _owner) public constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://4c7b3909eae483b0fb1c7ba59afccd9fd04bf9c0b154a3584791938c3b80dc69 | {
"func_code_index": [
870,
986
]
} | 7,340 | ||
PINKSEXY | PINKSEXY.sol | 0x0f481cbf7bf9f503062d3d27db2eda331eab930b | 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... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://4c7b3909eae483b0fb1c7ba59afccd9fd04bf9c0b154a3584791938c3b80dc69 | {
"func_code_index": [
401,
858
]
} | 7,341 | ||
PINKSEXY | PINKSEXY.sol | 0x0f481cbf7bf9f503062d3d27db2eda331eab930b | 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... | approve | function approve(address _spender, uint256 _value) public returns (bool) {
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
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
* ... | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://4c7b3909eae483b0fb1c7ba59afccd9fd04bf9c0b154a3584791938c3b80dc69 | {
"func_code_index": [
1490,
1754
]
} | 7,342 | ||
PINKSEXY | PINKSEXY.sol | 0x0f481cbf7bf9f503062d3d27db2eda331eab930b | 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... | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | None | bzzr://4c7b3909eae483b0fb1c7ba59afccd9fd04bf9c0b154a3584791938c3b80dc69 | {
"func_code_index": [
2078,
2223
]
} | 7,343 | ||
UniV3PairManagerFactory | solidity/interfaces/peripherals/IGovernable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IGovernable | interface IGovernable {
// Events
/// @notice Emitted when pendingGovernance accepts to be governance
/// @param _governance Address of the new governance
event GovernanceSet(address _governance);
/// @notice Emitted when a new governance is proposed
/// @param _pendingGovernance Address that is proposed ... | /// @title Governable contract
/// @notice Manages the governance role | NatSpecSingleLine | governance | function governance() external view returns (address _governance);
| /// @notice Stores the governance address
/// @return _governance The governance addresss | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
832,
900
]
} | 7,344 | ||
UniV3PairManagerFactory | solidity/interfaces/peripherals/IGovernable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IGovernable | interface IGovernable {
// Events
/// @notice Emitted when pendingGovernance accepts to be governance
/// @param _governance Address of the new governance
event GovernanceSet(address _governance);
/// @notice Emitted when a new governance is proposed
/// @param _pendingGovernance Address that is proposed ... | /// @title Governable contract
/// @notice Manages the governance role | NatSpecSingleLine | pendingGovernance | function pendingGovernance() external view returns (address _pendingGovernance);
| /// @notice Stores the pendingGovernance address
/// @return _pendingGovernance The pendingGovernance addresss | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1017,
1099
]
} | 7,345 | ||
UniV3PairManagerFactory | solidity/interfaces/peripherals/IGovernable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IGovernable | interface IGovernable {
// Events
/// @notice Emitted when pendingGovernance accepts to be governance
/// @param _governance Address of the new governance
event GovernanceSet(address _governance);
/// @notice Emitted when a new governance is proposed
/// @param _pendingGovernance Address that is proposed ... | /// @title Governable contract
/// @notice Manages the governance role | NatSpecSingleLine | setGovernance | function setGovernance(address _governance) external;
| /// @notice Proposes a new address to be governance
/// @param _governance The address of the user proposed to be the new governance | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1252,
1307
]
} | 7,346 | ||
UniV3PairManagerFactory | solidity/interfaces/peripherals/IGovernable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IGovernable | interface IGovernable {
// Events
/// @notice Emitted when pendingGovernance accepts to be governance
/// @param _governance Address of the new governance
event GovernanceSet(address _governance);
/// @notice Emitted when a new governance is proposed
/// @param _pendingGovernance Address that is proposed ... | /// @title Governable contract
/// @notice Manages the governance role | NatSpecSingleLine | acceptGovernance | function acceptGovernance() external;
| /// @notice Changes the governance from the current governance to the previously proposed address | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1409,
1448
]
} | 7,347 | ||
Slyguise | Slyguise.sol | 0xcefb4eee91a3ce1f3843f79450b13cfafd09f749 | Solidity | Slyguise | contract Slyguise is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public constant MAX_GUISE = 1000;
string baseTokenURI;
event SlyguiseMinted(uint256 totalMinted);
constructor(string memory baseURI) ERC721("Slyguise", "GU... | /// @author Hammad Ahmed Ghazi | NatSpecSingleLine | walletOfOwner | function walletOfOwner(address _owner)
external
view
returns (uint256[] memory)
{
uint256 tokenCount = balanceOf(_owner);
uint256[] memory tokensId = new uint256[](tokenCount);
for (uint256 i = 0; i < tokenCount; i++) {
tokensId[i] = tokenOfOwnerByIndex(_owner, i);
}
... | //Get token Ids of all tokens owned by _owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://8aceae61199fb8a5b3b2b79d049daac9ddebefba2ecb139788a75caca847bd16 | {
"func_code_index": [
419,
809
]
} | 7,348 |
Slyguise | Slyguise.sol | 0xcefb4eee91a3ce1f3843f79450b13cfafd09f749 | Solidity | Slyguise | contract Slyguise is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public constant MAX_GUISE = 1000;
string baseTokenURI;
event SlyguiseMinted(uint256 totalMinted);
constructor(string memory baseURI) ERC721("Slyguise", "GU... | /// @author Hammad Ahmed Ghazi | NatSpecSingleLine | mintSlyguise | function mintSlyguise(address _to, uint256 _count) external onlyOwner {
require(_count > 0, "Minimum 1 Slyguise has to be minted");
require(
totalSupply() + _count <= MAX_GUISE,
"Exceeds maximum supply of Slyguise"
);
for (uint256 i = 0; i < _count; i++) {
_mint(_to);
... | //mint Slyguise | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://8aceae61199fb8a5b3b2b79d049daac9ddebefba2ecb139788a75caca847bd16 | {
"func_code_index": [
1439,
1807
]
} | 7,349 |
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | fee | function fee() external view returns (uint24 _fee);
| /// @notice The fee of the Uniswap pool passed into the constructor
/// @return _fee The fee of the Uniswap pool passed into the constructor | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
562,
615
]
} | 7,350 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | sqrtRatioAX96 | function sqrtRatioAX96() external view returns (uint160 _sqrtPriceA96);
| /// @notice The sqrtRatioAX96 at the lowest tick (-887200) of the Uniswap pool
/// @return _sqrtPriceA96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
/// at the lowest tick | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
856,
929
]
} | 7,351 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | sqrtRatioBX96 | function sqrtRatioBX96() external view returns (uint160 _sqrtPriceBX96);
| /// @notice The sqrtRatioBX96 at the highest tick (887200) of the Uniswap pool
/// @return _sqrtPriceBX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
/// at the highest tick | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1172,
1246
]
} | 7,352 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | uniswapV3MintCallback | function uniswapV3MintCallback(
uint256 amount0Owed,
uint256 amount1Owed,
bytes calldata data
) external;
| /// @notice This function is called after a user calls IUniV3PairManager#mint function
/// It ensures that any tokens owed to the pool are paid by the msg.sender of IUniV3PairManager#mint function
/// @param amount0Owed The amount of token0 due to the pool for the minted liquidity
/// @param amount1Owed The amo... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2072,
2193
]
} | 7,353 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | mint | function mint(
uint256 amount0Desired,
uint256 amount1Desired,
uint256 amount0Min,
uint256 amount1Min,
address to
) external returns (uint128 liquidity);
| /// @notice Mints kLP tokens to an address according to the liquidity the msg.sender provides to the UniswapV3 pool
/// @dev Triggers UniV3PairManager#uniswapV3MintCallback
/// @param amount0Desired The amount of token0 we would like to provide
/// @param amount1Desired The amount of token1 we would like to provide
///... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2822,
2999
]
} | 7,354 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | position | function position()
external
view
returns (
uint128 liquidity,
uint256 feeGrowthInside0LastX128,
uint256 feeGrowthInside1LastX128,
uint128 tokensOwed0,
uint128 tokensOwed1
);
| /// @notice Returns the pair manager's position in the corresponding UniswapV3 pool
/// @return liquidity The amount of liquidity provided to the UniswapV3 pool by the pair manager
/// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position
/// @return feeGrowthInside1... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
3626,
3848
]
} | 7,355 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | collect | function collect() external returns (uint256 amount0, uint256 amount1);
| /// @dev The collected fees will be sent to governance
/// @return amount0 The amount of fees collected in token0
/// @return amount1 The amount of fees collected in token1 | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
4243,
4316
]
} | 7,356 | ||
UniV3PairManagerFactory | solidity/interfaces/IUniV3PairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IUniV3PairManager | interface IUniV3PairManager is IGovernable, IPairManager {
// Structs
/// @notice The data to be decoded by the UniswapV3MintCallback function
struct MintCallbackData {
PoolAddress.PoolKey _poolKey; // Struct that contains token0, token1, and fee of the pool passed into the constructor
address payer; // ... | /// @title Pair Manager contract
/// @notice Creates a UniswapV3 position, and tokenizes in an ERC20 manner
/// so that the user can use it as liquidity for a Keep3rJob | NatSpecSingleLine | burn | function burn(
uint128 liquidity,
uint256 amount0Min,
uint256 amount1Min,
address to
) external returns (uint256 amount0, uint256 amount1);
| /// @param liquidity The amount of liquidity to be burned
/// @param amount0Min The minimum amount of token0 we want to send to the recipient (to)
/// @param amount1Min The minimum amount of token1 we want to send to the recipient (to)
/// @param to The address that will receive the due fees
/// @return amount0 The cal... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
4948,
5107
]
} | 7,357 | ||
UniV3PairManagerFactory | solidity/interfaces/IPairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IPairManager | interface IPairManager is IERC20Metadata {
/// @notice Address of the pool from which the Keep3r pair manager will interact with
/// @return _pool The pool's address
function pool() external view returns (address _pool);
/// @notice Token0 of the pool
/// @return _token0 The address of token0
function toke... | /// @title Pair Manager interface
/// @notice Generic interface for Keep3r liquidity pools (kLP) | NatSpecSingleLine | pool | function pool() external view returns (address _pool);
| /// @notice Address of the pool from which the Keep3r pair manager will interact with
/// @return _pool The pool's address | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
170,
226
]
} | 7,358 | ||
UniV3PairManagerFactory | solidity/interfaces/IPairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IPairManager | interface IPairManager is IERC20Metadata {
/// @notice Address of the pool from which the Keep3r pair manager will interact with
/// @return _pool The pool's address
function pool() external view returns (address _pool);
/// @notice Token0 of the pool
/// @return _token0 The address of token0
function toke... | /// @title Pair Manager interface
/// @notice Generic interface for Keep3r liquidity pools (kLP) | NatSpecSingleLine | token0 | function token0() external view returns (address _token0);
| /// @notice Token0 of the pool
/// @return _token0 The address of token0 | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
305,
365
]
} | 7,359 | ||
UniV3PairManagerFactory | solidity/interfaces/IPairManager.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | IPairManager | interface IPairManager is IERC20Metadata {
/// @notice Address of the pool from which the Keep3r pair manager will interact with
/// @return _pool The pool's address
function pool() external view returns (address _pool);
/// @notice Token0 of the pool
/// @return _token0 The address of token0
function toke... | /// @title Pair Manager interface
/// @notice Generic interface for Keep3r liquidity pools (kLP) | NatSpecSingleLine | token1 | function token1() external view returns (address _token1);
| /// @notice Token1 of the pool
/// @return _token1 The address of token1 | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
444,
504
]
} | 7,360 | ||
UniV3PairManagerFactory | solidity/contracts/peripherals/Governable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | Governable | abstract contract Governable is IGovernable {
/// @inheritdoc IGovernable
address public override governance;
/// @inheritdoc IGovernable
address public override pendingGovernance;
constructor(address _governance) {
if (_governance == address(0)) revert NoGovernanceZeroAddress();
governance = _gover... | setGovernance | function setGovernance(address _governance) external override onlyGovernance {
pendingGovernance = _governance;
emit GovernanceProposal(_governance);
}
| /// @inheritdoc IGovernable | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
362,
525
]
} | 7,361 | ||||
UniV3PairManagerFactory | solidity/contracts/peripherals/Governable.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | Governable | abstract contract Governable is IGovernable {
/// @inheritdoc IGovernable
address public override governance;
/// @inheritdoc IGovernable
address public override pendingGovernance;
constructor(address _governance) {
if (_governance == address(0)) revert NoGovernanceZeroAddress();
governance = _gover... | acceptGovernance | function acceptGovernance() external override onlyPendingGovernance {
governance = pendingGovernance;
delete pendingGovernance;
emit GovernanceSet(governance);
}
| /// @inheritdoc IGovernable | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
557,
734
]
} | 7,362 | ||||
UniV3PairManagerFactory | solidity/contracts/UniV3PairManagerFactory.sol | 0x005634cfef45e5a19c84aede6f0af17833471852 | Solidity | UniV3PairManagerFactory | contract UniV3PairManagerFactory is IPairManagerFactory, Governable {
mapping(address => address) public override pairManagers;
constructor() Governable(msg.sender) {}
///@inheritdoc IPairManagerFactory
function createPairManager(address _pool) external override returns (address _pairManager) {
if (pairMa... | /// @title Factory of Pair Managers
/// @notice This contract creates new pair managers | NatSpecSingleLine | createPairManager | function createPairManager(address _pool) external override returns (address _pairManager) {
if (pairManagers[_pool] != address(0)) revert AlreadyInitialized();
_pairManager = address(new UniV3PairManager(_pool, governance));
pairManagers[_pool] = _pairManager;
emit PairCreated(_pool, _pairManager);
}
| ///@inheritdoc IPairManagerFactory | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
211,
533
]
} | 7,363 | ||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | RetailLoyaltySystemBase | function RetailLoyaltySystemBase(uint256 _initialSupply, string _tokenName, string _tokenSymbol, uint8 _decimals) public {
name = _tokenName; // Set the name for display purposes
symbol = _tokenSymbol; // Set the symbol for display purposes
... | /**
* Constructor function
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
525,
1104
]
} | 7,364 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | _transfer | function _transfer(address _from, address _to, uint _value) internal returns(bool) {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balances[_from] >= _value);
// Check for overflows
require(balances[_to] + _value > bal... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
1447,
2318
]
} | 7,365 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | transfer | function transfer(address _to, uint256 _value) public returns(bool) {
return _transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
2524,
2657
]
} | 7,366 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns(bool) {
require(_value <= allowances[_from][msg.sender]); // Check allowance
allowances[_from][msg.sender] -= _value;
return _transfer(_from, _to, _value);
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
2932,
3211
]
} | 7,367 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | approve | function approve(address _spender, uint256 _value) public returns(bool) {
allowances[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
3475,
3683
]
} | 7,368 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns(bool) {
if (approve(_spender, _value)) {
TokenRecipient spender = TokenRecipient(_spender);
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
return false;
}
... | /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
4077,
4429
]
} | 7,369 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | burn | function burn(uint256 _value) public returns(bool) {
require(balances[msg.sender] >= _value); // Check if the sender has enough
balances[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
Burn(msg.sender, _value);
r... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
4599,
4962
]
} | 7,370 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | burnFrom | function burnFrom(address _from, uint256 _value) public returns(bool) {
require(balances[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowances[_from][msg.sender]); // Check allowance
balances[_from] -= _value; // Subtract from... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
5220,
5822
]
} | 7,371 | |||
RetailLoyaltySystemToken | RetailLoyaltySystemToken.sol | 0xaabf1b6e4fbebb239e8a16deea11947bbcd1024a | Solidity | RetailLoyaltySystemBase | contract RetailLoyaltySystemBase is ERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
// Balances
mapping (address => uint256) balances;
// Allowanc... | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
// Check for overflows
require(allowances[msg.sender][_spender] + _addedValue > allowances[msg.sender][_spender]);
allowances[msg.sender][_spender] += _addedValue;
Approval(msg.sender, _spender, allowances[msg.se... | /**
* approve should be called when allowances[_spender] == 0. To increment
* allowances value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0833bb46dc7496f12ea9807cc3cd3ddf3452d26058e39f8d6c4193100545a4c7 | {
"func_code_index": [
6085,
6472
]
} | 7,372 | |||
KevTAMA | KevTAMA.sol | 0x371709ae8413ce755dc7ec5aec061700509c5a9e | Solidity | KevTAMA | contract KevTAMA is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "KevTAMA";
string private constant _symbol = "KEVTAMA";
uint8 private constant _decimals = 9;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private... | setMinSwapTokensThreshold | function setMinSwapTokensThreshold(uint256 swapTokensAtAmount) public onlyOwner {
_swapTokensAtAmount = swapTokensAtAmount;
}
| //Set minimum tokens required to swap. | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://5fd9e120bb87ee369020df43ced696c5b795ea05fe85b9a82991060544af98bf | {
"func_code_index": [
13156,
13300
]
} | 7,373 | ||
KevTAMA | KevTAMA.sol | 0x371709ae8413ce755dc7ec5aec061700509c5a9e | Solidity | KevTAMA | contract KevTAMA is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "KevTAMA";
string private constant _symbol = "KEVTAMA";
uint8 private constant _decimals = 9;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private... | toggleSwap | function toggleSwap(bool _swapEnabled) public onlyOwner {
swapEnabled = _swapEnabled;
}
| //Set minimum tokens required to swap. | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://5fd9e120bb87ee369020df43ced696c5b795ea05fe85b9a82991060544af98bf | {
"func_code_index": [
13348,
13454
]
} | 7,374 | ||
KevTAMA | KevTAMA.sol | 0x371709ae8413ce755dc7ec5aec061700509c5a9e | Solidity | KevTAMA | contract KevTAMA is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "KevTAMA";
string private constant _symbol = "KEVTAMA";
uint8 private constant _decimals = 9;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private... | setMaxTxnAmount | function setMaxTxnAmount(uint256 maxTxAmount) public onlyOwner {
if (maxTxAmount > 10000000 * 10**9) {
_maxTxAmount = maxTxAmount;
}
}
| //Set maximum transaction | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://5fd9e120bb87ee369020df43ced696c5b795ea05fe85b9a82991060544af98bf | {
"func_code_index": [
13489,
13661
]
} | 7,375 | ||
KyberPriceFeed | ./src/registry/IRegistry.sol | 0x10a285ea8b9e0ff92a2de4ecf961293a6999f7e6 | Solidity | IRegistry | interface IRegistry {
struct Asset {
bool exists;
string name;
string symbol;
uint decimals;
string url;
uint reserveMin;
uint[] standards;
bytes4[] sigs;
}
struct Exchange {
bool exists;
address exchangeAddress;
bytes4... | // import "../dependencies/DSAuth.sol"; | LineComment | assetInformation | function assetInformation(address) external view returns(Asset memory);
| // STORAGE | LineComment | v0.6.1+commit.e6f7d5a4 | GNU GPLv3 | ://bfb6637c40f216637aec4ae865b552cdfb7385f35abfdc8605b64dfc9d3e53a3 | {
"func_code_index": [
426,
501
]
} | 7,376 |
KyberPriceFeed | ./src/registry/IRegistry.sol | 0x10a285ea8b9e0ff92a2de4ecf961293a6999f7e6 | Solidity | IRegistry | interface IRegistry {
struct Asset {
bool exists;
string name;
string symbol;
uint decimals;
string url;
uint reserveMin;
uint[] standards;
bytes4[] sigs;
}
struct Exchange {
bool exists;
address exchangeAddress;
bytes4... | // import "../dependencies/DSAuth.sol"; | LineComment | adapterMethodIsAllowed | function adapterMethodIsAllowed(address _adapter, bytes4 _sig) external view returns (bool);
| // FUNCTIONS | LineComment | v0.6.1+commit.e6f7d5a4 | GNU GPLv3 | ://bfb6637c40f216637aec4ae865b552cdfb7385f35abfdc8605b64dfc9d3e53a3 | {
"func_code_index": [
1704,
1800
]
} | 7,377 |
KyberPriceFeed | ./src/registry/IRegistry.sol | 0x10a285ea8b9e0ff92a2de4ecf961293a6999f7e6 | Solidity | IRegistry | interface IRegistry {
struct Asset {
bool exists;
string name;
string symbol;
uint decimals;
string url;
uint reserveMin;
uint[] standards;
bytes4[] sigs;
}
struct Exchange {
bool exists;
address exchangeAddress;
bytes4... | // import "../dependencies/DSAuth.sol"; | LineComment | registerFund | function registerFund(address _fund, address _owner, string calldata _name) external;
| // Caller: FundFactory contract only: | LineComment | v0.6.1+commit.e6f7d5a4 | GNU GPLv3 | ://bfb6637c40f216637aec4ae865b552cdfb7385f35abfdc8605b64dfc9d3e53a3 | {
"func_code_index": [
3176,
3265
]
} | 7,378 |
KyberPriceFeed | ./src/registry/IRegistry.sol | 0x10a285ea8b9e0ff92a2de4ecf961293a6999f7e6 | Solidity | IRegistry | interface IRegistry {
struct Asset {
bool exists;
string name;
string symbol;
uint decimals;
string url;
uint reserveMin;
uint[] standards;
bytes4[] sigs;
}
struct Exchange {
bool exists;
address exchangeAddress;
bytes4... | // import "../dependencies/DSAuth.sol"; | LineComment | deregisterFees | function deregisterFees(address[] calldata _fees) external;
| // Caller: Auth only: | LineComment | v0.6.1+commit.e6f7d5a4 | GNU GPLv3 | ://bfb6637c40f216637aec4ae865b552cdfb7385f35abfdc8605b64dfc9d3e53a3 | {
"func_code_index": [
3371,
3434
]
} | 7,379 |
KyberPriceFeed | ./src/registry/IRegistry.sol | 0x10a285ea8b9e0ff92a2de4ecf961293a6999f7e6 | Solidity | IRegistry | interface IRegistry {
struct Asset {
bool exists;
string name;
string symbol;
uint decimals;
string url;
uint reserveMin;
uint[] standards;
bytes4[] sigs;
}
struct Exchange {
bool exists;
address exchangeAddress;
bytes4... | // import "../dependencies/DSAuth.sol"; | LineComment | owner | function owner() external view returns(address);
| // INHERITED: DSAuth
// STORAGE
// function authority() external view returns (DSAuthority); | LineComment | v0.6.1+commit.e6f7d5a4 | GNU GPLv3 | ://bfb6637c40f216637aec4ae865b552cdfb7385f35abfdc8605b64dfc9d3e53a3 | {
"func_code_index": [
4948,
5000
]
} | 7,380 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
165,
238
]
} | 7,381 | ||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
462,
544
]
} | 7,382 | ||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
823,
911
]
} | 7,383 | ||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1575,
1654
]
} | 7,384 | ||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1967,
2069
]
} | 7,385 | ||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
259,
445
]
} | 7,386 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
723,
864
]
} | 7,387 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1162,
1359
]
} | 7,388 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1613,
2089
]
} | 7,389 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
2560,
2697
]
} | 7,390 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
3188,
3471
]
} | 7,391 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
3931,
4066
]
} | 7,392 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
4546,
4717
]
} | 7,393 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
606,
1230
]
} | 7,394 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
2160,
2562
]
} | 7,395 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
3318,
3496
]
} | 7,396 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
3721,
3922
]
} | 7,397 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
4292,
4523
]
} | 7,398 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | 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 | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
4774,
5095
]
} | 7,399 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
566,
650
]
} | 7,400 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1209,
1362
]
} | 7,401 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
1512,
1761
]
} | 7,402 |
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | DegenGoose | contract DegenGoose is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
8985,
9019
]
} | 7,403 | ||||
DegenGoose | DegenGoose.sol | 0x367f8cf9b536cdd125c517877c1c59b2b738d788 | Solidity | DegenGoose | contract DegenGoose is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://52fde5425bc6b739f833f085d54ad8a7c501afaa98b68da07a010733156c972c | {
"func_code_index": [
17989,
18828
]
} | 7,404 | ||
EYESToken | project:/contracts/EYESToken.sol | 0x8c14a98a44dd5d73a1dec31b45d02c99c0c130b8 | Solidity | EYESToken | contract EYESToken is AccessControl, ERC20Burnable, ERC20Pausable {
using SafeMath for uint256;
uint256 constant EXPECTED_TOTAL_SUPPLY = 10000000000 ether;
uint256 public constant MINTAGE_SALE_TOKEN = 1500000000 ether;
uint256 public constant MINTAGE_PER_WALLET = 100000000 ether;
... | _unlock | function _unlock(address owner) internal returns (uint256) {
require (owner != address(0x0), "invalid address");
uint256 length = _lock_data[owner].length;
mapping (uint256 => LockDataEntry[12]) storage entries = _lock_data[owner].entries;
uint256 acc_locked = 0;
for (uint256 i = 0; i < length; i ... | /*
* `_unlock` unlocks unlockable tokens and return locked balance.
* To get locked balance call `get_locked_balance` instead
*/ | Comment | v0.8.9+commit.e5eed63a | None | ipfs://433fb0a0916a7b5036987f7d4198505bc2925a0895426514449fa27e34c28628 | {
"func_code_index": [
4910,
5732
]
} | 7,405 | ||
CryptoPimps | Pimps.sol | 0xb4c80c8df14ce0a1e7c500fdd4e2bda1644f89b6 | Solidity | CryptoPimps | contract CryptoPimps is ERC721, Ownable {
using SafeMath for uint256;
uint256 public constant maxSupply = 10000;
uint256 public constant price = 3*10**16;
uint256 public constant purchaseLimit = 50;
uint256 internal constant reservable = 240;
uint256 internal constant team = 40;
string inte... | /**
* @title NFT contract - forked from BAYC
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/ | NatSpecMultiLine | withdraw | function withdraw() public {
payee.transfer(address(this).balance);
}
| /**
* emergency withdraw function, callable by anyone
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | {
"func_code_index": [
873,
958
]
} | 7,406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.