Skip to content
@ecp.eth/protocol

IHook

Functions

getHookPermissions() → struct Hooks.Permissions (external)

onInitialize(address channelManager, struct Channels.Channel channelData, uint256 channelId, struct Metadata.MetadataEntry[] metadata) → bool success (external)

Execute after a hook is initialized on a channel

onCommentAdd(struct Comments.Comment commentData, struct Metadata.MetadataEntry[] metadata, address msgSender, bytes32 commentId) → struct Metadata.MetadataEntry[] hookMetadata (external)

Execute after a comment is processed

onCommentDelete(struct Comments.Comment commentData, struct Metadata.MetadataEntry[] metadata, struct Metadata.MetadataEntry[] hookMetadata, address msgSender, bytes32 commentId) → bool success (external)

Execute after a comment is deleted

onCommentEdit(struct Comments.Comment commentData, struct Metadata.MetadataEntry[] metadata, address msgSender, bytes32 commentId) → struct Metadata.MetadataEntry[] hookMetadata (external)

Execute after a comment is edited

onChannelUpdate(address channel, uint256 channelId, struct Channels.Channel channelData, struct Metadata.MetadataEntry[] metadata) → bool success (external)

Execute after a channel is updated

onCommentHookDataUpdate(struct Comments.Comment commentData, struct Metadata.MetadataEntry[] metadata, struct Metadata.MetadataEntry[] hookMetadata, address msgSender, bytes32 commentId) → struct Metadata.MetadataEntryOp[] operations (external)

Execute to update hook data for an existing comment