@ecp.eth/sdk / channel-manager
channel-manager
Ethereum Comments Protocol SDK Channel Manager Core functionality for managing comment channels
Type Aliases
Variables
Variable | Description |
---|---|
createChannel | Create a new channel |
updateChannel | Update a channel |
Functions
Function | Description |
---|---|
channelExists | Check if a channel exists |
deductProtocolHookTransactionFee | Calculates the hook transaction fee by deducting the protocol fee |
estimateChannelEditCommentFee | Best-effort estimation of the total fee for editing a comment to a channel |
estimateChannelPostCommentFee | Best-effort estimation of the total fee for posting a comment to a channel |
getChannel | Get a channel |
getChannelCreationFee | Get the creation fee from channel manager |
getChannelMetadata | Get channel metadata |
getCommentCreationFee | Get the creation fee from channel manager |
getEstimatedChannelEditCommentHookFee | It calls the estimateEditCommentFee function on the hook to retrieve the estimated fee for editing a comment to a channel. It also tries to probe if the hook is any known legacy hook and return corresponding fee estimation. For estimation of total fee, use the estimateChannelEditCommentFee helper |
getEstimatedChannelPostCommentHookFee | It calls the estimateAddCommentFee function on the hook to retrieve the estimated fee for posting a comment to a channel. It also tries to probe if the hook is any known legacy hook and return corresponding fee estimation. For estimation of total fee, use the estimateChannelPostCommentFee helper |
getHookTransactionFee | Get the hook transaction fee from channel manager |
ownerOf | Get the owner of a channel |
setBaseURI | Sets the base URI for NFT metadata |
setChannelCreationFee | Set the fee for creating a new channel |
setCommentCreationFee | Set the fee for creating a new comment |
setHook | Set the hook for a channel |
setHookTransactionFee | Set the percentage of the fee for the hook transaction |
withdrawFees | Withdraws accumulated fees to a specified address |
References
BaseHookABIType
Re-exports BaseHookABIType
Channel
Re-exports Channel
ChannelManagerABIType
Re-exports ChannelManagerABIType
ChannelPermissions
Re-exports ChannelPermissions
ContractBasedAssetERCType
Re-exports ContractBasedAssetERCType
ContractBasedAssetType
Re-exports ContractBasedAssetType
ContractReadFunctions
Re-exports ContractReadFunctions
ContractWriteFunctions
Re-exports ContractWriteFunctions
HookContractReadFunctions
Re-exports HookContractReadFunctions
HookFeeEstimation
Re-exports HookFeeEstimation
TotalFeeEstimation
Re-exports TotalFeeEstimation