-
Notifications
You must be signed in to change notification settings - Fork 196
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 System contracts and interfaces (#1632)
Co-authored-by: alvarius <[email protected]>
- Loading branch information
Showing
5 changed files
with
87 additions
and
11 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
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,7 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.21; | ||
|
||
/** | ||
* @title System Hook Types | ||
* @dev This file provides constants for defining the different types of system hooks. | ||
* System hooks can be used to execute additional logic before or after system actions. | ||
*/ | ||
|
||
/** | ||
* @dev Constant representing a hook that is triggered before a system call. | ||
*/ | ||
uint8 constant BEFORE_CALL_SYSTEM = 1 << 0; | ||
|
||
/** | ||
* @dev Constant representing a hook that is triggered after a system call. | ||
*/ | ||
uint8 constant AFTER_CALL_SYSTEM = 1 << 1; | ||
|
||
/** | ||
* @dev Constant representing all types of system hooks. | ||
* It's a bitmap with flags from all system hook types enabled. | ||
*/ | ||
uint8 constant ALL = BEFORE_CALL_SYSTEM | AFTER_CALL_SYSTEM; |