Escrow
contract Escrow
is Ownable
Base escrow contract, holds funds destinated to a payee until they withdraw them. The contract that uses the escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw.
Source: payment/Escrow.sol
Reference
Events
Deposited
event Deposited(address payee, uint256 weiAmount)
- Parameters:
payee
- addressweiAmount
- uint256
Withdrawn
event Withdrawn(address payee, uint256 weiAmount)
- Parameters:
payee
- addressweiAmount
- uint256
Functions
deposit
function deposit(address _payee) public payable
Stores the sent amount as credit to be withdrawn.
- Modifiers:
- onlyOwner
- Parameters:
_payee
- The destination address of the funds.
depositsOf
function depositsOf(address _payee) public view returns (uint256)
- Parameters:
_payee
- address- Returns:
- uint256
withdraw
function withdraw(address _payee) public
Withdraw accumulated balance for a payee.
- Modifiers:
- onlyOwner
- Parameters:
_payee
- The address whose funds will be withdrawn and transferred to.