Skip to main content
Helpful?

ParseBytes

Git Source - Generated with forge doc

Parses bytes returned from hooks and the byte selector used to check return selectors from hooks.

parseSelector also is used to parse the expected selector For parsing hook returns, note that all hooks return either bytes4 or (bytes4, 32-byte-delta) or (bytes4, 32-byte-delta, uint24).

Functions

parseSelector

function parseSelector(bytes memory result) internal pure returns (bytes4 selector);

parseFee

function parseFee(bytes memory result) internal pure returns (uint24 lpFee);

parseReturnDelta

function parseReturnDelta(bytes memory result) internal pure returns (int256 hookReturn);
Helpful?