-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(world): add NatSpec to core source files (#1633)
Co-authored-by: alvarius <[email protected]>
- Loading branch information
Showing
9 changed files
with
393 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.21; | ||
|
||
/** | ||
* @title World Factory Interface | ||
* @dev This interface defines the contract responsible for deploying and keeping track | ||
* of World contract instances. | ||
*/ | ||
interface IWorldFactory { | ||
/** | ||
* @dev Emitted when a new World contract is deployed. | ||
* @param newContract The address of the newly deployed World contract. | ||
*/ | ||
event WorldDeployed(address indexed newContract); | ||
|
||
/** | ||
* @notice Returns the total count of deployed World contracts. | ||
* @return The total number of World contracts deployed by this factory. | ||
*/ | ||
function worldCount() external view returns (uint256); | ||
|
||
/** | ||
* @notice Deploys a new World contract. | ||
* @dev The deployment of the World contract will result in the `WorldDeployed` event being emitted. | ||
*/ | ||
function deployWorld() external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.