Skip to content

Commit

Permalink
docs: add documentation about constructor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Aug 7, 2024
1 parent 3d40890 commit 73fbcea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/consensus/authority/IAuthorityFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ interface IAuthorityFactory {
/// @param authorityOwner The initial authority owner
/// @return The authority
/// @dev On success, MUST emit an `AuthorityCreated` event.
/// @dev Reverts if the authority owner address is zero.
function newAuthority(address authorityOwner) external returns (Authority);

/// @notice Deploy a new authority deterministically.
/// @param authorityOwner The initial authority owner
/// @param salt The salt used to deterministically generate the authority address
/// @return The authority
/// @dev On success, MUST emit an `AuthorityCreated` event.
/// @dev Reverts if the authority owner address is zero.
function newAuthority(
address authorityOwner,
bytes32 salt
Expand Down
2 changes: 2 additions & 0 deletions contracts/consensus/quorum/IQuorumFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ interface IQuorumFactory {
/// @param validators the list of validators
/// @return The quorum
/// @dev On success, MUST emit a `QuorumCreated` event.
/// @dev Duplicates in the `validators` array are ignored.
function newQuorum(address[] calldata validators) external returns (Quorum);

/// @notice Deploy a new quorum deterministically.
/// @param validators the list of validators
/// @param salt The salt used to deterministically generate the quorum address
/// @return The quorum
/// @dev On success, MUST emit a `QuorumCreated` event.
/// @dev Duplicates in the `validators` array are ignored.
function newQuorum(
address[] calldata validators,
bytes32 salt
Expand Down
1 change: 1 addition & 0 deletions contracts/dapp/Application.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ contract Application is
/// @param consensus The initial consensus contract
/// @param initialOwner The initial application owner
/// @param templateHash The initial machine state hash
/// @dev Reverts if the initial application owner address is zero.
constructor(
IConsensus consensus,
address initialOwner,
Expand Down
2 changes: 2 additions & 0 deletions contracts/dapp/IApplicationFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ interface IApplicationFactory {
/// @param templateHash The initial machine state hash
/// @return The application
/// @dev On success, MUST emit an `ApplicationCreated` event.
/// @dev Reverts if the application owner address is zero.
function newApplication(
IConsensus consensus,
address appOwner,
Expand All @@ -44,6 +45,7 @@ interface IApplicationFactory {
/// @param salt The salt used to deterministically generate the application contract address
/// @return The application
/// @dev On success, MUST emit an `ApplicationCreated` event.
/// @dev Reverts if the application owner address is zero.
function newApplication(
IConsensus consensus,
address appOwner,
Expand Down
2 changes: 2 additions & 0 deletions contracts/dapp/ISelfHostedApplicationFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ interface ISelfHostedApplicationFactory {
/// @param salt The salt used to deterministically generate the addresses
/// @return The application contract
/// @return The authority contract
/// @dev Reverts if the authority owner address is zero.
/// @dev Reverts if the application owner address is zero.
function deployContracts(
address authorityOwner,
address appOwner,
Expand Down

0 comments on commit 73fbcea

Please sign in to comment.