ApplicationFactory
Inherits: IApplicationFactory, RollupsContract
Title: Application Factory
Allows anyone to reliably deploy a new IApplication contract.
State Variables
REFUND_OUTPUT_BUILDER
IRefundOutputBuilder immutable REFUND_OUTPUT_BUILDER
Functions
constructor
Creates an ApplicationFactory contract.
constructor(IRefundOutputBuilder refundOutputBuilder) ;
Parameters
| Name | Type | Description |
|---|---|---|
refundOutputBuilder | IRefundOutputBuilder | The refund output builder |
newApplication
function newApplication(
IOutputsMerkleRootValidator outputsMerkleRootValidator,
address appOwner,
bytes32 templateHash,
IInputBox inputBox,
WithdrawalConfig calldata withdrawalConfig
) external override returns (IApplication appContract);
newApplication
function newApplication(
IOutputsMerkleRootValidator outputsMerkleRootValidator,
address appOwner,
bytes32 templateHash,
IInputBox inputBox,
WithdrawalConfig calldata withdrawalConfig,
bytes32 salt
) external override returns (IApplication appContract);
calculateApplicationAddress
function calculateApplicationAddress(
IOutputsMerkleRootValidator outputsMerkleRootValidator,
address appOwner,
bytes32 templateHash,
IInputBox inputBox,
WithdrawalConfig calldata withdrawalConfig,
bytes32 salt
) external view override returns (address);