Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1016 Bytes

File metadata and controls

59 lines (39 loc) · 1016 Bytes

Solidity API

Lock

unlockTime

uint256 unlockTime

Storage variables

owner

address payable owner

Withdrawal

event Withdrawal(uint256 amount, uint256 when)

Emitted when the contract is withdrawn

Parameters

Name Type Description
amount uint256 The amount of wei withdrawn
when uint256 The timestamp of the block when the withdraw happened

constructor

constructor(uint256 _unlockTime, address payable _owner) public payable

Constructor

receive

receive() external payable

withdraw

function withdraw() public

Withdraw all the funds