Skip to main content

DirectPaymentAddress

Git Source

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

NameTypeDescription
_terminalDirectoryITerminalDirectoryA directory of a project's current Juicebox terminal to receive payments in.
_projectIduint256The ID of the project to pay when this contract receives funds.
_memostringThe memo to use when this contract forwards a payment to a terminal.

receive

receive() external payable;