@ecp.eth/sdk / indexer/webhooks / ChannelHookStatusUpdatedEvent
Type Alias: ChannelHookStatusUpdatedEvent
type ChannelHookStatusUpdatedEvent = {
blockNumber: bigint;
chainId: number;
data: {
channel: {
hook: null | `0x${string}`;
id: bigint;
updatedAt: Date;
};
hook: {
address: `0x${string}`;
enabled: boolean;
};
};
event: "channel:hook:status:updated";
logIndex: number;
txHash: `0x${string}`;
uid: string;
version: 1;
};Defined in: packages/sdk/src/indexer/webhooks/schemas/channel.ts:181
An event sent to webhook when a channel hook status is updated.
Type declaration
blockNumber
blockNumber: bigint = StringBigintSchema;Block number. On wire it is a stringified bigint.
chainId
chainId: number;Chain ID
data
data: {
channel: {
hook: null | `0x${string}`;
id: bigint;
updatedAt: Date;
};
hook: {
address: `0x${string}`;
enabled: boolean;
};
};Data of the event
data.channel
channel: {
hook: null | `0x${string}`;
id: bigint;
updatedAt: Date;
};Updated channel data
data.channel.hook
hook: null | `0x${string}`;Hook address
data.channel.id
id: bigint = StringBigintSchema;ID of the channel
data.channel.updatedAt
updatedAt: Date = ISO8601DateSchema;Updated at date
data.hook
hook: {
address: `0x${string}`;
enabled: boolean;
};Updated hook data
data.hook.address
address: `0x${string}` = HexSchema;Address of the hook
data.hook.enabled
enabled: boolean;Enabled status
event
event: "channel:hook:status:updated";Event type
logIndex
logIndex: number;Log index
txHash
txHash: `0x${string}` = HexSchema;Transaction hash
uid
uid: string;Unique identifier for the event. You can use it to deduplicate events. In case of retry attempts the id is the same.
version
version: 1;Version of the event