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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EOSBetSlots | EOSBetSlots.sol | 0x4a3e0c60f7fa67e8b65c401ddbbf7c17fea5fe40 | Solidity | EOSBetSlots | contract EOSBetSlots is usingOraclize, EOSBetGameInterface {
using SafeMath for *;
// events
event BuyCredits(bytes32 indexed oraclizeQueryId);
event LedgerProofFailed(bytes32 indexed oraclizeQueryId);
event Refund(bytes32 indexed oraclizeQueryId, uint256 amount);
event SlotsLargeBet(bytes32 indexed ora... | setInitialGasForOraclize | function setInitialGasForOraclize(uint256 gasAmt) public {
require(msg.sender == OWNER);
INITIALGASFORORACLIZE = gasAmt;
}
| // should be ~160,000 to save eth | LineComment | v0.4.21+commit.dfe3193c | bzzr://2d48f2cf6e8bfcc89fb1b8028c0e9f3ac99194db8d859ddd6bcf058cdfd9d462 | {
"func_code_index": [
4246,
4380
]
} | 60,061 | |||
EOSBetSlots | EOSBetSlots.sol | 0x4a3e0c60f7fa67e8b65c401ddbbf7c17fea5fe40 | Solidity | EOSBetSlots | contract EOSBetSlots is usingOraclize, EOSBetGameInterface {
using SafeMath for *;
// events
event BuyCredits(bytes32 indexed oraclizeQueryId);
event LedgerProofFailed(bytes32 indexed oraclizeQueryId);
event Refund(bytes32 indexed oraclizeQueryId, uint256 amount);
event SlotsLargeBet(bytes32 indexed ora... | ERC20Rescue | function ERC20Rescue(address tokenAddress, uint256 amtTokens) public {
require (msg.sender == OWNER);
ERC20(tokenAddress).transfer(msg.sender, amtTokens);
}
| // rescue tokens inadvertently sent to the contract address | LineComment | v0.4.21+commit.dfe3193c | bzzr://2d48f2cf6e8bfcc89fb1b8028c0e9f3ac99194db8d859ddd6bcf058cdfd9d462 | {
"func_code_index": [
5243,
5411
]
} | 60,062 | |||
EOSBetSlots | EOSBetSlots.sol | 0x4a3e0c60f7fa67e8b65c401ddbbf7c17fea5fe40 | Solidity | EOSBetSlots | contract EOSBetSlots is usingOraclize, EOSBetGameInterface {
using SafeMath for *;
// events
event BuyCredits(bytes32 indexed oraclizeQueryId);
event LedgerProofFailed(bytes32 indexed oraclizeQueryId);
event Refund(bytes32 indexed oraclizeQueryId, uint256 amount);
event SlotsLargeBet(bytes32 indexed ora... | getDial1Type | function getDial1Type(uint8 dial1Location) internal pure returns(uint8) {
if (dial1Location == 0) { return 0; }
else if (dial1Location >= 1 && dial1Location <= 7) { return 1; }
else if (dial1Location == 8) { return 2; }
else if (dial1Location >= 9 && dial1Location <= 13) { r... | // note that dial1 / 2 / 3 will go from mod 64 to mod 7 in this manner | LineComment | v0.4.21+commit.dfe3193c | bzzr://2d48f2cf6e8bfcc89fb1b8028c0e9f3ac99194db8d859ddd6bcf058cdfd9d462 | {
"func_code_index": [
14540,
15072
]
} | 60,063 | |||
EOSBetSlots | EOSBetSlots.sol | 0x4a3e0c60f7fa67e8b65c401ddbbf7c17fea5fe40 | Solidity | EOSBetSlots | contract EOSBetSlots is usingOraclize, EOSBetGameInterface {
using SafeMath for *;
// events
event BuyCredits(bytes32 indexed oraclizeQueryId);
event LedgerProofFailed(bytes32 indexed oraclizeQueryId);
event Refund(bytes32 indexed oraclizeQueryId, uint256 amount);
event SlotsLargeBet(bytes32 indexed ora... | determinePayout | function determinePayout(uint8 dial1, uint8 dial2, uint8 dial3) internal pure returns(uint256) {
if (dial1 == 6 || dial2 == 6 || dial3 == 6){
// all blank
if (dial1 == 6 && dial2 == 6 && dial3 == 6)
return 1;
}
else if (dial1 == 5){
// bronze planet -> silver planet -> gold planet
if (dial2 == 4 &... | //////////////////////////////////////////////// | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://2d48f2cf6e8bfcc89fb1b8028c0e9f3ac99194db8d859ddd6bcf058cdfd9d462 | {
"func_code_index": [
17046,
19969
]
} | 60,064 | |||
UnderlyingTokenValuatorImplV2 | contracts/impl/UnderlyingTokenValuatorImplV2.sol | 0x80631a5151048f4e47b60406143cf13e104e0626 | Solidity | UnderlyingTokenValuatorImplV2 | contract UnderlyingTokenValuatorImplV2 is IUnderlyingTokenValuator, Ownable {
using StringHelpers for address;
using SafeMath for uint;
event EthUsdAggregatorChanged(address indexed oldAggregator, address indexed newAggregator);
address public dai;
address public usdc;
address public... | getTokenValue | function getTokenValue(address token, uint amount) public view returns (uint) {
if (token == weth) {
return amount.mul(ethUsdAggregator.currentAnswer()).div(USD_AGGREGATOR_BASE);
} else if (token == usdc) {
return amount;
} else if (token == dai) {
return amount;
} else {
... | // For right now, we use stable-coins, which we assume are worth $1.00 | LineComment | v0.5.13+commit.5b0b510c | Apache-2.0 | bzzr://35a695b36e1214ed47c3de828bb98711c2de28654bf407704ca65d19bbb503f3 | {
"func_code_index": [
1082,
1543
]
} | 60,065 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | addAuthorization | function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
authorizedAccounts[account] = 1;
emit AddAuthorization(account);
}
| /**
* @notice Add auth to an account
* @param account Account to add auth to
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
205,
441
]
} | 60,066 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | removeAuthorization | function removeAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
authorizedAccounts[account] = 0;
emit RemoveAuthorization(account);
}
| /**
* @notice Remove auth from an account
* @param account Account to remove auth from
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
555,
797
]
} | 60,067 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | approveSAFEModification | function approveSAFEModification(address account) external {
safeRights[msg.sender][account] = 1;
emit ApproveSAFEModification(msg.sender, account);
}
| /**
* @notice Allow an address to modify your SAFE
* @param account Account to give SAFE permissions to
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
1287,
1465
]
} | 60,068 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | denySAFEModification | function denySAFEModification(address account) external {
safeRights[msg.sender][account] = 0;
emit DenySAFEModification(msg.sender, account);
}
| /**
* @notice Deny an address the rights to modify your SAFE
* @param account Account to give SAFE permissions to
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
1606,
1778
]
} | 60,069 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | canModifySAFE | function canModifySAFE(address safe, address account) public view returns (bool) {
return either(safe == account, safeRights[safe][account] == 1);
}
| /**
* @notice Checks whether msg.sender has the right to modify a SAFE
**/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
1869,
2036
]
} | 60,070 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | addition | function addition(uint x, int y) internal pure returns (uint z) {
z = x + uint(y);
require(y >= 0 || z <= x);
require(y <= 0 || z >= x);
}
| // --- Math --- | LineComment | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
6715,
6890
]
} | 60,071 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | initializeCollateralType | function initializeCollateralType(bytes32 collateralType) external isAuthorized {
require(collateralTypes[collateralType].accumulatedRate == 0, "SAFEEngine/collateral-type-already-exists");
collateralTypes[collateralType].accumulatedRate = 10 ** 27;
emit InitializeCollateralType(collateralType);
}
| /**
* @notice Creates a brand new collateral type
* @param collateralType Collateral type name (e.g ETH-A, TBTC-B)
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
8116,
8451
]
} | 60,072 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | modifyParameters | function modifyParameters(bytes32 parameter, uint data) external isAuthorized {
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
if (parameter == "globalDebtCeiling") globalDebtCeiling = data;
else if (parameter == "safeDebtCeiling") safeDebtCeiling = data;
else revert("SAFEEngine/m... | /**
* @notice Modify general uint params
* @param parameter The name of the parameter modified
* @param data New value for the parameter
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
8621,
9045
]
} | 60,073 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | modifyParameters | function modifyParameters(
bytes32 collateralType,
bytes32 parameter,
uint data
) external isAuthorized {
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
if (parameter == "safetyPrice") collateralTypes[collateralType].safetyPrice = data;
else if (parameter == "liquidatio... | /**
* @notice Modify collateral specific params
* @param collateralType Collateral type we modify params for
* @param parameter The name of the parameter modified
* @param data New value for the parameter
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
9289,
10033
]
} | 60,074 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | disableContract | function disableContract() external isAuthorized {
contractEnabled = 0;
emit DisableContract();
}
| /**
* @notice Disable this contract (normally called by GlobalSettlement)
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
10128,
10253
]
} | 60,075 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | modifyCollateralBalance | function modifyCollateralBalance(
bytes32 collateralType,
address account,
int256 wad
) external isAuthorized {
tokenCollateral[collateralType][account] = addition(tokenCollateral[collateralType][account], wad);
emit ModifyCollateralBalance(collateralType, account, wad);
}
| /**
* @notice Join/exit collateral into and and out of the system
* @param collateralType Collateral type we join/exit
* @param account Account that gets credited/debited
* @param wad Amount of collateral
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
10527,
10860
]
} | 60,076 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | transferCollateral | function transferCollateral(
bytes32 collateralType,
address src,
address dst,
uint256 wad
) external {
require(canModifySAFE(src, msg.sender), "SAFEEngine/not-allowed");
tokenCollateral[collateralType][src] = subtract(tokenCollateral[collateralType][src], wad);
tokenCollateral[colla... | /**
* @notice Transfer collateral between accounts
* @param collateralType Collateral type transferred
* @param src Collateral source
* @param dst Collateral destination
* @param wad Amount of collateral transferred
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
11121,
11620
]
} | 60,077 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | transferInternalCoins | function transferInternalCoins(address src, address dst, uint256 rad) external {
require(canModifySAFE(src, msg.sender), "SAFEEngine/not-allowed");
coinBalance[src] = subtract(coinBalance[src], rad);
coinBalance[dst] = addition(coinBalance[dst], rad);
emit TransferInternalCoins(src, dst, rad);
}
| /**
* @notice Transfer internal coins (does not affect external balances from Coin.sol)
* @param src Coins source
* @param dst Coins destination
* @param rad Amount of coins transferred
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
11845,
12187
]
} | 60,078 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | modifySAFECollateralization | function modifySAFECollateralization(
bytes32 collateralType,
address safe,
address collateralSource,
address debtDestination,
int deltaCollateral,
int deltaDebt
) external {
// system is live
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
SAFE memory s... | /**
* @notice Add/remove collateral or put back/generate more debt in a SAFE
* @param collateralType Type of collateral to withdraw/deposit in and from the SAFE
* @param safe Target SAFE
* @param collateralSource Account we take collateral from/put collateral into
* @param debtDestination Account from which w... | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
12981,
16465
]
} | 60,079 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | transferSAFECollateralAndDebt | function transferSAFECollateralAndDebt(
bytes32 collateralType,
address src,
address dst,
int deltaCollateral,
int deltaDebt
) external {
SAFE storage srcSAFE = safes[collateralType][src];
SAFE storage dstSAFE = safes[collateralType][dst];
CollateralType storage collateralType_ ... | /**
* @notice Transfer collateral and/or debt between SAFEs
* @param collateralType Collateral type transferred between SAFEs
* @param src Source SAFE
* @param dst Destination SAFE
* @param deltaCollateral Amount of collateral to take/add into src and give/take from dst (wad)
* @param deltaDebt Amount of de... | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
16912,
18913
]
} | 60,080 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | confiscateSAFECollateralAndDebt | function confiscateSAFECollateralAndDebt(
bytes32 collateralType,
address safe,
address collateralCounterparty,
address debtCounterparty,
int deltaCollateral,
int deltaDebt
) external isAuthorized {
SAFE storage safe_ = safes[collateralType][safe];
CollateralType storage collate... | /**
* @notice Normally used by the LiquidationEngine in order to confiscate collateral and
debt from a SAFE and give them to someone else
* @param collateralType Collateral type the SAFE has locked inside
* @param safe Target SAFE
* @param collateralCounterparty Who we take/give collateral to
* @param debtC... | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
19509,
20960
]
} | 60,081 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | settleDebt | function settleDebt(uint rad) external {
address account = msg.sender;
debtBalance[account] = subtract(debtBalance[account], rad);
coinBalance[account] = subtract(coinBalance[account], rad);
globalUnbackedDebt = subtract(globalUnbackedDebt, rad);
globalDebt = subtract(glob... | /**
* @notice Nullify an amount of coins with an equal amount of debt
* @param rad Amount of debt & coins to destroy
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
21133,
21614
]
} | 60,082 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | createUnbackedDebt | function createUnbackedDebt(
address debtDestination,
address coinDestination,
uint rad
) external isAuthorized {
debtBalance[debtDestination] = addition(debtBalance[debtDestination], rad);
coinBalance[coinDestination] = addition(coinBalance[coinDestination], rad);
globalUnbackedDebt ... | /**
* @notice Usually called by CoinSavingsAccount in order to create unbacked debt
* @param debtDestination Usually AccountingEngine that can settle debt with surplus
* @param coinDestination Usually CoinSavingsAccount that passes the new coins to depositors
* @param rad Amount of debt to create
*/ | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
21951,
22691
]
} | 60,083 | ||
SAFEEngine | SAFEEngine.sol | 0xf0b7808b940b78be81ad6f9e075ce8be4a837e2c | Solidity | SAFEEngine | contract SAFEEngine {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @notice Add auth to an account
* @param account Account to add auth to
*/
function addAuthorization(address account) external isAuthorized {
require(contractEnabled == 1, "SAFE... | updateAccumulatedRate | function updateAccumulatedRate(
bytes32 collateralType,
address surplusDst,
int rateMultiplier
) external isAuthorized {
require(contractEnabled == 1, "SAFEEngine/contract-not-enabled");
CollateralType storage collateralType_ = collateralTypes[collateralType];
collateralType_.accumulatedR... | /**
* @notice Usually called by TaxCollector in order to accrue interest on a specific collateral type
* @param collateralType Collateral type we accrue interest for
* @param surplusDst Destination for amount of surplus created by applying the interest rate
to debt created by SAFEs with 'collateralType'
* @pa... | NatSpecMultiLine | v0.6.7+commit.b8d736ae | None | ipfs://19acaf0b758e88d7398641f8e6524b72e4cc129cbad4170247a0f607b8938f96 | {
"func_code_index": [
23168,
24082
]
} | 60,084 | ||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
60,
124
]
} | 60,085 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
232,
309
]
} | 60,086 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
546,
623
]
} | 60,087 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
946,
1042
]
} | 60,088 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
1326,
1407
]
} | 60,089 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
1615,
1712
]
} | 60,090 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | Solidity | TCCoin | contract TCCoin is StandardToken {
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core functionality.
Some wallets/interfaces might ... | TCCoin | function TCCoin() {
balances[msg.sender] = 10000000000000000000000; // Give the creator all initial tokens.
totalSupply = 10000000000000000000000; // Update total supply (1000 for example)
name = "TCCoin"; // Set the name fo... | // Where should the raised ETH go?
// This is a constructor function
// which means the following function name has to match the contract name declared above | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
1152,
1957
]
} | 60,091 | |||
TCCoin | TCCoin.sol | 0x0b8fb5df315569c1d4f4cf9db516c46e1fd7f888 | Solidity | TCCoin | contract TCCoin is StandardToken {
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core functionality.
Some wallets/interfaces might ... | 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.19+commit.c4cbbb05 | bzzr://88b075e91d588a635833db95195657bab5b9494ced1fdcb4b9f14312c1e18533 | {
"func_code_index": [
2581,
3386
]
} | 60,092 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | TokenERC20 | function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = 8400000000; // Update total supply with the decimal amount
initialSupply = totalSupply;
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
... | /**
* Constructor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
769,
1402
]
} | 60,093 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to])... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
1486,
2328
]
} | 60,094 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
2534,
2646
]
} | 60,095 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
2921,
3222
]
} | 60,096 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
3486,
3662
]
} | 60,097 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
4056,
4408
]
} | 60,098 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
Burn(msg.sender, _val... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
4578,
4952
]
} | 60,099 | |||
DarkSideCoin | DarkSideCoin.sol | 0x3ef606ea98600ad738bc1c72e1dfc36ea097bfd9 | Solidity | DarkSideCoin | contract DarkSideCoin {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addre... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://57c3057c116e1f63b3526ef0a1985a190f7beaa6957100b1e3b50b22ee2155bf | {
"func_code_index": [
5210,
5821
]
} | 60,100 | |||
nft8008 | contracts/NFT8008.sol | 0x0a5c4879e9729be630448da7f31c5c4540121565 | Solidity | Base64 | library Base64 {
bytes internal constant TABLE =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/// @notice Encodes some bytes to the base64 representation
function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (... | /// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <brecht@loopring.org> | NatSpecSingleLine | encode | function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (len == 0) return "";
// multiply by 4/3 rounded up
uint256 encodedLen = 4 * ((len + 2) / 3);
// Add some extra buffer at the end
bytes memory result = new bytes(encodedLen + 32);
byte... | /// @notice Encodes some bytes to the base64 representation | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
194,
1929
]
} | 60,101 | ||
ClaimTopicsRegistry | contracts/registry/ClaimTopicsRegistry.sol | 0x1fe406405690000ef533ca33c1275141f654275a | Solidity | ClaimTopicsRegistry | contract ClaimTopicsRegistry is IClaimTopicsRegistry, Ownable {
uint256[] claimTopics;
/**
* @notice Add a trusted claim topic (For example: KYC=1, AML=2).
* Only owner can call.
*
* @param claimTopic The claim topic index
*/
function addClaimTopic(uint256 claimTopic) public on... | addClaimTopic | function addClaimTopic(uint256 claimTopic) public onlyOwner {
uint length = claimTopics.length;
for(uint i = 0; i<length; i++){
require(claimTopics[i]!=claimTopic, "claimTopic already exists");
}
claimTopics.push(claimTopic);
emit ClaimTopicAdded(claimTopic);
}
| /**
* @notice Add a trusted claim topic (For example: KYC=1, AML=2).
* Only owner can call.
*
* @param claimTopic The claim topic index
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://2bdbb055ad6c7fd5a8ba0c365c29e5d4b8179afa91d50a35355522bda19e8039 | {
"func_code_index": [
264,
593
]
} | 60,102 | ||
ClaimTopicsRegistry | contracts/registry/ClaimTopicsRegistry.sol | 0x1fe406405690000ef533ca33c1275141f654275a | Solidity | ClaimTopicsRegistry | contract ClaimTopicsRegistry is IClaimTopicsRegistry, Ownable {
uint256[] claimTopics;
/**
* @notice Add a trusted claim topic (For example: KYC=1, AML=2).
* Only owner can call.
*
* @param claimTopic The claim topic index
*/
function addClaimTopic(uint256 claimTopic) public on... | removeClaimTopic | function removeClaimTopic(uint256 claimTopic) public onlyOwner {
uint length = claimTopics.length;
for (uint i = 0; i<length; i++) {
if(claimTopics[i] == claimTopic) {
delete claimTopics[i];
claimTopics[i] = claimTopics[length-1];
delete claimTopics[length-1];
... | /**
* @notice Remove a trusted claim topic (For example: KYC=1, AML=2).
* Only owner can call.
*
* @param claimTopic The claim topic index
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://2bdbb055ad6c7fd5a8ba0c365c29e5d4b8179afa91d50a35355522bda19e8039 | {
"func_code_index": [
768,
1265
]
} | 60,103 | ||
ClaimTopicsRegistry | contracts/registry/ClaimTopicsRegistry.sol | 0x1fe406405690000ef533ca33c1275141f654275a | Solidity | ClaimTopicsRegistry | contract ClaimTopicsRegistry is IClaimTopicsRegistry, Ownable {
uint256[] claimTopics;
/**
* @notice Add a trusted claim topic (For example: KYC=1, AML=2).
* Only owner can call.
*
* @param claimTopic The claim topic index
*/
function addClaimTopic(uint256 claimTopic) public on... | getClaimTopics | function getClaimTopics() public view returns (uint256[] memory) {
return claimTopics;
}
| /**
* @notice Get the trusted claim topics for the security token
*
* @return Array of trusted claim topics
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://2bdbb055ad6c7fd5a8ba0c365c29e5d4b8179afa91d50a35355522bda19e8039 | {
"func_code_index": [
1404,
1511
]
} | 60,104 | ||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
60,
124
]
} | 60,105 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
232,
309
]
} | 60,106 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
546,
623
]
} | 60,107 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
946,
1042
]
} | 60,108 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
1326,
1407
]
} | 60,109 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | 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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
1615,
1712
]
} | 60,110 | |||
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | Solidity | FranklinFrank | contract FranklinFrank 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 c... | //name this contract whatever you'd like | LineComment | FranklinFrank | function FranklinFrank(
) {
balances[msg.sender] = 1000000; // Give the creator all initial tokens (100000 for example)
totalSupply = 1000000; // Update total supply (100000 for example)
name = "Franklin Frank"; // Set the name for display purposes
decimals = 2; ... | //human 0.1 standard. Just an arbitrary versioning scheme.
//make sure this function name matches the contract name above. So if your token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
990,
1473
]
} | 60,111 | |
FranklinFrank | FranklinFrank.sol | 0x718c16ba9dbca5fe1078c8ea09aefccab76a94a1 | Solidity | FranklinFrank | contract FranklinFrank 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 c... | //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.23+commit.124ca40d | bzzr://5023f4489cd916b753aca92ebec64194839bb185e9a7558875f11530c2182a92 | {
"func_code_index": [
1534,
2339
]
} | 60,112 | |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
101,
154
]
} | 60,113 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address tokenOwner) public view returns (uint balance);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
233,
310
]
} | 60,114 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address tokenOwner, address spender) public view returns (uint remaining);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
585,
681
]
} | 60,115 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address to, uint tokens) public returns (bool success);
| /**
* @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.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
901,
977
]
} | 60,116 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint tokens) public returns (bool success);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
1637,
1717
]
} | 60,117 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | ERC20Interface | contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() public view returns (uint);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address tokenOwner) public view returns (uint balance);
/**
... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success);
| /**
* @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.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
2027,
2121
]
} | 60,118 |
AndrhodesianRidgeback | AndrhodesianRidgeback.sol | 0x45dee05dfb57388e03d64631d12425433c458c93 | Solidity | TokenERC20 | contract TokenERC20 is ERC20Interface, Owned{
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
address public pool;
address public DelegateX = 0x1068a7FFF471A6CCDe4173c48F98502238497724;
address public DelegateY = 0xa316bfEFC8073655d5... | totalSupply | function totalSupply() public view returns (uint) {
return _totalSupply.sub(balances[address(0)]);
}
| /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://256fc9fb5cc19ad9d28dd974d8e3fc361623268edbe5ec6aabe9ca4f36442827 | {
"func_code_index": [
1900,
2011
]
} | 60,119 | ||
EasyAuction | contracts/interfaces/AllowListVerifier.sol | 0x0b7ffc1f4ad541a4ed16b40d8c37f0929158d101 | Solidity | AllowListVerifier | interface AllowListVerifier {
/// @dev Should return whether the a specific user has access to an auction
/// by returning the magic value from AllowListVerifierHelper
function isAllowed(
address user,
uint256 auctionId,
bytes calldata callData
) external view returns (bytes4);
} | ///
/// @dev Standardized interface for an allowList manager for easyAuction
/// The interface was inspired by EIP-1271 | NatSpecSingleLine | isAllowed | function isAllowed(
address user,
uint256 auctionId,
bytes calldata callData
) external view returns (bytes4);
| /// @dev Should return whether the a specific user has access to an auction
/// by returning the magic value from AllowListVerifierHelper | NatSpecSingleLine | v0.6.12+commit.27d51765 | None | {
"func_code_index": [
176,
318
]
} | 60,120 | |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
165,
238
]
} | 60,121 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
462,
544
]
} | 60,122 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
823,
911
]
} | 60,123 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1575,
1654
]
} | 60,124 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1967,
2069
]
} | 60,125 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
259,
445
]
} | 60,126 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
723,
864
]
} | 60,127 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1162,
1359
]
} | 60,128 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1613,
2089
]
} | 60,129 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
2560,
2697
]
} | 60,130 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
3188,
3471
]
} | 60,131 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
3931,
4066
]
} | 60,132 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
4546,
4717
]
} | 60,133 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Context | abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mut... | _msgSender | function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
| //function _msgSender() internal view virtual returns (address payable) { | LineComment | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
108,
211
]
} | 60,134 | ||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
606,
1230
]
} | 60,135 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
2160,
2562
]
} | 60,136 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
3318,
3496
]
} | 60,137 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
3721,
3922
]
} | 60,138 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
4292,
4523
]
} | 60,139 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
4774,
5095
]
} | 60,140 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
557,
641
]
} | 60,141 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1200,
1353
]
} | 60,142 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1503,
1752
]
} | 60,143 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = block.timestamp + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
1920,
2151
]
} | 60,144 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(block.timestamp > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
2222,
2532
]
} | 60,145 |
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | NuclearWinter | contract NuclearWinter is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (addres... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
10251,
10285
]
} | 60,146 | ||||
NuclearWinter | NuclearWinter.sol | 0xbcbe2ff0a9377abbd46b22f34e7e26a2b4489cd4 | Solidity | NuclearWinter | contract NuclearWinter is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (addres... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!canTrade){
require(sender == owner()); // only owner allowed to trade or add liquidity
}
if(botWallets[sender] || botWallets[recipient]){
require(botscantrade, "bots arent all... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.12+commit.f00d7308 | Unlicense | ipfs://b2b19a48b15e64b681ed22c24fc3880393cdb1a9e7702562d35f7539b977bd0a | {
"func_code_index": [
18173,
19292
]
} | 60,147 | ||
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
60,
124
]
} | 60,148 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
232,
309
]
} | 60,149 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
546,
623
]
} | 60,150 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
946,
1042
]
} | 60,151 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
1326,
1407
]
} | 60,152 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | 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) {}
/// ... | // Digital oCoin Token
// Symbol : DoC
// Name : Digital oCoin
// Total supply: 21,000,000
// Decimals : 18
//
//
//
//
//
//
// | LineComment | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
1615,
1712
]
} | 60,153 |
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | Solidity | DigitaloCoin | contract DigitaloCoin is StandardToken { // CHANGE THIS. Update the contract name.
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core fu... | DigitaloCoin | function DigitaloCoin() {
balances[msg.sender] = 21000000000000000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
totalSupply = 2100000000000000000000000... | // Where should the raised ETH go?
// This is a constructor function
// which means the following function name has to match the contract name declared above | LineComment | v0.4.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
1200,
2226
]
} | 60,154 | ||
DigitaloCoin | DigitaloCoin.sol | 0x0387e4368bf7ddcea744c7657bd4d2168bf9a1f0 | Solidity | DigitaloCoin | contract DigitaloCoin is StandardToken { // CHANGE THIS. Update the contract name.
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core fu... | 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.25+commit.59dbf8f1 | None | bzzr://f284c7a7b5e7b0db0dae7945bb5a66792751ac720a745e256c1f59454f401c21 | {
"func_code_index": [
2822,
3627
]
} | 60,155 | ||
OptaToken | OptaToken.sol | 0x3fe2ef1dfb1595195768627d16751d552586dce8 | 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.24+commit.e67f0147 | bzzr://8955b8b8691c20c5cd094495c8b5705abd5405beacad82a46a098a3baf7898e8 | {
"func_code_index": [
61,
125
]
} | 60,156 | |||
OptaToken | OptaToken.sol | 0x3fe2ef1dfb1595195768627d16751d552586dce8 | 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.24+commit.e67f0147 | bzzr://8955b8b8691c20c5cd094495c8b5705abd5405beacad82a46a098a3baf7898e8 | {
"func_code_index": [
234,
311
]
} | 60,157 | |||
OptaToken | OptaToken.sol | 0x3fe2ef1dfb1595195768627d16751d552586dce8 | 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.24+commit.e67f0147 | bzzr://8955b8b8691c20c5cd094495c8b5705abd5405beacad82a46a098a3baf7898e8 | {
"func_code_index": [
549,
626
]
} | 60,158 | |||
OptaToken | OptaToken.sol | 0x3fe2ef1dfb1595195768627d16751d552586dce8 | 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.24+commit.e67f0147 | bzzr://8955b8b8691c20c5cd094495c8b5705abd5405beacad82a46a098a3baf7898e8 | {
"func_code_index": [
950,
1046
]
} | 60,159 | |||
OptaToken | OptaToken.sol | 0x3fe2ef1dfb1595195768627d16751d552586dce8 | 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.24+commit.e67f0147 | bzzr://8955b8b8691c20c5cd094495c8b5705abd5405beacad82a46a098a3baf7898e8 | {
"func_code_index": [
1331,
1412
]
} | 60,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.