Sends ETH or ERC20's to a project treasury as it receives direct payments or has it's functions called.
Inherit from this contract or borrow from its logic to forward ETH or ERC20's to project treasuries from within other contracts.
There can be several instances of this contract deployed.
|General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.|
|Includes convenience functionality for specifying an address that owns the contract, with modifiers that only allow access by the owner.|
|Introspection on interface adherance.|
@param _defaultProjectId The ID of the project whose treasury should be forwarded this contract's received payments.
@param _defaultBeneficiary The address that'll receive the project's tokens.
@param _defaultPreferClaimedTokens A flag indicating whether issued tokens should be automatically claimed into the beneficiary's wallet.
@param _defaultMemo A memo to pass along to the emitted event, and passed along the the funding cycle's data source and delegate. A data source can alter the memo before emitting in the event and forwarding to the delegate.
@param _defaultMetadata Bytes to send along to the project's data source and delegate, if provided.
@param _defaultPreferAddToBalance A flag indicating if received payments should call the `pay` function or the `addToBalance` function of a project.
@param _directory A contract storing directories of terminals and controllers for each project.
@param _owner The address that will own the contract.
address payable _defaultBeneficiary,
string memory _defaultMemo,
bytes memory _defaultMetadata,
defaultProjectId = _defaultProjectId;
defaultBeneficiary = _defaultBeneficiary;
defaultPreferClaimedTokens = _defaultPreferClaimedTokens;
defaultMemo = _defaultMemo;
defaultMetadata = _defaultMetadata;
defaultPreferAddToBalance = _defaultPreferAddToBalance;
directory = _directory;
_defaultProjectIdis the ID of the project whose treasury should be forwarded this contract's received payments.
_defaultBeneficiaryis the address that'll receive the project's tokens.
_defaultPreferClaimedTokensis a flag indicating whether issued tokens should be automatically claimed into the beneficiary's wallet.
_defaultMemois the memo that'll be passed along to the emitted event..
_defaultMetadataare bytes to send along to the project's data source and delegate, if provided.
_defaultPreferAddToBalanceis a flag indicating if received payments should call the
payfunction or the
addToBalancefunction of a project.
_directoryis a contract storing directories of terminals and controllers for each project.
_owneris the address that will own the contract.