Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / defaultExports

defaultExports

Ethereum Comments Protocol SDK default exports

Type Aliases

Type AliasDescription
SupportedChainConfig-

Variables

VariableDescription
BaseHookABIABI of the BaseHook contract.
CHANNEL_MANAGER_ADDRESSThe address of the ChannelManager contract.
ChannelManagerABIABI of the ChannelManager contract.
COMMENT_MANAGER_ADDRESSThe address of the CommentManager contract. It is created using the CREATE2 opcode so should be identical across chains if no collisions occur.
COMMENT_TYPE_COMMENTComment type constants
COMMENT_TYPE_REACTION-
CommentManagerABIABI of the CommentManager contract.
COMMENTS_EMBED_DEFAULT_BY_AUTHOR_URLThe default embedUri for the CommentsByAuthorEmbed component. It runs a service that creates app signatures for requests and submits the transaction to the CommentManager contract.
COMMENTS_EMBED_DEFAULT_BY_REPLIES_URLThe default embedUri for the CommentsByRepliesEmbed component. It runs a service that creates app signatures for requests and submits the transaction to the CommentManager contract.
COMMENTS_EMBED_DEFAULT_URLThe default embedUri for the CommentsEmbed component. It runs a service that creates app signatures for requests and submits the transaction to the CommentManager contract.
DEFAULT_CHAIN_ID-
DEFAULT_CHAIN_ID_DEV-
DEFAULT_CHANNEL_IDThe default channel ID for the CommentManager contract.
DEFAULT_COMMENT_TYPEThe default comment type for the CommentManager contract.
EMPTY_PARENT_IDThe parent ID for comments that are not replies.
INDEXER_API_URLThe default URL for the Indexer API.
INTERFACE_ID_ERC1155The ERC165 interface ID for the ERC1155 contracts.
INTERFACE_ID_ERC165The ERC165 interface ID for the ERC165 contracts.
INTERFACE_ID_ERC721The ERC165 interface ID for the ERC721 contracts.
MAX_COMMENT_REPORT_MESSAGE_LENGTHThe maximum length of a message for comment report.
NATIVE_ASSET_ADDRESSAsset address used for representing native assets.
SUPPORTED_CHAINSThe supported chains and their corresponding contract addresses.
ZERO_ADDRESSThe zero address.