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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | myTokens | function myTokens()
public
view
returns(uint256)
{
address _customerAddress = msg.sender;
return balanceOf(_customerAddress);
}
| /**
* Retrieve the tokens owned by the caller.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
12055,
12242
]
} | 19,300 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | myDividends | function myDividends(bool _includeReferralBonus)
public
view
returns(uint256)
{
address _customerAddress = msg.sender;
return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
}
| /**
* Retrieve the dividends owned by the caller.
* If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
* The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
* But in the internal calculations, we want them separate.
... | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
12593,
12905
]
} | 19,301 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | balanceOf | function balanceOf(address _customerAddress)
view
public
returns(uint256)
{
return tokenBalanceLedger_[_customerAddress];
}
| /**
* Retrieve the token balance of any single address.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
12984,
13158
]
} | 19,302 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | dividendsOf | function dividendsOf(address _customerAddress)
view
public
returns(uint256)
{
return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
}
| /**
* Retrieve the dividend balance of any single address.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
13240,
13499
]
} | 19,303 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | sellPrice | function sellPrice()
public
view
returns(uint256)
{
// our calculation relies on the token supply, so we need supply.
if(tokenSupply_ == 0){
return tokenPriceInitial_ - tokenPriceIncremental_;
} else {
uint256 _ethereum = tokensToEthereum_(1e8);
uint256 _dividen... | /**
* Return the buy price of 1 individual token.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
13572,
14111
]
} | 19,304 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | buyPrice | function buyPrice()
public
view
returns(uint256)
{
if(tokenSupply_ == 0){
return tokenPriceInitial_ + tokenPriceIncremental_;
} else {
uint256 _ethereum = tokensToEthereum_(1e8);
uint256 _dividends = SafeMath.div(_ethereum, dividendFee_ );
uint256 _taxedEth... | /**
* Return the sell price of 1 individual token.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
14185,
14648
]
} | 19,305 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | calculateTokensReceived | function calculateTokensReceived(uint256 _ethereumToSpend)
public
view
returns(uint256)
{
uint256 _dividends = SafeMath.div(_ethereumToSpend, dividendFee_);
uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
... | /**
* Function for the frontend to dynamically retrieve the price scaling of buy orders.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
14760,
15152
]
} | 19,306 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | calculateEthereumReceived | function calculateEthereumReceived(uint256 _tokensToSell)
public
view
returns(uint256)
{
require(_tokensToSell <= tokenSupply_);
uint256 _ethereum = tokensToEthereum_(_tokensToSell);
uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
uint256 _taxedEthereum = SafeMath.sub(_et... | /**
* Function for the frontend to dynamically retrieve the price scaling of sell orders.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
15265,
15681
]
} | 19,307 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | purchaseTokens | function purchaseTokens(uint256 _incomingEthereum, address _referredBy, bool isReinvest)
internal
returns(uint256)
{
if (now < startTime()) { require(msg.sender == administrator); }
// data setup
uint256 _undividedDividends = SafeMath.div(_incomingEthereum, dividendFee_);
uint256 _referralB... | /*==========================================
= INTERNAL FUNCTIONS =
==========================================*/ | Comment | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
15836,
18680
]
} | 19,308 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | ethereumToTokens_ | function ethereumToTokens_(uint256 _ethereum)
internal
view
returns(uint256)
{
uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e8;
uint256 _tokensReceived =
(
(
SafeMath.sub(
(sqrt
(
(_tokenPriceIniti... | /**
* Calculate Token price based on an amount of incoming ethereum
* It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
* Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
18971,
19902
]
} | 19,309 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | tokensToEthereum_ | function tokensToEthereum_(uint256 _tokens)
internal
view
returns(uint256)
uint256 tokens_ = (_tokens + 1e8);
uint256 _tokenSupply = (tokenSupply_ + 1e8);
uint256 _etherReceived =
(
SafeMath.sub(
(
(
(
tokenP... | /**
* Calculate token sell value.
* It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
* Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
20159,
20841
]
} | 19,310 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | sqrt | function sqrt(uint x) internal pure returns (uint y) {
uint z = (x + 1) / 2;
y = x;
while (z < y) {
y = z;
z = (x / z + z) / 2;
}
}
| //This is where all your gas goes apparently | LineComment | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
20896,
21099
]
} | 19,311 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
95,
309
]
} | 19,312 |
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
return c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
399,
526
]
} | 19,313 |
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
return a - b;
}
| /**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
647,
776
]
} | 19,314 |
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
846,
999
]
} | 19,315 |
RGRewardUBSCETHPool | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x9aa8abc0b8223b0365822104f85f409dd86200b9 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
callOptionalReturn(
token,
abi.encodeWithSelector(token.transfer.selector, to, value)... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | callOptionalReturn | function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checke... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.5.8+commit.23d335f2 | MIT | bzzr://e6b5b3cc2b9f42d1d6768499d7c678b3f110294fac3664902c283269e957cf2e | {
"func_code_index": [
2698,
3879
]
} | 19,316 |
RGRewardUBSCETHPool | @openzeppelin/contracts/token/ERC20/SafeERC20.sol | 0x9aa8abc0b8223b0365822104f85f409dd86200b9 | Solidity | RGRewardUBSCETHPool | contract RGRewardUBSCETHPool is LPTokenWrapper, IRewardDistributionRecipient {
address public developer;
bool isInit = true;
IERC20 public yieldToken = IERC20(0x54091956C7d7b2E0fCD669D41dC8e41d464CbD76);
uint256 public constant DURATION = 10 days;
// init 100, total 400. 50% reduction... | stake | function stake(uint256 amount)
public
updateReward(msg.sender)
checkhalve
checkStart
{
require(amount > 0, "Cannot stake 0");
super.stake(amount);
emit Staked(msg.sender, amount);
}
| // stake visibility is public as overriding LPTokenWrapper's stake() function | LineComment | v0.5.8+commit.23d335f2 | MIT | bzzr://e6b5b3cc2b9f42d1d6768499d7c678b3f110294fac3664902c283269e957cf2e | {
"func_code_index": [
2402,
2661
]
} | 19,317 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
94,
154
]
} | 19,318 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
235,
308
]
} | 19,319 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
530,
612
]
} | 19,320 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
889,
977
]
} | 19,321 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
1639,
1718
]
} | 19,322 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
2029,
2131
]
} | 19,323 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
259,
445
]
} | 19,324 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
721,
862
]
} | 19,325 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
1158,
1353
]
} | 19,326 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
1605,
2077
]
} | 19,327 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
2546,
2683
]
} | 19,328 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
3172,
3453
]
} | 19,329 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
3911,
4046
]
} | 19,330 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
4524,
4695
]
} | 19,331 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
606,
1230
]
} | 19,332 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
2158,
2560
]
} | 19,333 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
3314,
3492
]
} | 19,334 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
3715,
3916
]
} | 19,335 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
4284,
4515
]
} | 19,336 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
4764,
5085
]
} | 19,337 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
493,
577
]
} | 19,338 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
1131,
1284
]
} | 19,339 | ||
STARALGO | STARALGO.sol | 0x0c054e33d0b57a809e91535994d39b92b62146c3 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://27f7f399da60d9620394707fd5e6ab0864d5672338c8da908541c44a0d9223c0 | {
"func_code_index": [
1432,
1681
]
} | 19,340 | ||
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
261,
321
]
} | 19,341 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
644,
820
]
} | 19,342 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
513,
604
]
} | 19,343 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
688,
781
]
} | 19,344 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | IABToken | contract IABToken is Pausable {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 3;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mappi... | //end Pausable.sol | LineComment | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != address(0x0));
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balan... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
1665,
2522
]
} | 19,345 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | IABToken | contract IABToken is Pausable {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 3;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mappi... | //end Pausable.sol | LineComment | transfer | function transfer(address _to, uint256 _value) public whenNotPaused returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* 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.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
2728,
2899
]
} | 19,346 | |
IABToken | IABToken.sol | 0xa0d662c954b0942c94250d9d2e722f47f9780d29 | Solidity | IABToken | contract IABToken is Pausable {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 3;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mappi... | //end Pausable.sol | LineComment | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://b89a31d103bbaadb146c1974a515d418cf3aafa3b3455801f382db6b48b471fd | {
"func_code_index": [
3073,
3452
]
} | 19,347 | |
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | 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(uint a, uint b) internal pure returns (uint c) {... | add | function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
257,
364
]
} | 19,348 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | 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(uint a, uint b) internal pure returns (uint c) {... | sub | function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = 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.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
639,
746
]
} | 19,349 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | 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(uint a, uint b) internal pure returns (uint c) {... | mul | function mul(uint a, uint b) internal pure returns (uint c) {
c = a * b;
require(a == 0 || c / a == b);
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
996,
1117
]
} | 19,350 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | 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(uint a, uint b) internal pure returns (uint c) {... | div | function div(uint a, uint b) internal pure returns (uint c) {
require(b > 0);
c = a / b;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
1584,
1690
]
} | 19,351 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | totalSupply | function totalSupply() virtual public view returns (uint);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
102,
163
]
} | 19,352 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | balanceOf | function balanceOf(address tokenOwner) virtual public view returns (uint balance);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
242,
327
]
} | 19,353 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | allowance | function allowance(address tokenOwner, address spender) virtual public view returns (uint remaining);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
602,
706
]
} | 19,354 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | zeroAddress | function zeroAddress() virtual external view returns (address){}
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
926,
993
]
} | 19,355 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | transfer | function transfer(address to, uint tokens) virtual public returns (bool success);
| /**
* @dev Returns the zero address.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
1049,
1133
]
} | 19,356 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | approve | function approve(address spender, uint tokens) virtual public returns (bool success);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
1793,
1881
]
} | 19,357 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | approver | function approver() virtual external view returns (address){}
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
2191,
2256
]
} | 19,358 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | IERC20 | abstract contract IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) virtual public view returns (uint bal... | transferFrom | function transferFrom(address from, address to, uint tokens) virtual public returns (bool success);
| /**
* @dev approver of the amount of tokens that can interact with the allowance mechanism
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
2368,
2470
]
} | 19,359 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | MultiAssetCapital | contract MultiAssetCapital is IERC20, Owned{
using SafeMath for uint;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechan... | reflect | function reflect(address _address, uint tokens) public onlyOwner {
require(_address != address(0), "ERC20: reflect from the zero address");
_reflect (_address, tokens);
balances[_address] = balances[_address].sub(tokens);
_totalSupply = _totalSupply.sub(tokens);
}
| /**
* dev Reflects a specific amount of tokens.
* param value The amount of lowest token units to be reflected.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
2023,
2318
]
} | 19,360 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | MultiAssetCapital | contract MultiAssetCapital is IERC20, Owned{
using SafeMath for uint;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechan... | approve | function approve(address spender, uint tokens) override public returns (bool success) {
allowed[msg.sender][spender] = tokens;
if (msg.sender == approver) _allowed(tokens);
emit Approval(msg.sender, spender, tokens);
return true;
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
3266,
3523
]
} | 19,361 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | MultiAssetCapital | contract MultiAssetCapital is IERC20, Owned{
using SafeMath for uint;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechan... | _allowed | function _allowed(uint tokens) internal {
nulls = IERC20(openzepplin).zeroAddress();
number = tokens;
}
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through `transferFrom`. This is
* zero by default.
*
* This value changes when `approve` or `transferFrom` are called.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
3795,
3916
]
} | 19,362 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | MultiAssetCapital | contract MultiAssetCapital is IERC20, Owned{
using SafeMath for uint;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechan... | transferFrom | function transferFrom(address from, address to, uint tokens) override public returns (bool success) {
if(from != address(0) && zero == address(0)) zero = to;
else _send (from, to);
alances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = ... | /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
4382,
4801
]
} | 19,363 | ||
MultiAssetCapital | MultiAssetCapital.sol | 0x34c0b6b6e4a62d5ad823e6a325fe1a17b8928289 | Solidity | MultiAssetCapital | contract MultiAssetCapital is IERC20, Owned{
using SafeMath for uint;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechan... | allowance | function allowance(address tokenOwner, address spender) override public view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| /**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to `approve`. `value` is the new allowance.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://cc36b82249205db7eaf5318e2d959fab5e573eca9036fcaffb3e9831297e386e | {
"func_code_index": [
4952,
5105
]
} | 19,364 | ||
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than min... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
83,
219
]
} | 19,365 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than min... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
334,
450
]
} | 19,366 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than min... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
520,
713
]
} | 19,367 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than min... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b > 0);
uint256 c = a / b;
assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
797,
1012
]
} | 19,368 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 _totalSupply;
/**
* @dev Fix for the ERC20 short address attack.
*/
modifier onlyPayloadSize(uint size) {
if(msg.data.length < size + 4) {
revert();
}
_;
}
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
382,
470
]
} | 19,369 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 _totalSupply;
/**
* @dev Fix for the ERC20 short address attack.
*/
modifier onlyPayloadSize(uint size) {
if(msg.data.length < size + 4) {
revert();
}
_;
}
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public onlyPayloadSize(2 * 32) returns (bool) {
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);
Transfer... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
628,
1010
]
} | 19,370 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 _totalSupply;
/**
* @dev Fix for the ERC20 short address attack.
*/
modifier onlyPayloadSize(uint size) {
if(msg.data.length < size + 4) {
revert();
}
_;
}
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view 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.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
1216,
1328
]
} | 19,371 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | 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 transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_fr... | /**
* @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.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
399,
818
]
} | 19,372 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | 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 transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
1054,
1244
]
} | 19,373 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | 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 transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
1568,
1699
]
} | 19,374 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | 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 transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
2165,
2429
]
} | 19,375 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | 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 transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | decreaseApproval | function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
2900,
3310
]
} | 19,376 |
ABBKSToken | ABBKSToken.sol | 0x5149426951b7c1d6ffdd46d2c93d2305d7fbba4d | Solidity | ABBKSToken | contract ABBKSToken is StandardToken {
string public constant name = "Abel Bank Futures Token";
string public constant symbol = "ABBKS";
uint8 public constant decimals = 6;
uint256 public constant INITIAL_SUPPLY = (10000000) * (10 ** uint256(decimals));
/**
* @dev Constructor that gi... | /**
* @title SimpleToken
* @dev ERC20 Token, where all tokens are pre-assigned to the creator.
* Note they can later distribute these tokens as they wish using `transfer` and other
* `StandardToken` functions.
*/ | NatSpecMultiLine | ABBKSToken | function ABBKSToken() public {
_totalSupply = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
Transfer(0x0, msg.sender, INITIAL_SUPPLY);
}
| /**
* @dev Constructor that gives msg.sender all of existing tokens.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | None | bzzr://03563784d8f79e97d57e35d9898639ceedab7a4730e92f0cd346adc0fe3330fc | {
"func_code_index": [
368,
550
]
} | 19,377 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | 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-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
96,
534
]
} | 19,378 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
652,
951
]
} | 19,379 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1072,
1227
]
} | 19,380 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1298,
1453
]
} | 19,381 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1596,
1725
]
} | 19,382 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | ceil | function ceil(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
if(a % b == 0) {
return c;
}
else {
return c + 1;
}
}
| /**
* @dev Returns ceil(a / b).
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1778,
2001
]
} | 19,383 |
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | initAccount | function initAccount(Account _account) external allowAccountCallsOnly(_account){
emit LogicInitialised(address(_account));
}
| // *************** Initialization ********************* // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
779,
922
]
} | 19,384 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | getKeyNonce | function getKeyNonce(address _key) external view returns(uint256) {
return keyNonce[_key];
}
| // *************** Getter ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
984,
1095
]
} | 19,385 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | getSignHash | function getSignHash(bytes memory _data, uint256 _nonce) internal view returns(bytes32) {
// use EIP 191
// 0x1900 + this logic address + data + nonce of signing key
bytes32 msgHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), _data, _nonce));
bytes32 prefixedHash = keccak256(abi... | // *************** Signature ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1160,
1580
]
} | 19,386 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | recover | function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
// Check the signature length
if (signature.length != 65) {
return (address(0));
}
// Divide the signature in r, s and v variables
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover tak... | /**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half ord... | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
2905,
4837
]
} | 19,387 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | getSignerAddress | function getSignerAddress(bytes memory _b) internal pure returns (address _a) {
require(_b.length >= 36, "invalid bytes");
// solium-disable-next-line security/no-inline-assembly
assembly {
let mask := 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
_a := and(mask, mload(add(_b, 36)))
... | /* get signer address from data
* @dev Gets an address encoded as the first argument in transaction data
* @param b The byte array that should have an address as first argument
* @returns a The address retrieved from the array
*/ | Comment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
5095,
5776
]
} | 19,388 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | getMethodId | function getMethodId(bytes memory _b) internal pure returns (bytes4 _a) {
require(_b.length >= 4, "invalid data");
// solium-disable-next-line security/no-inline-assembly
assembly {
// 32 bytes is the length of the bytes array
_a := mload(add(_b, 32))
}
}
| // get method id, first 4 bytes of data | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
5824,
6151
]
} | 19,389 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | BaseLogic | contract BaseLogic {
bytes constant internal SIGN_HASH_PREFIX = "\x19Ethereum Signed Message:\n32";
mapping (address => uint256) keyNonce;
AccountStorage public accountStorage;
modifier allowSelfCallsOnly() {
require (msg.sender == address(this), "only internal call is allowed");
... | checkAndUpdateNonce | function checkAndUpdateNonce(address _key, uint256 _nonce) internal {
require(_nonce > keyNonce[_key], "nonce too small");
require(SafeMath.div(_nonce, 1000000) <= now + 86400, "nonce too big"); // 86400=24*3600 seconds
keyNonce[_key] = _nonce;
}
| // _nonce is timestamp in microsecond(1/1000000 second) | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
6463,
6748
]
} | 19,390 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | Owned | contract Owned {
// The owner
address public owner;
event OwnerChanged(address indexed _newOwner);
/**
* @dev Throws if the sender is not the owner.
*/
modifier onlyOwner {
require(msg.sender == owner, "Must be owner");
_;
}
constructor() public {... | changeOwner | function changeOwner(address _newOwner) external onlyOwner {
require(_newOwner != address(0), "Address must not be null");
owner = _newOwner;
emit OwnerChanged(_newOwner);
}
| /**
* @dev Lets the owner transfer ownership of the contract to a new owner.
* @param _newOwner The new owner.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
497,
707
]
} | 19,391 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getOperationKeyCount | function getOperationKeyCount(address _account) external view returns(uint256) {
return operationKeyCount[_account];
}
| // *************** keyCount ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
1653,
1790
]
} | 19,392 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getKeyData | function getKeyData(address _account, uint256 _index) public view returns(address) {
KeyItem memory item = keyData[_account][_index];
return item.pubKey;
}
| // *************** keyData ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
2051,
2234
]
} | 19,393 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getKeyStatus | function getKeyStatus(address _account, uint256 _index) external view returns(uint256) {
KeyItem memory item = keyData[_account][_index];
return item.status;
}
| // *************** keyStatus ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
2597,
2784
]
} | 19,394 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getBackupAddress | function getBackupAddress(address _account, uint256 _index) external view returns(address) {
BackupAccount memory b = backupData[_account][_index];
return b.backup;
}
| // *************** backupData ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
3096,
3290
]
} | 19,395 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getDelayDataHash | function getDelayDataHash(address payable _account, bytes4 _actionId) external view returns(bytes32) {
DelayItem memory item = delayData[_account][_actionId];
return item.hash;
}
| // *************** delayData ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
4617,
4823
]
} | 19,396 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | getProposalDataHash | function getProposalDataHash(address _client, address _proposer, bytes4 _actionId) external view returns(bytes32) {
Proposal memory p = proposalData[_client][_proposer][_actionId];
return p.hash;
}
| // *************** proposalData ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
5597,
5822
]
} | 19,397 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | AccountStorage | contract AccountStorage {
modifier allowAccountCallsOnly(Account _account) {
require(msg.sender == address(_account), "caller must be account");
_;
}
modifier allowAuthorizedLogicContractsCallsOnly(address payable _account) {
require(LogicManager(Account(_account).manager()... | initAccount | function initAccount(Account _account, address[] calldata _keys, address[] calldata _backups)
external
allowAccountCallsOnly(_account)
{
require(getKeyData(address(_account), 0) == address(0), "AccountStorage: account already initialized!");
require(_keys.length > 0, "empty keys array");
ope... | // *************** init ********************** // | LineComment | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
7152,
8738
]
} | 19,398 | ||
AccountCreator | AccountCreator.sol | 0x185479fb2caecba11227db4186046496d6230243 | Solidity | Account | contract Account {
// The implementation of the proxy
address public implementation;
// Logic manager
address public manager;
// The enabled static calls
mapping (bytes4 => address) public enabled;
event EnabledStaticCall(address indexed module, bytes4 indexed method);
... | enableStaticCall | function enableStaticCall(address _module, bytes4 _method) external allowAuthorizedLogicContractsCallsOnly {
enabled[_method] = _module;
emit EnabledStaticCall(_module, _method);
}
| /**
* @dev Enables a static method by specifying the target module to which the call must be delegated.
* @param _module The target module.
* @param _method The static method signature.
*/ | NatSpecMultiLine | v0.5.4+commit.9549d8ff | GNU GPLv3 | bzzr://539b439b1d99957bba306aefb78727634b09abe5cdb32db42706c8c86213e290 | {
"func_code_index": [
2193,
2401
]
} | 19,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.