Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ApplicationFactory

Git Source

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

NameTypeDescription
refundOutputBuilderIRefundOutputBuilderThe 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);