@ecp.eth/sdk / comments
comments
Ethereum Comments Protocol SDK Comments Core functionality for managing comments and approvals
Type Aliases
Variables
Variable | Description |
---|---|
AddApprovalTypedDataSchema | - |
AddCommentTypedDataSchema | - |
CommentDataSchema | - |
CommentInputDataSchema | Comment input data schema. This is used as input of the functions. |
CommentMetadataSchema | - |
CreateCommentDataSchema | - |
deleteComment | Delete a comment as an author |
DeleteCommentTypedDataSchema | - |
deleteCommentWithSig | Delete a comment with app signature verification |
editComment | Edit a comment as an author |
EditCommentDataSchema | Edit comment data schema. This is used as input of the functions. |
EditCommentTypedDataSchema | - |
editCommentWithSig | Edit a comment |
JsonLiteralSchema | - |
JsonObjectSchema | - |
JsonSchema | - |
postComment | Posts a comment as an author |
postCommentWithSig | Posts a comment with author signature verification |
RemoveApprovalTypedDataSchema | - |
ReplyCommentInputDataSchema | - |
RootCommentInputDataSchema | - |
Functions
Function | Description |
---|---|
addApproval | Approves an app signer directly as author |
addApprovalWithSig | Adds an app signer approval with signature verification |
createApprovalTypedData | Create the EIP-712 typed data structure for approving comment |
createCommentData | Create the data structure of a comment |
createCommentTypedData | Create the EIP-712 typed data structure for adding comment |
createDeleteCommentTypedData | Create the EIP-712 typed data structure for deleting comment |
createEditCommentData | Create the data structure of a comment for editing |
createEditCommentTypedData | Create the EIP-712 typed data structure for editing comment |
createRemoveApprovalTypedData | Create the EIP-712 typed data structure for removing approval |
getAddApprovalHash | Gets the EIP-712 hash for adding approval |
getChannelManager | Gets the channel manager contract address |
getComment | Get a comment by ID |
getCommentId | Get the ID for a comment before it is posted |
getContractName | Gets the contract name |
getContractVersion | Gets the contract version |
getDeleteCommentHash | Get the hash for deleting a comment |
getDomainSeparator | Gets the EIP-712 domain separator |
getEditCommentHash | Get the hash for editing a comment |
getNonce | Get the nonce for the author and app signer |
getRemoveApprovalHash | Gets the EIP-712 hash for removing approval |
isApproved | Checks if an app signer is approved for an author |
revokeApproval | Revokes an app signer approval directly as author |
revokeApprovalWithSig | Removes an app signer approval with signature verification |
updateChannelContract | Updates the channel manager contract address (only owner) |