ISelfHostedApplicationFactory
Functions
getAuthorityFactory
Get the factory used to deploy Authority
contracts
function getAuthorityFactory() external view returns (IAuthorityFactory);
Returns
Name | Type | Description |
---|---|---|
<none> | IAuthorityFactory | The authority factory |
getApplicationFactory
Get the factory used to deploy Application
contracts
function getApplicationFactory() external view returns (IApplicationFactory);
Returns
Name | Type | Description |
---|---|---|
<none> | IApplicationFactory | The application factory |
deployContracts
Deploy new application and authority contracts deterministically.
function deployContracts(address authorityOwner, address appOwner, bytes32 templateHash, bytes32 salt)
external
returns (Application, Authority);
Parameters
Name | Type | Description |
---|---|---|
authorityOwner | address | The initial authority owner |
appOwner | address | The initial Application owner |
templateHash | bytes32 | The initial machine state hash |
salt | bytes32 | The salt used to deterministically generate the addresses |
Returns
Name | Type | Description |
---|---|---|
<none> | Application | The application contract |
<none> | Authority | The authority contract |
calculateAddresses
Calculate the addresses of the application and authority contracts to be deployed deterministically.
function calculateAddresses(address authorityOwner, address appOwner, bytes32 templateHash, bytes32 salt)
external
view
returns (address, address);
Parameters
Name | Type | Description |
---|---|---|
authorityOwner | address | The initial authority owner |
appOwner | address | The initial Application owner |
templateHash | bytes32 | The initial machine state hash |
salt | bytes32 | The salt used to deterministically generate the addresses |
Returns
Name | Type | Description |
---|---|---|
<none> | address | The application address |
<none> | address | The authority address |