@ecp.eth/sdk / comments / AddCommentTypedDataSchemaType
Type Alias: AddCommentTypedDataSchemaType
type AddCommentTypedDataSchemaType = {
domain: {
chainId: number;
name: "Comments";
verifyingContract: `0x${string}`;
version: "1";
};
message: {
app: `0x${string}`;
author: `0x${string}`;
channelId: bigint;
commentType: string;
content: string;
deadline: bigint;
hookData: string;
metadata: string;
parentId: `0x${string}`;
targetUri: string;
};
primaryType: "AddComment";
types: {
AddComment: (
| {
name: "content";
type: "string";
}
| {
name: "metadata";
type: "string";
}
| {
name: "targetUri";
type: "string";
}
| {
name: "commentType";
type: "string";
}
| {
name: "author";
type: "address";
}
| {
name: "app";
type: "address";
}
| {
name: "channelId";
type: "uint256";
}
| {
name: "deadline";
type: "uint256";
}
| {
name: "parentId";
type: "bytes32";
})[];
};
};
Defined in: packages/sdk/src/comments/schemas.ts:184
Type declaration
domain
domain: {
chainId: number;
name: "Comments";
verifyingContract: `0x${string}`;
version: "1";
};
domain.chainId
chainId: number;
domain.name
name: "Comments";
domain.verifyingContract
verifyingContract: `0x${string}` = HexSchema;
domain.version
version: "1";
message
message: {
app: `0x${string}`;
author: `0x${string}`;
channelId: bigint;
commentType: string;
content: string;
deadline: bigint;
hookData: string;
metadata: string;
parentId: `0x${string}`;
targetUri: string;
} = CreateCommentDataSchema;
message.app
app: `0x${string}` = HexSchema;
message.author
author: `0x${string}` = HexSchema;
message.channelId
channelId: bigint;
message.commentType
commentType: string;
message.content
content: string;
message.deadline
deadline: bigint;
message.hookData
hookData: string;
message.metadata
metadata: string = CommentMetadataSchema;
message.parentId
parentId: `0x${string}` = HexSchema;
message.targetUri
targetUri: string;
primaryType
primaryType: "AddComment";
types
types: {
AddComment: (
| {
name: "content";
type: "string";
}
| {
name: "metadata";
type: "string";
}
| {
name: "targetUri";
type: "string";
}
| {
name: "commentType";
type: "string";
}
| {
name: "author";
type: "address";
}
| {
name: "app";
type: "address";
}
| {
name: "channelId";
type: "uint256";
}
| {
name: "deadline";
type: "uint256";
}
| {
name: "parentId";
type: "bytes32";
})[];
};
types.AddComment
AddComment: (
| {
name: "content";
type: "string";
}
| {
name: "metadata";
type: "string";
}
| {
name: "targetUri";
type: "string";
}
| {
name: "commentType";
type: "string";
}
| {
name: "author";
type: "address";
}
| {
name: "app";
type: "address";
}
| {
name: "channelId";
type: "uint256";
}
| {
name: "deadline";
type: "uint256";
}
| {
name: "parentId";
type: "bytes32";
})[];