Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Lockup
Compiler Version
v0.4.18+commit.9cf6e910
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-07-19
*/
/**
*Submitted for verification at Etherscan.io on 2020-10-13
*/
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.4.18;
/**
* @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.
*/
function Ownable() 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));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
// File: contracts/Lockup.sol
pragma solidity ^0.4.18;
/**
* @title Lockup
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Lockup is Ownable {
uint256 public lockup_time;
function Lockup(uint256 _lockUp_release_time)public{
lockup_time = _lockUp_release_time;
}
/**
* @dev Function to check token is locked or not
* @return A bool that indicates if the operation was successful.
*/
function isLockup() public view returns(bool){
return (now >= lockup_time);
}
/**
* @dev Function to get token lockup time
* @return A uint256 that indicates if the operation was successful.
*/
function getLockup()public view returns (uint256) {
return lockup_time;
}
/**
* @dev Function to update token lockup time
* @return A bool that indicates if the operation was successful.
*/
function updateLockup(uint256 _newLockUpTime) onlyOwner public returns(bool){
require( _newLockUpTime > now );
lockup_time = _newLockUpTime;
return true;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"isLockup","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newLockUpTime","type":"uint256"}],"name":"updateLockup","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lockup_time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLockup","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_lockUp_release_time","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]Contract Creation Code
6060604052341561000f57600080fd5b60405160208061048583398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060018190555050610403806100826000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063062c41fd1461007d57806365a78b1a146100aa578063810d47de146100e55780638da5cb5b1461010e578063e476f63014610163578063f2fde38b1461018c575b600080fd5b341561008857600080fd5b6100906101c5565b604051808215151515815260200191505060405180910390f35b34156100b557600080fd5b6100cb60048080359060200190919050506101d2565b604051808215151515815260200191505060405180910390f35b34156100f057600080fd5b6100f861024d565b6040518082815260200191505060405180910390f35b341561011957600080fd5b610121610253565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016e57600080fd5b610176610278565b6040518082815260200191505060405180910390f35b341561019757600080fd5b6101c3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610282565b005b6000600154421015905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561022f57600080fd5b428211151561023d57600080fd5b8160018190555060019050919050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600154905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561031957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820f47f727b8628ddefd88aa9b8bea51ce9416500db97b7394b830efff69227ddd30029000000000000000000000000000000000000000000000000000000005abfa234
Deployed Bytecode
0x606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063062c41fd1461007d57806365a78b1a146100aa578063810d47de146100e55780638da5cb5b1461010e578063e476f63014610163578063f2fde38b1461018c575b600080fd5b341561008857600080fd5b6100906101c5565b604051808215151515815260200191505060405180910390f35b34156100b557600080fd5b6100cb60048080359060200190919050506101d2565b604051808215151515815260200191505060405180910390f35b34156100f057600080fd5b6100f861024d565b6040518082815260200191505060405180910390f35b341561011957600080fd5b610121610253565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016e57600080fd5b610176610278565b6040518082815260200191505060405180910390f35b341561019757600080fd5b6101c3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610282565b005b6000600154421015905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561022f57600080fd5b428211151561023d57600080fd5b8160018190555060019050919050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600154905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561031957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820f47f727b8628ddefd88aa9b8bea51ce9416500db97b7394b830efff69227ddd30029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000005abfa234
-----Decoded View---------------
Arg [0] : _lockUp_release_time (uint256): 1522508340
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005abfa234
Deployed Bytecode Sourcemap
1364:891:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1662:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2080:172;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1397:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;380:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1873:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1004:173;;;;;;;;;;;;;;;;;;;;;;;;;;;;1662:82;1702:4;1727:11;;1720:3;:18;;1712:27;;1662:82;:::o;2080:172::-;2151:4;815:5;;;;;;;;;;;801:19;;:10;:19;;;793:28;;;;;;;;2189:3;2172:14;:20;2163:31;;;;;;;;2215:14;2201:11;:28;;;;2243:4;2236:11;;2080:172;;;:::o;1397:26::-;;;;:::o;380:20::-;;;;;;;;;;;;;:::o;1873:78::-;1914:7;1935:11;;1928:18;;1873:78;:::o;1004:173::-;815:5;;;;;;;;;;;801:19;;:10;:19;;;793:28;;;;;;;;1101:1;1081:22;;:8;:22;;;;1073:31;;;;;;;;1139:8;1111:37;;1132:5;;;;;;;;;;;1111:37;;;;;;;;;;;;1163:8;1155:5;;:16;;;;;;;;;;;;;;;;;;1004:173;:::o
Swarm Source
bzzr://f47f727b8628ddefd88aa9b8bea51ce9416500db97b7394b830efff69227ddd3
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.