Hooks
State Variables
BEFORE_SWAP_FLAG
bytes32 internal constant BEFORE_SWAP_FLAG = bytes32(uint256(1 << 160));AFTER_SWAP_FLAG
bytes32 internal constant AFTER_SWAP_FLAG = bytes32(uint256(1 << 161));BEFORE_FLASH_LOAN_FLAG
bytes32 internal constant BEFORE_FLASH_LOAN_FLAG = bytes32(uint256(1 << 162));AFTER_FLASH_LOAN_FLAG
bytes32 internal constant AFTER_FLASH_LOAN_FLAG = bytes32(uint256(1 << 163));BEFORE_MINT_FLAG
bytes32 internal constant BEFORE_MINT_FLAG = bytes32(uint256(1 << 164));AFTER_MINT_FLAG
BEFORE_BURN_FLAG
AFTER_BURN_FLAG
BEFORE_TRANSFER_FLAG
AFTER_TRANSFER_FLAG
Functions
encode
Name
Type
Description
Name
Type
Description
decode
Name
Type
Description
Name
Type
Description
getHooks
Name
Type
Description
Name
Type
Description
setHooks
Name
Type
Description
Name
Type
Description
getFlags
Name
Type
Description
Name
Type
Description
onHooksSet
Name
Type
Description
beforeSwap
Name
Type
Description
afterSwap
Name
Type
Description
beforeFlashLoan
Name
Type
Description
afterFlashLoan
Name
Type
Description
beforeMint
Name
Type
Description
afterMint
Name
Type
Description
beforeBurn
Name
Type
Description
afterBurn
Name
Type
Description
beforeBatchTransferFrom
Name
Type
Description
afterBatchTransferFrom
Name
Type
Description
_safeCall
Name
Type
Description
Errors
Hooks__CallFailed
Structs
Parameters
Last updated