Skip to content

Modifiers printer#

Name: modifiers

Prints modifiers with their usages.

Example#

wake print modifiers ╭──── Modifier noDelegateCall ────╮╭── Invocations ───╮ modifiernoDelegateCall(){modifyPosition checkNotDelegateCall();take _;donate }settle ╰─────────────────────────────────╯swap mint ╰──────────────────╯ ╭───────── Modifier onlyOwner ─────────╮╭─────── Invocations ────────╮ modifieronlyOwner(){setProtocolFeeController if(msg.sender!=owner)setOwner revertInvalidCaller();╰────────────────────────────╯ _; } ╰──────────────────────────────────────╯ ╭─────── Modifier onlyByLocker ────────╮╭── Invocations ───╮ modifieronlyByLocker(){mint addresslocker=modifyPosition lockData.getActiveLock();donate if(msg.sender!=locker)take revertLockedBy(locker);settle _;swap }╰──────────────────╯ ╰──────────────────────────────────────╯

Parameters#

Command-line name TOML name Type Default value Description
--name (multiple) names List[str] [] Modifier names.
--canonical-names/
--no-canonical-names
canonical_names bool True Whether to print (full) canonical names instead of local names.
--code-snippets/
--no-code-snippets
code_snippets bool True Whether to print modifier source code snippets.