DirectPaymentAddress
Inherits: IDirectPaymentAddress
A contract that can receive funds directly and forward to a project's current terminal.
State Variables
terminalDirectory
The directory to use when resolving which terminal to send the payment to.
ITerminalDirectory public immutable override terminalDirectory;
projectId
The ID of the project to pay when this contract receives funds.
uint256 public immutable override projectId;
memo
The memo to use when this contract forwards a payment to a terminal.
string public override memo;
Functions
constructor
constructor(ITerminalDirectory _terminalDirectory, uint256 _projectId, string memory _memo);
Parameters
| Name | Type | Description | 
|---|---|---|
_terminalDirectory | ITerminalDirectory | A directory of a project's current Juicebox terminal to receive payments in. | 
_projectId | uint256 | The ID of the project to pay when this contract receives funds. | 
_memo | string | The memo to use when this contract forwards a payment to a terminal. | 
receive
receive() external payable;