Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 38,386 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Award | 20453416 | 152 days ago | IN | 0 ETH | 0.00002941 | ||||
Get Award | 20453288 | 152 days ago | IN | 0 ETH | 0.00004701 | ||||
Get Award | 20452800 | 152 days ago | IN | 0 ETH | 0.00002941 | ||||
Get Award | 20451780 | 153 days ago | IN | 0 ETH | 0.00004701 | ||||
Get Award | 20415668 | 158 days ago | IN | 0 ETH | 0.00002941 | ||||
Get Award | 20408488 | 159 days ago | IN | 0 ETH | 0.00002941 | ||||
Get Award | 20395640 | 160 days ago | IN | 0 ETH | 0.00004441 | ||||
Get Award | 16385612 | 723 days ago | IN | 0 ETH | 0.00083753 | ||||
Get Award | 15911511 | 789 days ago | IN | 0 ETH | 0.00053841 | ||||
Get Award | 15894960 | 791 days ago | IN | 0 ETH | 0.00099673 | ||||
Get Award | 15734662 | 814 days ago | IN | 0 ETH | 0.00074155 | ||||
Get Award | 15605883 | 832 days ago | IN | 0 ETH | 0.00037349 | ||||
Get Award | 15559485 | 838 days ago | IN | 0 ETH | 0.00008882 | ||||
Get Award | 15559460 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559460 | 838 days ago | IN | 0 ETH | 0.00005982 | ||||
Get Award | 15559349 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559349 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559349 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559346 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559341 | 838 days ago | IN | 0 ETH | 0.00005982 | ||||
Get Award | 15559335 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559277 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559268 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559249 | 838 days ago | IN | 0 ETH | 0.00005882 | ||||
Get Award | 15559210 | 838 days ago | IN | 0 ETH | 0.00008882 |
Loading...
Loading
Contract Name:
Bussiness
Compiler Version
v0.5.9+commit.e560f70d
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-07-11 */ pragma solidity 0.5.9; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } } contract Bussiness is Ownable { uint public periodToPlay = 60; // 86400; // seconds mapping(address => uint) public timeTrackUser; event _random(address _from, uint _ticket); constructor() public {} function getAward() public { require(isValidToPlay()); timeTrackUser[msg.sender] = block.timestamp; emit _random(msg.sender, block.timestamp); } function isValidToPlay() public view returns (bool){ return periodToPlay <= now - timeTrackUser[msg.sender]; } function changePeriodToPlay(uint _period) onlyOwner public{ periodToPlay = _period; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_period","type":"uint256"}],"name":"changePeriodToPlay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodToPlay","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isValidToPlay","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getAward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"timeTrackUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"_ticket","type":"uint256"}],"name":"_random","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6080604052603c60015534801561001557600080fd5b50600080546001600160a01b031916331790556102c9806100376000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100d7578063f2fde38b146100fb578063fee5035914610121578063ff61d1a9146101295761007d565b806308621db8146100825780633e54c123146100a15780637d950a26146100bb575b600080fd5b61009f6004803603602081101561009857600080fd5b503561014f565b005b6100a961016b565b60408051918252519081900360200190f35b6100c3610171565b604080519115158252519081900360200190f35b6100df61018e565b604080516001600160a01b039092168252519081900360200190f35b61009f6004803603602081101561011157600080fd5b50356001600160a01b031661019d565b61009f610222565b6100a96004803603602081101561013f57600080fd5b50356001600160a01b0316610282565b6000546001600160a01b0316331461016657600080fd5b600155565b60015481565b336000908152600260205260409020546001544291909103101590565b6000546001600160a01b031681565b6000546001600160a01b031633146101b457600080fd5b6001600160a01b0381166101c757600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61022a610171565b61023357600080fd5b33600081815260026020908152604091829020429081905582519384529083015280517f759d68a0a9880e705858082d6bf7a17a03894588f024b61cc0ea17b1e68807ca9281900390910190a1565b6002602052600090815260409020548156fea265627a7a72305820582524f27f7ba7c32536c1987f37962a9c7e37c96c96dcd7a5a863ca9f9dbe3064736f6c63430005090032
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100d7578063f2fde38b146100fb578063fee5035914610121578063ff61d1a9146101295761007d565b806308621db8146100825780633e54c123146100a15780637d950a26146100bb575b600080fd5b61009f6004803603602081101561009857600080fd5b503561014f565b005b6100a961016b565b60408051918252519081900360200190f35b6100c3610171565b604080519115158252519081900360200190f35b6100df61018e565b604080516001600160a01b039092168252519081900360200190f35b61009f6004803603602081101561011157600080fd5b50356001600160a01b031661019d565b61009f610222565b6100a96004803603602081101561013f57600080fd5b50356001600160a01b0316610282565b6000546001600160a01b0316331461016657600080fd5b600155565b60015481565b336000908152600260205260409020546001544291909103101590565b6000546001600160a01b031681565b6000546001600160a01b031633146101b457600080fd5b6001600160a01b0381166101c757600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61022a610171565b61023357600080fd5b33600081815260026020908152604091829020429081905582519384529083015280517f759d68a0a9880e705858082d6bf7a17a03894588f024b61cc0ea17b1e68807ca9281900390910190a1565b6002602052600090815260409020548156fea265627a7a72305820582524f27f7ba7c32536c1987f37962a9c7e37c96c96dcd7a5a863ca9f9dbe3064736f6c63430005090032
Deployed Bytecode Sourcemap
1105:644:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1105:644:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1645:99;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1645:99:0;;:::i;:::-;;1142:29;;;:::i;:::-;;;;;;;;;;;;;;;;1515:124;;;:::i;:::-;;;;;;;;;;;;;;;;;;245:20;;;:::i;:::-;;;;-1:-1:-1;;;;;245:20:0;;;;;;;;;;;;;;906:192;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;906:192:0;-1:-1:-1;;;;;906:192:0;;:::i;1331:176::-;;;:::i;1201:45::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1201:45:0;-1:-1:-1;;;;;1201:45:0;;:::i;1645:99::-;703:5;;-1:-1:-1;;;;;703:5:0;689:10;:19;681:28;;;;;;1714:12;:22;1645:99::o;1142:29::-;;;;:::o;1515:124::-;1620:10;1561:4;1606:25;;;:13;:25;;;;;;1584:12;;1600:3;:31;;;;-1:-1:-1;1584:47:0;1515:124;:::o;245:20::-;;;-1:-1:-1;;;;;245:20:0;;:::o;906:192::-;703:5;;-1:-1:-1;;;;;703:5:0;689:10;:19;681:28;;;;;;-1:-1:-1;;;;;987:22:0;;979:31;;;;;;1047:5;;;1026:37;;-1:-1:-1;;;;;1026:37:0;;;;1047:5;;;1026:37;;;1074:5;:16;;-1:-1:-1;;;;;;1074:16:0;-1:-1:-1;;;;;1074:16:0;;;;;;;;;;906:192::o;1331:176::-;1377:15;:13;:15::i;:::-;1369:24;;;;;;1418:10;1404:25;;;;:13;:25;;;;;;;;;1432:15;1404:43;;;;1463:36;;;;;;;;;;;;;;;;;;;;;1331:176::o;1201:45::-;;;;;;;;;;;;;:::o
Swarm Source
bzzr://582524f27f7ba7c32536c1987f37962a9c7e37c96c96dcd7a5a863ca9f9dbe30
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.