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: number;
  content: string;
  deadline: bigint;
  metadata: {
     key: `0x${string}`;
     value: `0x${string}`;
  }[];
  parentId: `0x${string}`;
  targetUri: string;
}
  | {
  app: `0x${string}`;
  author: `0x${string}`;
  channelId: bigint;
  commentType: number;
  content: string;
  deadline: bigint;
  metadata: {
     key: `0x${string}`;
     value: `0x${string}`;
  }[];
  parentId: `0x${string}`;
  targetUri: "";
};

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

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.