Skip to main content

JBETHERC20ProjectPayerDeployer

Deploys project payer contracts.

Git Source

Mainnet: 0xa5ca9CEa71Df4b680484e5Ff753a1b1185ba5b43

Goerli: 0x483bFC77f28DB242d40aa456D801354fEEBb502E

Adheres to:

  • IJBETHERC20ProjectPayerDeployer: General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.

State Variables

implementation

address immutable implementation;

directory

IJBDirectory immutable directory;

Functions

constructor

constructor(IJBDirectory _directory);

Parameters

NameTypeDescription
_directoryIJBDirectoryA contract storing directories of terminals and controllers for each project.

deployProjectPayer

Allows anyone to deploy a new project payer contract.

function deployProjectPayer(
uint256 _defaultProjectId,
address payable _defaultBeneficiary,
bool _defaultPreferClaimedTokens,
string memory _defaultMemo,
bytes memory _defaultMetadata,
bool _defaultPreferAddToBalance,
address _owner
) external override returns (IJBProjectPayer projectPayer);

Parameters

NameTypeDescription
_defaultProjectIduint256The ID of the project whose treasury should be forwarded the project payer contract's received payments.
_defaultBeneficiaryaddress payableThe address that'll receive the project's tokens when the project payer receives payments.
_defaultPreferClaimedTokensboolA flag indicating whether issued tokens from the project payer's received payments should be automatically claimed into the beneficiary's wallet.
_defaultMemostringThe memo that'll be forwarded with the project payer's received payments.
_defaultMetadatabytesThe metadata that'll be forwarded with the project payer's received payments.
_defaultPreferAddToBalanceboolA flag indicating if received payments should call the pay function or the addToBalance function of a project.
_owneraddressThe address that will own the project payer.

Returns

NameTypeDescription
projectPayerIJBProjectPayerThe project payer contract.