source_idx stringlengths 1 5 | contract_name stringlengths 1 55 | contract_source stringlengths 15 839k | count int64 1 3.92k |
|---|---|---|---|
67800 | ERC20 | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) constant returns (uint);
function transferFrom(address from, address to, uint value);
function approve(address spender, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
} | 219 |
62770 | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed... | 1 |
68372 | usingOraclize | contract usingOraclize {
uint constant day = 60*60*24;
uint constant week = 60*60*24*7;
uint constant month = 60*60*24*30;
byte constant proofType_NONE = 0x00;
byte constant proofType_TLSNotary = 0x10;
byte constant proofType_Android = 0x20;
byte constant proofType_Ledger = 0x30;
... | 3 |
63358 | ERC20 | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public constant returns (uint256);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
} | 6 |
76589 | DSAuthEvents | contract DSAuthEvents {
event LogSetAuthority(address indexed authority);
event LogSetOwner(address indexed owner);
} | 1 |
86838 | IDetailedTokenDAI | contract IDetailedTokenDAI {
function name() public view returns (bytes32);
function symbol() public view returns (bytes32);
function decimals() public view returns (uint256);
} | 1 |
619 | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
... | 102 |
72401 | DeCashProxy | contract DeCashProxy is DeCashBase, Proxy {
bytes32 private constant _IMPLEMENTATION_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
event ProxyInitiated(address indexed implementation);
event ProxyUpgraded(address indexed implementation);
// Construct
co... | 2 |
33613 | ERC20 | contract ERC20 {
uint public totalSupply;
function balanceOf(address who) public constant returns (uint);
function allowance(address owner, address spender) public constant returns (uint);
function transfer(address to, uint value) public returns (bool ok);
function transferFrom(address fr... | 1 |
40106 | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to tr... | 125 |
48615 | Governance | contract Governance {
address public _governance;
constructor() public {
_governance = tx.origin;
}
event GovernanceTransferred(address indexed previousOwner, address indexed newOwner);
modifier onlyGovernance {
require(msg.sender == _governance, "not governance");
... | 3 |
1621 | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | 194 |
54596 | MintableToken | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that ... | 104 |
85359 | HYPE_Finance | contract HYPE_Finance is ERC20, ERC20Detailed {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint;
//address public owner;
constructor () ERC20Detailed("HYPE-Finance", "HYPE", 18) {
owner = msg.sender;
_totalSupply = 10000 *(10**uint256(18));
... | 1 |
11329 | StandardToken | contract StandardToken is ERC20 {
using SafeMath
for uint256;
mapping(address => uint256) balances;
mapping(address => mapping(address => uint256)) allowed;
/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @... | 4 |
30985 | BEE_TOKEN | contract BEE_TOKEN is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public RATE;
uint public DENOMINATOR;
bool public isStopped = false;
mapping(address => uint) bal... | 1 |
66027 | WitchInu | contract WitchInu is ERC20Token {
constructor() ERC20Token("Witch Inu", "WITCH", msg.sender, 1000000000 * 10 ** 18) {
}
} | 1 |
18057 | GMPToken | contract GMPToken is Ownable, ERC20Interface {
/* Public variables of the token */
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
/* This creates an array with all balances */
mapping (address => uint256) public balances;
mapping (address => mapp... | 1 |
72264 | NydroniaAirDrop | contract NydroniaAirDrop is Ownable {
Token token;
event TransferredToken(address indexed to, uint256 value);
event FailedTransfer(address indexed to, uint256 value);
modifier whenDropIsActive() {
assert(isActive());
_;
}
function AirDrop () {
address _tokenAddr = 0xdB11F6Fc... | 1 |
12850 | Ownable | contract Ownable {
address private _owner;
event OwnerTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
_owner = msg.sender;
emit OwnerTransferred(address(0), _owner);
}
function owner() public view returns(address){
return _own... | 1 |
10354 | ITransactions | contract ITransactions {
/// @dev Executes an exchange method call in the context of signer.
/// @param salt Arbitrary number to ensure uniqueness of transaction hash.
/// @param signerAddress Address of transaction signer.
/// @param data AbiV2 encoded calldata.
/// @param signature Proof of... | 1 |
69003 | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | 102 |
30888 | CANNAX | contract CANNAX is BurnableToken {
string public constant name = "Canna Orient";
string public constant symbol = "CANNAX";
uint public constant decimals = 18;
// there is no problem in using * here instead of .mul()
uint256 public constant initialSupply = 1000000000 * (10 ** uint256(decimals)... | 1 |
22384 | Pausable | contract Pausable is Ownable {
event Pause(bool _paused);
bool public paused = false;
/**
* @dev Modifier to make a function callable based on pause states.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev called by the owner to set new p... | 2 |
3899 | FLiK | contract FLiK is owned {
/* Public variables of the token */
string public standard = 'FLiK 0.1';
string public name;
string public symbol;
uint8 public decimals = 14;
uint256 public totalSupply;
bool public locked;
uint256 public icoSince;
uint256 public icoTill;
... | 1 |
51478 | ERC20 | contract ERC20 is ERC20Interface{
function allowance(address owner, address spender) public view returns (uint);
function transferFrom(address from, address to, uint value) public returns (bool);
function approve (address spender, uint value) public returns (bool);
event Approval (address indexed ... | 2 |
43192 | ERC20Basic | contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed _from, address indexed _to, uint256 _value);
} | 7 |
49730 | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | 165 |
69293 | 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) {}
/// ... | 42 |
32828 | IbTT1 | contract IbTT1 is ERC721, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
uint256 private MAX_SUPPLY = 128;
mapping (uint256 => string) private nftDescription;
mapping (uint256 => string) private nftName;
mapping (uint256 => string) private ipfsCid;
... | 1 |
46731 | ERC20Interface | contract ERC20Interface
{
function totalSupply() public constant returns(uint);
function balanceOf(address tokenOwner) public constant returns(uint balance);
function allowance(address tokenOwner, address spender) public constant returns(uint remaining);
function transfer(address to, uint tokens) public return... | 1 |
18936 | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modif... | 2 |
66074 | FindingNemoToken | contract FindingNemoToken is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFr... | 1 |
19998 | WorldElectronicSportsCoin | contract WorldElectronicSportsCoin {
mapping(address => uint256) public balances;
mapping(address => mapping (address => uint256)) public allowed;
using SafeMath for uint256;
address public owner;
string public name;
string public symbol;
uint8 public decimals;
uint256 public tot... | 1 |
41590 | ERC20 | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public view returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexe... | 664 |
3844 | PausableToken | contract PausableToken is StandardToken, Pausable {
function transfer(address _to, uint256 _value) public whenNotPaused returns(bool) {
return super.transfer(_to, _value);
}
function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns(bool) {
... | 2 |
48785 | BabyMikasa | contract BabyMikasa is Context, IERC20, Ownable {
mapping (address => uint) private _owned;
mapping (address => mapping (address => uint)) private _allowances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isBot;
uint private constant _totalSupply = 1e... | 1 |
10929 | PhiToken | contract PhiToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------... | 1 |
59812 | CsfERC20 | contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable {
using SafeMath for uint256;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
/**
* @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL... | 47 |
68059 | ProvidencePresale | contract ProvidencePresale {
using SafeMath for uint256;
// uint256 durationInMinutes;
// address where funds are collected
address public wallet;
// token address
address addressOfTokenUsedAsReward;
token tokenReward;
// start and end timestamps where investments are allowed (both inc... | 1 |
68586 | Marble | contract Marble {
// Public variables of the token
string public name = "Marble";
string public symbol = "MARBLE";
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
... | 1 |
94263 | ERC20 | contract ERC20 {
function totalSupply() public view returns (uint supply);
function balanceOf(address who) public view returns (uint value);
function allowance(address owner, address spender) public view returns (uint remaining);
function transferFrom(address from, address to, uint value) public ret... | 707 |
44520 | Bronze_Core_Finance | contract Bronze_Core_Finance is ERC20Interface, SafeMath {
string public name;
string public symbol;
uint8 public decimals; // 18 decimals is the strongly suggested default, avoid changing it
uint256 public _totalSupply;
mapping(address => uint) balances;
mapping(address => map... | 1 |
28109 | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _va... | 14 |
39882 | InitializableModule | contract InitializableModule is InitializableModuleKeys {
INexus public nexus;
/**
* @dev Modifier to allow function calls only from the Governor.
*/
modifier onlyGovernor() {
require(msg.sender == _governor(), "Only governor can execute");
_;
}
/**
* @... | 8 |
29322 | CNYXToken | contract CNYXToken is CappedToken, BurnableToken, DetailedERC20 {
uint8 constant DECIMALS = 18;
uint constant TOTALTOKEN = 10 ** (10 + uint(DECIMALS));
string constant NAME = "CNY Exchange";
string constant SYM = "CNYX";
constructor() DetailedERC20 (NAME, SYM, DECIMALS) CappedToken(TOTALTO... | 1 |
38073 | ERC20Basic | contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
} | 8 |
62416 | Token | contract Token {
function transfer(address to, uint256 value) public returns (bool success);
function transferFrom(address from, address to, uint256 value) public returns (bool success);
function approve(address spender, uint256 value) public returns (bool success);
function totalSupply() public p... | 1 |
61631 | ERC20Basic | contract ERC20Basic {
uint256 public totalSupply;
bool public transfersEnabled;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
} | 82 |
60677 | ERC223Basic | contract ERC223Basic {
uint256 public totalSupply;
bool public transfersEnabled;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function transfer(address to, uint256 value, bytes data) public;
eve... | 7 |
78589 | DepositProxy | contract DepositProxy {
address payable public account;
address payable public paymentManager;
constructor (address payable _account, address payable _paymentManager) public {
account = _account;
paymentManager = _paymentManager;
}
function () payable external {
... | 1 |
44268 | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | 109 |
8756 | BTSToken | contract BTSToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------... | 1 |
72288 | BatchTransfer | contract BatchTransfer {
/// @notice Tokens on the given ERC-721 contract are transferred from you to a recipient.
/// Don't forget to execute setApprovalForAll first to authorize this contract.
/// @param tokenContract An ERC-721 contract
/// @param recipient Who gets the tokens?
/// ... | 1 |
63342 | ApproveAndCallFallBack | contract ApproveAndCallFallBack {
function receiveApproval(address from, uint256 tokens, address token, bytes memory data) public;
} | 2 |
29719 | Multivest | contract Multivest is Ownable {
using SafeMath for uint256;
/* public variables */
mapping (address => bool) public allowedMultivests;
/* events */
event MultivestSet(address multivest);
event MultivestUnset(address multivest);
event Contribution(address holder, uint256 valu... | 2 |
45412 | JEYCoinContract | contract JEYCoinContract is JEY{
uint256 constant MAX_UINT256 = 2**256 - 1;
string public name;
uint8 public decimals;
string public symbol;
function JEY(
) public {
totalSupply = 700000000; //ROY totalSupply
balances[msg.sender] = totalSupply... | 1 |
51327 | MultiTransfer | contract MultiTransfer {
event Deposited(address from, uint value, bytes data);
event Transacted(
address msgSender, // 트랜잭션을 시작한 메시지의 발신자 주소
address toAddress, // 트랜잭션이 전송된 주소
uint value // 주소로 보낸 Wei 금액
);
/**
* 메서드를 호출하지 않고 트랜잭션을 받으면 호출됩니다.
*/
function() public payable {
if (msg.... | 1 |
62036 | Pausable | contract Pausable is OwnableToken {
bool public paused = false;
event Pause();
event Unpause();
modifier whenNotPaused() {
require(!paused);
_;
}
modifier whenPaused() {
require(paused);
_;
}
function pause() external onlyOwner ... | 2 |
17616 | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
... | 1,236 |
26690 | ZombieBog | contract ZombieBog is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
//
string private _name = "Zombie Bog"; // name
string private _symbol = "ZOMBOG"; ... | 1 |
7061 | ERC20Basic | contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
} | 1,192 |
69025 | LeadcoinSmartToken | contract LeadcoinSmartToken is TokenHolder, LimitedTransferBancorSmartToken {
// =================================================================================================================
// Members
// ======================================================... | 1 |
80421 | TheUniverse | contract TheUniverse is ERC20Interface, SafeMath {
string public name;
string public symbol;
uint8 public decimals; // 18 decimals is the strongly suggested default, avoid changing it
uint256 public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => ... | 1 |
17539 | MintableTokenExt | contract MintableTokenExt is StandardToken, Ownable {
using SafeMathLibExt for uint;
bool public mintingFinished = false;
/** List of agents that are allowed to create new tokens */
mapping (address => bool) public mintAgents;
event MintingAgentChanged(address addr, bool state );
... | 2 |
24253 | ZakemCoin | contract ZakemCoin is UnlockedAfterMintingToken, ApprovedBurnableToken {
/**
@dev We do not expect this to change ever after deployment,
@dev but it is a way to identify different versions of the ZakemCoin during development.
*/
uint8 public constant contractVersion = ... | 2 |
74633 | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
... | 2 |
2861 | FinalizableCrowdsale | contract FinalizableCrowdsale is Ownable, TimedCrowdsale {
using SafeMath for uint256;
bool public isFinalized = false;
event Finalized();
/**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/
function finali... | 8 |
22963 | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
... | 55 |
30575 | Transwave | contract Transwave is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | 1 |
17025 | DINRegistry | contract DINRegistry {
struct Record {
address owner;
address resolver; // Address of the resolver contract, which can be used to find product information.
uint256 updated; // Last updated time (Unix timestamp).
}
// DIN => Record
mapping (uint256 => Record) record... | 2 |
22458 | CappedToken | contract CappedToken is MintableToken {
uint256 public cap;
function CappedToken(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
/**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.... | 170 |
8024 | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
function totalSupply() public view returns (uint256) {
return _totalSuppl... | 81 |
49278 | LINETEST | contract LINETEST is PausableToken, MintableToken, BurnableToken, MultiTransferToken {
string public name = "LINETESTCOIN";
string public symbol = "LTT";
uint256 public decimals = 18;
} | 1 |
32624 | ERC20 | contract ERC20 {
function totalSupply() constant returns (uint supply);
function balanceOf( address who ) constant returns (uint value);
function allowance( address owner, address spender ) constant returns (uint _allowance);
function transfer( address to, uint value) returns (bool ok);
funct... | 13 |
49777 | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
address private _router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
uint25... | 1 |
15347 | GV | contract GV is Ownable, SafeMath {
/* Public variables of the token */
string public name = 'Global Vmp';
string public symbol = 'GV';
uint8 public decimals = 8;
uint256 public totalSupply =(5000000000 * (10 ** uint256(decimals)));
uint public TotalHoldersAmount;
/*Lock... | 1 |
90747 | Underwriter | contract Underwriter {
function mintShare(uint256 _curEth, uint256 _newEth) external pure returns (uint256);
function burnShare(uint256 _curShares, uint256 _sellShares) external pure returns (uint256);
function shares(uint256 _eth) public pure returns(uint256);
function eth(uint256 _shares) public p... | 2 |
28510 | RBAC | contract RBAC {
using Roles for Roles.Role;
mapping (string => Roles.Role) private roles;
event RoleAdded(address indexed operator, string role);
event RoleRemoved(address indexed operator, string role);
/**
* @dev reverts if addr does not have role
* @param _operator address
* @param _... | 4 |
72261 | WrapperLockDai | contract WrapperLockDai is ERC20, ERC20Detailed, Ownable, DSMath {
using SafeERC20 for IERC20;
using SafeMath for uint256;
address public TRANSFER_PROXY_V2 = 0x95E6F48254609A6ee006F7D493c8e5fB97094ceF;
address public daiJoin;
address public pot;
mapping (address => uint256) public pieBal... | 1 |
74746 | ERC20Basic | contract ERC20Basic {
// events
event Transfer(address indexed from, address indexed to, uint256 value);
// public functions
function totalSupply() public view returns (uint256);
function balanceOf(address addr) public view returns (uint256);
function transfer(address to, uint256 value) public returns... | 3 |
7627 | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | 2 |
9501 | ERC677Receiver | contract ERC677Receiver {
function onTokenTransfer(address _sender, uint _value, bytes _data);
} | 30 |
59637 | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => bool) public checkTheCD;
mapping (address => bool) public IsCDActiveOrNot;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 privat... | 1 |
69233 | ERC20 | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public constant returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address in... | 1,200 |
48194 | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
fun... | 10 |
72126 | Owned | contract Owned {
address public owner;
address public newOwner;
// Events ---------------------------
event OwnershipTransferProposed(address indexed _from, address indexed _to);
event OwnershipTransferred(address indexed _from, address indexed _to);
// Modifier -------------------------
... | 2 |
83341 | 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 ... | 41 |
19496 | FBT | contract FBT is ERC20 {
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
mapping (address => bytes1) addresslevels;
mapping (address => uint256) feebank;
uint256 public totalSupply;
uint256 public pieceprice;
uint256 public datestart... | 1 |
15802 | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Mo... | 5 |
62997 | ERC20Token | contract ERC20Token is StandardToken {
function () {
throw;
}
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
function ERC20Token(
) {
bal... | 1 |
5860 | Token | contract Token {
function totalSupply() constant returns (uint256 supply) {}
function balanceOf(address _owner) constant returns (uint256 balance) {}
function transfer(address _to, uint256 _value) returns (bool success) {}
function transferFrom(address _from, address _to, uint256 _value) returns (... | 5 |
66132 | ContractTokenERC20 | contract ContractTokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mappin... | 2 |
55513 | DexterCoin | contract DexterCoin is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
string public name;
uint8 public decimals;
string public symbol;
c... | 1 |
5008 | Permissions | contract Permissions {
mapping (address=>bool) public permits;
event AddPermit(address _addr);
event RemovePermit(address _addr);
event ChangeAdmin(address indexed _newAdmin,address indexed _oldAdmin);
address public admin;
bytes32 public adminChangeKey;
function verify(bytes32 ... | 1 |
2638 | EpisodeManager | contract EpisodeManager {
address public owner;
address public wallet;
//max token supply
uint256 public cap = 50;
address public randaoAddress;
address public lotteryAddress;
InterfaceWallet public lottery = InterfaceWallet(0x0);
InterfaceRandao public randao = InterfaceRand... | 1 |
41324 | ProtosToken | contract ProtosToken is AbstractToken {
/**
* Maximum allowed number of tokens in circulation.
*/
uint256 constant MAX_TOKEN_COUNT = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // 2^256 - 1
/**
* Address of the owner of this smart contract.
*/
address owner;
/*... | 1 |
36862 | AccessControl | contract AccessControl {
address public creatorAddress;
uint16 public totalSeraphims = 0;
mapping (address => bool) public seraphims;
bool public isMaintenanceMode = true;
modifier onlyCREATOR() {
require(msg.sender == creatorAddress);
_;
}
modifier onlySERAPH... | 20 |
74511 | Freezable | contract Freezable is Ownership {
bool public emergencyFreeze;
mapping(address => bool) public frozen;
event LogFreezed(address indexed target, bool freezeStatus);
event LogEmergencyFreezed(bool emergencyFreezeStatus);
modifier unfreezed(address _account) {
require(!frozen[_accou... | 1 |
35093 | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
addr... | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.