Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments / CommentInputData

Type Alias: CommentInputData

type CommentInputData = 
  | {
  app: `0x${string}`;
  author: `0x${string}`;
  channelId: bigint;
  commentType: string;
  content: string;
  deadline: bigint;
  hookData: string;
  metadata: string;
  parentId: `0x${string}`;
  targetUri: string;
}
  | {
  app: `0x${string}`;
  author: `0x${string}`;
  channelId: bigint;
  commentType: string;
  content: string;
  deadline: bigint;
  hookData: string;
  metadata: string;
  parentId: `0x${string}`;
  targetUri: "";
};

Defined in: packages/sdk/src/comments/schemas.ts:139

Comment input data schema. This is used as input of the functions.

It validates precisely what shapes we expect in case of a comment or a reply.