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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setDeviationThreshold | function setDeviationThreshold(uint256 _deviationThreshold) external onlyGov {
require(_deviationThreshold > 0, 'deviationThreshold: too low');
uint256 oldDeviationThreshold = deviationThreshold;
deviationThreshold = _deviationThreshold;
emit NewDeviationThreshold(oldDeviationThreshold, _deviationThreshold);
}... | /**
* @notice Sets the deviation threshold fraction. If the exchange rate given by the market
* oracle is within this fractional distance from the targetPrice, then no supply
* modifications are made.
* @param _deviationThreshold The new exchange rate threshold fraction.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
12717,
13044
]
} | 59,661 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setRetargetThreshold | function setRetargetThreshold(uint256 _retargetThreshold) external onlyGov {
require(_retargetThreshold > 0, 'retargetThreshold: too low');
retargetThreshold = _retargetThreshold;
}
| // Sets the retarget threshold parameter, Gov only. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
13420,
13611
]
} | 59,662 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setTargetStock2Flow | function setTargetStock2Flow(uint256 _targetStock2Flow) external onlyGov {
require(_targetStock2Flow > 0, 'targetStock2Flow: too low');
targetStock2Flow = _targetStock2Flow;
}
| // Overwrites the target stock-to-flow ratio, Gov only. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
13672,
13857
]
} | 59,663 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setRebaseTimingParameters | function setRebaseTimingParameters(
uint256 _minRebaseTimeIntervalSec,
uint256 _rebaseWindowOffsetSec,
uint256 _rebaseWindowLengthSec
) external onlyGov {
require(_minRebaseTimeIntervalSec > 0, 'minRebaseTimeIntervalSec: too low');
require(
_rebaseWindowOffsetSec < _minRebaseTimeIntervalSec,
'rebaseWin... | /**
* @notice Sets the parameters which control the timing and frequency of
* rebase operations.
* a) the minimum time period that must elapse between rebase cycles.
* b) the rebase window offset parameter.
* c) the rebase window length parameter.
* @param _minRebaseTimeInter... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
14543,
15067
]
} | 59,664 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | addPool | function addPool(
uint256 _allocPoint,
IERC20 _lpToken,
bool _isRed,
bool _withUpdate
) public onlyGov {
masterPot.addPool(_allocPoint, _lpToken, _isRed, _withUpdate);
}
| // Passthrough function to add pool. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
15109,
15299
]
} | 59,665 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setPool | function setPool(
uint256 _pid,
uint256 _allocPoint,
bool _withUpdate
) public onlyGov {
masterPot.setPool(_pid, _allocPoint, _withUpdate);
}
| // Passthrough function to set pool. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
15341,
15500
]
} | 59,666 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | setTipRate | function setTipRate(uint256 _tipRate) public onlyGov {
masterPot.setTipRate(_tipRate);
}
| // Passthrough function to set tip rate. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
15546,
15641
]
} | 59,667 | ||
ChefMao | contracts\ChefMao.sol | 0xfbd3749eb2ed67454850939480433e71a9f5432d | Solidity | ChefMao | contract ChefMao {
using SafeMath for uint256;
modifier onlyGov() {
require(msg.sender == gov, 'onlyGov: caller is not gov');
_;
}
// an event emitted when deviationThreshold is changed
event NewDeviationThreshold(uint256 oldDeviationThreshold, uint256 newDeviationThreshold);
// an event emitted w... | transferPotOwnership | function transferPotOwnership(address newOwner) public onlyGov {
masterPot.transferPotOwnership(newOwner);
}
| // Passthrough function to transfer pot ownership. | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://06c3e1b7010ded32c215d8d2b064a338aa716548f7264dc15aba4614175c048f | {
"func_code_index": [
15697,
15812
]
} | 59,668 | ||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
60,
124
]
} | 59,669 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
232,
309
]
} | 59,670 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
546,
623
]
} | 59,671 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
946,
1042
]
} | 59,672 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
1326,
1407
]
} | 59,673 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
1615,
1712
]
} | 59,674 | |||
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | MeowCoin | contract MeowCoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custom... | //name this contract whatever you'd like | LineComment | MeowCoin | function MeowCoin(
) {
balances[msg.sender] = 1000000; // Give the creator all initial tokens (100000 for example)
totalSupply = 1000000; // Update total supply (100000 for example)
name = "MeowCoin"; // Set the name for display ... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
1157,
1701
]
} | 59,675 | |
MeowCoin | MeowCoin.sol | 0xe19269f733821ce865a0f414db76f3298bc42f11 | Solidity | MeowCoin | contract MeowCoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custom... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.21+commit.dfe3193c | bzzr://54f31aa66a71220fd7402fbda45610bce727746b69b9297d8cd0d24dd86ec61f | {
"func_code_index": [
1762,
2567
]
} | 59,676 | |
Moonwalker | Moonwalker.sol | 0xb78feb2732966e35a889baccdd30608c8db7f446 | Solidity | Moonwalker | contract Moonwalker is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress = payable(0x7e31B0B27322f8c30a51472510D3062F6780cC60); // Marketing Address
address public immutable deadAddress = 0x00000000000000000000000000000000... | swapTokensManual | function swapTokensManual() external onlyOwner() {
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
| // We are exposing these functions to be able to manual swap and send
// in case the token is highly valued and swap threshold becomes too much | LineComment | v0.8.4+commit.c7e474f2 | None | ipfs://43a2accc75b818e3e5b9d0b2a974318f92078f5675c8231259de1469f05c3f48 | {
"func_code_index": [
6790,
6993
]
} | 59,677 | ||
Moonwalker | Moonwalker.sol | 0xb78feb2732966e35a889baccdd30608c8db7f446 | Solidity | Moonwalker | contract Moonwalker is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress = payable(0x7e31B0B27322f8c30a51472510D3062F6780cC60); // Marketing Address
address public immutable deadAddress = 0x00000000000000000000000000000000... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.8.4+commit.c7e474f2 | None | ipfs://43a2accc75b818e3e5b9d0b2a974318f92078f5675c8231259de1469f05c3f48 | {
"func_code_index": [
21272,
21306
]
} | 59,678 | ||||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | _setImplementation | function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public {
require(msg.sender == gov, "HAMDelegator::_setImplementation: Caller must be gov");
if (allowResign) {
delegateToImplementation(abi.encodeWithSignature("_resignImplementation()"));
... | /**
* @notice Called by the gov to update the implementation of the delegator
* @param implementation_ The address of the new implementation for delegation
* @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation
* @param becomeImplementationData The encoded bytes data t... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
1769,
2398
]
} | 59,679 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | mint | function mint(address to, uint256 mintAmount)
external
returns (bool)
{
to; mintAmount; // Shh
delegateAndReturn();
}
| /**
* @notice Sender supplies assets into the market and receives cTokens in exchange
* @dev Accrues interest whether or not the operation succeeds, unless reverted
* @param mintAmount The amount of the underlying asset to supply
* @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
2744,
2905
]
} | 59,680 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | transfer | function transfer(address dst, uint256 amount)
external
returns (bool)
{
dst; amount; // Shh
delegateAndReturn();
}
| /**
* @notice Transfer `amount` tokens from `msg.sender` to `dst`
* @param dst The address of the destination account
* @param amount The number of tokens to transfer
* @return Whether or not the transfer succeeded
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
3154,
3313
]
} | 59,681 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | transferFrom | function transferFrom(
address src,
address dst,
uint256 amount
)
external
returns (bool)
{
src; dst; amount; // Shh
delegateAndReturn();
}
| /**
* @notice Transfer `amount` tokens from `src` to `dst`
* @param src The address of the source account
* @param dst The address of the destination account
* @param amount The number of tokens to transfer
* @return Whether or not the transfer succeeded
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
3607,
3818
]
} | 59,682 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | approve | function approve(
address spender,
uint256 amount
)
external
returns (bool)
{
spender; amount; // Shh
delegateAndReturn();
}
| /**
* @notice Approve `spender` to transfer up to `amount` from `src`
* @dev This will overwrite the approval amount for `spender`
* and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
* @param spender The address of the account which may transfer tokens
* @param amount The number... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
4274,
4462
]
} | 59,683 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | increaseAllowance | function increaseAllowance(
address spender,
uint256 addedValue
)
external
returns (bool)
{
spender; addedValue; // Shh
delegateAndReturn();
}
| /**
* @dev Increase the amount of tokens that an owner has allowed to a spender.
* This method should be used instead of approve() to avoid the double approval vulnerability
* described above.
* @param spender The address which will spend the funds.
* @param addedValue The amount of tokens to increase the allowanc... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
4822,
5028
]
} | 59,684 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | decreaseAllowance | function decreaseAllowance(
address spender,
uint256 subtractedValue
)
external
returns (bool)
{
spender; subtractedValue; // Shh
delegateAndReturn();
}
| /**
* @dev Decrease the amount of tokens that an owner has allowed to a spender.
*
* @param spender The address which will spend the funds.
* @param subtractedValue The amount of tokens to decrease the allowance by.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
5636,
5852
]
} | 59,685 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | allowance | function allowance(
address owner,
address spender
)
external
view
returns (uint256)
{
owner; spender; // Shh
delegateToViewAndReturn();
}
| /**
* @notice Get the current allowance from `owner` for `spender`
* @param owner The address of the account which owns the tokens to be spent
* @param spender The address of the account which may transfer tokens
* @return The number of tokens allowed to be spent (-1 means infinite)
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
6170,
6380
]
} | 59,686 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | delegates | function delegates(
address delegator
)
external
view
returns (address)
{
delegator; // Shh
delegateToViewAndReturn();
}
| /**
* @notice Get the current allowance from `owner` for `spender`
* @param delegator The address of the account which has designated a delegate
* @return Address of delegatee
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
6585,
6769
]
} | 59,687 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | balanceOf | function balanceOf(address owner)
external
view
returns (uint256)
{
owner; // Shh
delegateToViewAndReturn();
}
| /**
* @notice Get the token balance of the `owner`
* @param owner The address of the account to query
* @return The number of tokens owned by `owner`
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
6948,
7110
]
} | 59,688 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | balanceOfUnderlying | function balanceOfUnderlying(address owner)
external
view
returns (uint256)
{
owner; // Shh
delegateToViewAndReturn();
}
| /**
* @notice Currently unused. For future compatability
* @param owner The address of the account to query
* @return The number of underlying tokens owned by `owner`
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
7306,
7478
]
} | 59,689 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | _setPendingGov | function _setPendingGov(address newPendingGov)
external
{
newPendingGov; // Shh
delegateAndReturn();
}
| /**
* @notice Begins transfer of gov rights. The newPendingGov must call `_acceptGov` to finalize the transfer.
* @dev Gov function to begin change of gov. The newPendingGov must call `_acceptGov` to finalize the transfer.
* @param newPendingGov New pending gov.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
7803,
7941
]
} | 59,690 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | _acceptGov | function _acceptGov()
external
{
delegateAndReturn();
}
| /**
* @notice Accepts transfer of gov rights. msg.sender must be pendingGov
* @dev Gov function for pending gov to accept role and update gov
* @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
8467,
8550
]
} | 59,691 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | delegateTo | function delegateTo(address callee, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returnData) = callee.delegatecall(data);
assembly {
if eq(success, 0) {
revert(add(returnData, 0x20), returndatasize)
}
}
return returnData;
}
| /**
* @notice Internal method to delegate execution to another contract
* @dev It returns to the external caller whatever the implementation returns or forwards reverts
* @param callee The contract to delegatecall
* @param data The raw data to delegatecall
* @return The returned bytes from the delegatecall
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
9750,
10089
]
} | 59,692 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | delegateToImplementation | function delegateToImplementation(bytes memory data) public returns (bytes memory) {
return delegateTo(implementation, data);
}
| /**
* @notice Delegates execution to the implementation contract
* @dev It returns to the external caller whatever the implementation returns or forwards reverts
* @param data The raw data to delegatecall
* @return The returned bytes from the delegatecall
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
10379,
10522
]
} | 59,693 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | delegateToViewImplementation | function delegateToViewImplementation(bytes memory data) public view returns (bytes memory) {
(bool success, bytes memory returnData) = address(this).staticcall(abi.encodeWithSignature("delegateToImplementation(bytes)", data));
assembly {
if eq(success, 0) {
revert(add(returnData, 0x20), ret... | /**
* @notice Delegates execution to an implementation contract
* @dev It returns to the external caller whatever the implementation returns or forwards reverts
* There are an additional 2 prefix uints from the wrapper returndata, which we ignore since we make an extra hop.
* @param data The raw data to delegateca... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
10931,
11361
]
} | 59,694 | |||
HAMDelegator | contracts/token/HAMDelegator.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMDelegator | contract HAMDelegator is HAMTokenInterface, HAMDelegatorInterface {
/**
* @notice Construct a new HAM
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
* @param initSupply_ Initial token amount
... | function () external payable {
require(msg.value == 0,"HAMDelegator:fallback: cannot send value to fallback");
// delegate all other functions to current implementation
delegateAndReturn();
}
| /**
* @notice Delegates execution to an implementation contract
* @dev It returns to the external caller whatever the implementation returns or forwards reverts
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
12469,
12693
]
} | 59,695 | ||||
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @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 addresse... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
609,
1036
]
} | 59,696 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
1969,
2371
]
} | 59,697 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
3127,
3305
]
} | 59,698 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
3530,
3730
]
} | 59,699 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4100,
4331
]
} | 59,700 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @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.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4582,
5117
]
} | 59,701 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
5297,
5501
]
} | 59,702 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
5688,
6115
]
} | 59,703 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
94,
154
]
} | 59,704 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
237,
310
]
} | 59,705 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
534,
616
]
} | 59,706 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
895,
983
]
} | 59,707 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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 unfortuna... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
1650,
1729
]
} | 59,708 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
2042,
2144
]
} | 59,709 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ISetToken | interface ISetToken is IERC20 {
/* ============ Enums ============ */
enum ModuleState {
NONE,
PENDING,
INITIALIZED
}
/* ============ Structs ============ */
/**
* The base definition of a SetToken Position
*
* @param component Addres... | /**
* @title ISetToken
* @author Set Protocol
*
* Interface for operating with SetTokens.
*/ | NatSpecMultiLine | addComponent | function addComponent(address _component) external;
| /* ============ Functions ============ */ | Comment | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
2326,
2382
]
} | 59,710 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | indexOf | function indexOf(address[] memory A, address a) internal pure returns (uint256, bool) {
uint256 length = A.length;
for (uint256 i = 0; i < length; i++) {
if (A[i] == a) {
return (i, true);
}
}
return (uint256(-1), false);
}
| /**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
285,
597
]
} | 59,711 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | contains | function contains(address[] memory A, address a) internal pure returns (bool) {
(, bool isIn) = indexOf(A, a);
return isIn;
}
| /**
* Returns true if the value is present in the list. Uses indexOf internally.
* @param A The input array to search
* @param a The value to find
* @return Returns isIn for the first occurrence starting from index 0
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
850,
1003
]
} | 59,712 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | hasDuplicate | function hasDuplicate(address[] memory A) internal pure returns(bool) {
require(A.length > 0, "A is empty");
for (uint256 i = 0; i < A.length - 1; i++) {
address current = A[i];
for (uint256 j = i + 1; j < A.length; j++) {
if (current == A[j]) {
return true;
... | /**
* Returns true if there are 2 elements that are the same in an array
* @param A The input array to search
* @return Returns boolean for the first occurrence of a duplicate
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
1210,
1632
]
} | 59,713 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | remove | function remove(address[] memory A, address a)
internal
pure
returns (address[] memory)
{
(uint256 index, bool isIn) = indexOf(A, a);
if (!isIn) {
revert("Address not in array.");
} else {
(address[] memory _A,) = pop(A, index);
return _A;
}
}
| /**
* @param A The input array to search
* @param a The address to remove
* @return Returns the array with the object removed.
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
1799,
2159
]
} | 59,714 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | pop | function pop(address[] memory A, uint256 index)
internal
pure
returns (address[] memory, address)
{
uint256 length = A.length;
require(index < A.length, "Index must be < A length");
address[] memory newAddresses = new address[](length - 1);
for (uint256 i = 0; i < index; i++) {
... | /**
* Removes specified index from array
* @param A The input array to search
* @param index The index to remove
* @return Returns the new array and the removed entry
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
2362,
2918
]
} | 59,715 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | AddressArrayUtils | library AddressArrayUtils {
/**
* Finds the index of the first occurrence of the given element.
* @param A The input array to search
* @param a The value to find
* @return Returns (index and isIn) for the first occurrence starting from index 0
*/
function indexOf(address[] memo... | /**
* @title AddressArrayUtils
* @author Set Protocol
*
* Utility functions to handle Address Arrays
*/ | NatSpecMultiLine | extend | function extend(address[] memory A, address[] memory B) internal pure returns (address[] memory) {
uint256 aLength = A.length;
uint256 bLength = B.length;
address[] memory newAddresses = new address[](aLength + bLength);
for (uint256 i = 0; i < aLength; i++) {
newAddresses[i] = A[i];
}... | /**
* Returns the combination of the two arrays
* @param A The first array
* @param B The second array
* @return Returns A extended by B
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
3096,
3589
]
} | 59,716 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | MutualUpgrade | contract MutualUpgrade {
/* ============ State Variables ============ */
// Mapping of upgradable units and if upgrade has been initialized by other party
mapping(bytes32 => bool) public mutualUpgrades;
/* ============ Events ============ */
event MutualUpgradeRegistered(
bytes32... | /**
* @title MutualUpgrade
* @author Set Protocol
*
* The MutualUpgrade contract contains a modifier for handling mutual upgrades between two parties
*/ | NatSpecMultiLine | _getNonCaller | function _getNonCaller(address _signerOne, address _signerTwo) internal view returns(address) {
return msg.sender == _signerOne ? _signerTwo : _signerOne;
}
| /* ============ Internal Functions ============ */ | Comment | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
1367,
1542
]
} | 59,717 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | setManager | function setManager(address _newManager) external mutualUpgrade(operator, methodologist) {
setToken.setManager(_newManager);
}
| /**
* MUTUAL UPGRADE: Update the SetToken manager address. Operator and Methodologist must each call
* this function to execute the update.
*
* @param _newManager New manager address
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
2386,
2531
]
} | 59,718 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | addAdapter | function addAdapter(address _adapter) external mutualUpgrade(operator, methodologist) {
require(!isAdapter[_adapter], "Adapter already exists");
adapters.push(_adapter);
isAdapter[_adapter] = true;
emit AdapterAdded(_adapter);
}
| /**
* MUTUAL UPGRADE: Add a new adapter that the ICManagerV2 can call.
*
* @param _adapter New adapter to add
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
2686,
2966
]
} | 59,719 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | removeAdapter | function removeAdapter(address _adapter) external mutualUpgrade(operator, methodologist) {
require(isAdapter[_adapter], "Adapter does not exist");
adapters = adapters.remove(_adapter);
isAdapter[_adapter] = false;
emit AdapterRemoved(_adapter);
}
| /**
* MUTUAL UPGRADE: Remove an existing adapter tracked by the ICManagerV2.
*
* @param _adapter Old adapter to remove
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
3130,
3428
]
} | 59,720 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | interactModule | function interactModule(address _module, bytes calldata _data) external onlyAdapter {
// Invoke call to module, assume value will always be 0
_module.functionCallWithValue(_data, 0);
}
| /**
* ADAPTER ONLY: Interact with a module registered on the SetToken.
*
* @param _module Module to interact with
* @param _data Byte data of function to call in module
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
3660,
3872
]
} | 59,721 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | addModule | function addModule(address _module) external onlyOperator {
setToken.addModule(_module);
}
| /**
* OPERATOR ONLY: Add a new module to the SetToken.
*
* @param _module New module to add
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4009,
4118
]
} | 59,722 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | removeModule | function removeModule(address _module) external onlyOperator {
setToken.removeModule(_module);
}
| /**
* OPERATOR ONLY: Remove a new module from the SetToken.
*
* @param _module Module to remove
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4259,
4374
]
} | 59,723 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | setMethodologist | function setMethodologist(address _newMethodologist) external onlyMethodologist {
emit MethodologistChanged(methodologist, _newMethodologist);
methodologist = _newMethodologist;
}
| /**
* METHODOLOGIST ONLY: Update the methodologist address
*
* @param _newMethodologist New methodologist address
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4533,
4742
]
} | 59,724 |
ICManagerV2 | ICManagerV2.sol | 0x0195522030df301be7ac0f6c755c979165100fb2 | Solidity | ICManagerV2 | contract ICManagerV2 is MutualUpgrade {
using Address for address;
using AddressArrayUtils for address[];
/* ============ Events ============ */
event AdapterAdded(
address _adapter
);
event AdapterRemoved(
address _adapter
);
event MethodologistChanged(... | /**
* @title ICManagerV2
* @author Set Protocol
*
* Smart contract manager that contains permissions and admin functionality
*/ | NatSpecMultiLine | setOperator | function setOperator(address _newOperator) external onlyOperator {
emit OperatorChanged(operator, _newOperator);
operator = _newOperator;
}
| /**
* OPERATOR ONLY: Update the operator address
*
* @param _newOperator New operator address
*/ | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://872e3fcce10767374ecfd45a687a0f46c6f3b5e60167f178df4b7cb852e3362c | {
"func_code_index": [
4881,
5050
]
} | 59,725 |
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | maxScalingFactor | function maxScalingFactor()
external
view
returns (uint256)
{
return _maxScalingFactor();
}
| /**
* @notice Computes the current max scaling factor
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
865,
1000
]
} | 59,726 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | mint | function mint(address to, uint256 amount)
external
onlyMinter
returns (bool)
{
_mint(to, amount);
return true;
}
| /**
* @notice Mints new tokens, increasing totalSupply, initSupply, and a users balance.
* @dev Limited to onlyMinter modifier
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
1483,
1647
]
} | 59,727 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | transfer | function transfer(address to, uint256 value)
external
validRecipient(to)
returns (bool)
{
// underlying balance is stored in hams, so divide by current scaling factor
// note, this means as scaling factor grows, dust will be untransferrable.
// minimum transfer value == hamsScalingFactor / 1e24... | /**
* @dev Transfer tokens to a specified address.
* @param to The address to transfer to.
* @param value The amount to be transferred.
* @return True on success, false otherwise.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
2585,
3414
]
} | 59,728 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | transferFrom | function transferFrom(address from, address to, uint256 value)
external
validRecipient(to)
returns (bool)
{
// decrease allowance
_allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value);
// get value in hams
uint256 hamValue = value.mul(internalDecimals).div(ham... | /**
* @dev Transfer tokens from one address to another.
* @param from The address you want to send tokens from.
* @param to The address you want to transfer to.
* @param value The amount of tokens to be transferred.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
3659,
4315
]
} | 59,729 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | balanceOf | function balanceOf(address who)
external
view
returns (uint256)
{
return _hamBalances[who].mul(hamsScalingFactor).div(internalDecimals);
}
| /**
* @param who The address to query.
* @return The balance of the specified address.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
4423,
4597
]
} | 59,730 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | balanceOfUnderlying | function balanceOfUnderlying(address who)
external
view
returns (uint256)
{
return _hamBalances[who];
}
| /** @notice Currently returns the internal storage amount
* @param who The address to query.
* @return The underlying balance of the specified address.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
4770,
4909
]
} | 59,731 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | allowance | function allowance(address owner_, address spender)
external
view
returns (uint256)
{
return _allowedFragments[owner_][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner has allowed to a spender.
* @param owner_ The address which owns the funds.
* @param spender The address which will spend the funds.
* @return The number of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
5204,
5378
]
} | 59,732 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | approve | function approve(address spender, uint256 value)
external
returns (bool)
{
_allowedFragments[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of
* msg.sender. This method is included for ERC20 compatibility.
* increaseAllowance and decreaseAllowance should be used instead.
* Changing an allowance with this method brings the risk that someone may transfer both
* the o... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
6003,
6235
]
} | 59,733 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue)
external
returns (bool)
{
_allowedFragments[msg.sender][spender] =
_allowedFragments[msg.sender][spender].add(addedValue);
emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner has allowed to a spender.
* This method should be used instead of approve() to avoid the double approval vulnerability
* described above.
* @param spender The address which will spend the funds.
* @param addedValue The amount of tokens to increase the allowanc... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
6595,
6936
]
} | 59,734 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue)
external
returns (bool)
{
uint256 oldValue = _allowedFragments[msg.sender][spender];
if (subtractedValue >= oldValue) {
_allowedFragments[msg.sender][spender] = 0;
} else {
_allowedFragments[msg.sender][spender] = o... | /**
* @dev Decrease the amount of tokens that an owner has allowed to a spender.
*
* @param spender The address which will spend the funds.
* @param subtractedValue The amount of tokens to decrease the allowance by.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
7186,
7692
]
} | 59,735 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | _setRebaser | function _setRebaser(address rebaser_)
external
onlyGov
{
address oldRebaser = rebaser;
rebaser = rebaser_;
emit NewRebaser(oldRebaser, rebaser_);
}
| /** @notice sets the rebaser
* @param rebaser_ The address of the rebaser contract to use for authentication.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
7857,
8057
]
} | 59,736 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | _setIncentivizer | function _setIncentivizer(address incentivizer_)
external
onlyGov
{
address oldIncentivizer = incentivizer;
incentivizer = incentivizer_;
emit NewIncentivizer(oldIncentivizer, incentivizer_);
}
| /** @notice sets the incentivizer
* @param incentivizer_ The address of the incentivizer contract to use for authentication.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
8201,
8446
]
} | 59,737 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | _setPendingGov | function _setPendingGov(address pendingGov_)
external
onlyGov
{
address oldPendingGov = pendingGov;
pendingGov = pendingGov_;
emit NewPendingGov(oldPendingGov, pendingGov_);
}
| /** @notice sets the pendingGov
* @param pendingGov_ The address of the rebaser contract to use for authentication.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
8581,
8808
]
} | 59,738 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | _acceptGov | function _acceptGov()
external
{
require(msg.sender == pendingGov, "!pending");
address oldGov = gov;
gov = pendingGov;
pendingGov = address(0);
emit NewGov(oldGov, gov);
}
| /** @notice lets msg.sender accept governance
*
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
8875,
9107
]
} | 59,739 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAMToken | contract HAMToken is HAMGovernanceToken {
// Modifiers
modifier onlyGov() {
require(msg.sender == gov);
_;
}
modifier onlyRebaser() {
require(msg.sender == rebaser);
_;
}
modifier onlyMinter() {
require(msg.sender == rebaser || msg.sender == incentivizer... | rebase | function rebase(
uint256 epoch,
uint256 indexDelta,
bool positive
)
external
onlyRebaser
returns (uint256)
{
if (indexDelta == 0) {
emit Rebase(epoch, hamsScalingFactor, hamsScalingFactor);
return totalSupply;
}
uint256 prevHamsScalingFactor = hamsScalingFactor;
if ... | /**
* @notice Initiates a new rebase operation, provided the minimum time period has elapsed.
*
* @dev The supply adjustment equals (totalSupply * DeviationFromTargetRate) / rebaseLag
* Where DeviationFromTargetRate is (MarketOracleRate - targetRate) / targetRate
* and targetRate is CpiOracleRate / baseC... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
9480,
10452
]
} | 59,740 | |||
HAMDelegator | contracts/token/HAM.sol | 0xa047498beaf604eaaef4f85b0085eddbb4253085 | Solidity | HAM | contract HAM is HAMToken {
/**
* @notice Initialize the new money market
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
*/
function initialize(
string memory name_,
string me... | initialize | function initialize(
string memory name_,
string memory symbol_,
uint8 decimals_,
address initialOwner,
uint256 initSupply_
)
public
{
require(initSupply_ > 0, "0 init supply");
super.initialize(name_, symbol_, decimals_);
initSupply = initSupply_.mul(10**24/ (BASE));
totalSupp... | /**
* @notice Initialize the new money market
* @param name_ ERC-20 name of this token
* @param symbol_ ERC-20 symbol of this token
* @param decimals_ ERC-20 decimal precision of this token
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | {
"func_code_index": [
249,
784
]
} | 59,741 | |||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
790,
891
]
} | 59,742 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | _verify | function _verify(
bytes32[] memory proof,
bytes32 merkleRoot,
bytes32 leafNode
) internal pure returns (bool) {
return MerkleProof.verify(proof, merkleRoot, leafNode);
}
| /**
* Validates a Merkle proof based on a provided merkle root and leaf node.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
1130,
1317
]
} | 59,743 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | requireChecks | function requireChecks(uint256 _mintAmount) internal view {
require(paused == false, "the contract is paused");
require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded");
}
| // Requires contract is not paused, the mint amount requested is at least 1,
// & the amount being minted + current supply is less than the max supply. | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
1478,
1678
]
} | 59,744 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | presaleMint | function presaleMint(uint256 _mintAmount, bytes32[] calldata proof)
public
payable
nonReentrant
{
uint256 supply = totalSupply();
requireChecks(_mintAmount);
// The owner of the smart contract can mint at any time, regardless of if the presale is on.
if (msg.sender != owner()) {
require (address... | /**
* Limit: 1 during presale
* Only whitelisted individuals can mint presale. We utilize a Merkle Proof to determine who is whitelisted.
* If these cases are not met, the mint WILL fail, and your gas will NOT be refunded.
* Please only mint through metarelics.xyz unless you're absolutely sure you know ... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
2024,
3288
]
} | 59,745 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | secondaryMint | function secondaryMint()
public
payable
nonReentrant
{
uint256 supply = totalSupply();
requireChecks(1);
if (msg.sender != owner()) {
require(msg.value >= cost, "insufficient funds");
require(secondMintWinners[msg.sender] == true);
require(isSecondSale == true, "2nd sale wave not on")... | // mint function for the 2nd wave of sales. Only selected addresses via raffle will be allowed to mint.
// Raffle winners are allowed one extra mint.
// Owner can also only mint 1. Owner should always invoke presaleMint for minting multiple.
// Call will fail if the contract is paused, if funds are insufficient, if the... | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
3784,
4305
]
} | 59,746 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | mint | function mint()
public
payable
nonReentrant
{
uint256 supply = totalSupply();
if (msg.sender != owner()) {
requireChecks(1);
require(msg.value >= cost, "insufficient funds");
require(isBackupSale == true, "Main sale not available.");
require(addressMintedBalance[msg.sender] == 0, ... | // backup mint function | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
4334,
4783
]
} | 59,747 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | setMintWinners | function setMintWinners(address[] memory winners) public onlyOwner {
r (uint256 i; i < winners.length; i++) {
econdMintWinners[winners[i]] = true;
}
| // Sets addresses that will be allowed to mint in the second wave. | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
5294,
5467
]
} | 59,748 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | setWhiteListMerkleRoot | function setWhiteListMerkleRoot(bytes32 merkleRoot) public onlyOwner {
whitelistMerkleRoot = merkleRoot;
}
| /** Sets the merkle root for the whitelisted individuals. */ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
5711,
5824
]
} | 59,749 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | setCost | function setCost(uint256 _newCost) public onlyOwner {
cost = _newCost;
}
| // cost in Wei | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
6171,
6250
]
} | 59,750 | ||
Metarelics | contracts/Metarelics.sol | 0x1ecfdccf97edd64fb73890ca4541f306456a21ec | Solidity | Metarelics | contract Metarelics is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
string baseURI;
string baseExtension = ".json";
uint256 public cost = .2 ether;
uint256 public maxSupply = 1000;
uint256 public maxMintable = 1;
bool public paused = true;
bool public isSecondSale = false;
... | withdraw | function withdraw() public onlyOwner nonReentrant {
uint256 balance = address(this).balance;
payable(0x120Ee9220CcB8F594483D6e0D5300babb78FAaC7).transfer(balance);
}
| // Withdraws the Ethers in the smart contract to the wallet that specified in the smart contract. | LineComment | v0.8.7+commit.e28d00a7 | GNU LGPLv3 | ipfs://02843e2d3193106957fb3c07b5fc74287eabae7eb2606250f0bee3bbedcdf9d3 | {
"func_code_index": [
6746,
6933
]
} | 59,751 | ||
NNCProjectToken | patterns\GSN\Context.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (addres... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
265,
368
]
} | 59,752 |
NNCProjectToken | patterns\token\ERC777\IERC777Recipient.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC777Recipient | interface IERC777Recipient {
/**
* @dev Called by an {IERC777} token contract whenever tokens are being
* moved or created into a registered account (`to`). The type of operation
* is conveyed by `from` being the zero address or not.
*
* This call occurs _after_ the token contract's s... | /**
* @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
*
* Accounts can be notified of {IERC777} tokens being sent to them by having a
* contract implement this interface (contract holders can be their own
* implementer) and registering it on the
* https://eips.ethereum.org/EIPS/e... | NatSpecMultiLine | tokensReceived | function tokensReceived(
address operator,
address from,
address to,
uint256 amount,
bytes calldata userData,
bytes calldata operatorData
) external;
| /**
* @dev Called by an {IERC777} token contract whenever tokens are being
* moved or created into a registered account (`to`). The type of operation
* is conveyed by `from` being the zero address or not.
*
* This call occurs _after_ the token contract's state is updated, so
* {IERC777-balanceOf}, etc., can... | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
519,
732
]
} | 59,753 |
NNCProjectToken | patterns\token\ERC777\IERC777Sender.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC777Sender | interface IERC777Sender {
/**
* @dev Called by an {IERC777} token contract whenever a registered holder's
* (`from`) tokens are about to be moved or destroyed. The type of operation
* is conveyed by `to` being the zero address or not.
*
* This call occurs _before_ the token contract's... | /**
* @dev Interface of the ERC777TokensSender standard as defined in the EIP.
*
* {IERC777} Token holders can be notified of operations performed on their
* tokens by having a contract implement this interface (contract holders can be
* their own implementer) and registering it on the
* https://eips.ether... | NatSpecMultiLine | tokensToSend | function tokensToSend(
address operator,
address from,
address to,
uint256 amount,
bytes calldata userData,
bytes calldata operatorData
) external;
| /**
* @dev Called by an {IERC777} token contract whenever a registered holder's
* (`from`) tokens are about to be moved or destroyed. The type of operation
* is conveyed by `to` being the zero address or not.
*
* This call occurs _before_ the token contract's state is updated, so
* {IERC777-balanceOf}, etc.... | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
520,
731
]
} | 59,754 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | setManager | function setManager(address account, address newManager) external;
| /**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this initial state.
*
* Emits a {ManagerChanged} event.
... | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
493,
564
]
} | 59,755 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | getManager | function getManager(address account) external view returns (address);
| /**
* @dev Returns the manager for `account`.
*
* See {setManager}.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
667,
741
]
} | 59,756 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | setInterfaceImplementer | function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;
| /**
* @dev Sets the `implementer` contract as `account`'s implementer for
* `interfaceHash`.
*
* `account` being the zero address is an alias for the caller's address.
* The zero address can also be used in `implementer` to remove an old one.
*
* See {interfaceHash} to learn how these are created.
*
*... | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
1582,
1690
]
} | 59,757 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | getInterfaceImplementer | function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);
| /**
* @dev Returns the implementer of `interfaceHash` for `account`. If no such
* implementer is registered, returns the zero address.
*
* If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
* zeroes), `account` will be queried for support of it.
*
* `account` being the zero address is a... | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
2089,
2199
]
} | 59,758 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | interfaceHash | function interfaceHash(string calldata interfaceName) external pure returns (bytes32);
| /**
* @dev Returns the interface hash for an `interfaceName`, as defined in the
* corresponding
* https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
2408,
2499
]
} | 59,759 |
NNCProjectToken | patterns\introspection\IERC1820Registry.sol | 0xa67462ff3314c682277771ae2bbcec08877c877a | Solidity | IERC1820Registry | interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this in... | /**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a sin... | NatSpecMultiLine | updateERC165Cache | function updateERC165Cache(address account, bytes4 interfaceId) external;
| /**
* @notice Updates the cache with whether the contract implements an ERC165 interface or not.
* @param account Address of the contract for which to update the cache.
* @param interfaceId ERC165 interface for which to update the cache.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | MIT | bzzr://c1bab4b5e3e40f4294e652b388dfc625ccf21445b4e184e78b601a51d58a2cc2 | {
"func_code_index": [
2775,
2853
]
} | 59,760 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.