Class FundingCreatedMessageHandler
- Namespace
- NLightning.Application.Channels.Handlers
- Assembly
- NLightning.Application.dll
public class FundingCreatedMessageHandler : IChannelMessageHandler<FundingCreatedMessage>
- Inheritance
-
FundingCreatedMessageHandler
- Implements
- Inherited Members
Constructors
FundingCreatedMessageHandler(IBlockchainMonitor, IChannelIdFactory, IChannelMemoryRepository, ICommitmentTransactionBuilder, ICommitmentTransactionModelFactory, ILightningSigner, ILogger<FundingCreatedMessageHandler>, IMessageFactory, IUnitOfWork)
public FundingCreatedMessageHandler(IBlockchainMonitor blockchainMonitor, IChannelIdFactory channelIdFactory, IChannelMemoryRepository channelMemoryRepository, ICommitmentTransactionBuilder commitmentTransactionBuilder, ICommitmentTransactionModelFactory commitmentTransactionModelFactory, ILightningSigner lightningSigner, ILogger<FundingCreatedMessageHandler> logger, IMessageFactory messageFactory, IUnitOfWork unitOfWork)
Parameters
blockchainMonitorIBlockchainMonitorchannelIdFactoryIChannelIdFactorychannelMemoryRepositoryIChannelMemoryRepositorycommitmentTransactionBuilderICommitmentTransactionBuildercommitmentTransactionModelFactoryICommitmentTransactionModelFactorylightningSignerILightningSignerloggerILogger<FundingCreatedMessageHandler>messageFactoryIMessageFactoryunitOfWorkIUnitOfWork
Methods
HandleAsync(FundingCreatedMessage, ChannelState, FeatureOptions, CompactPubKey)
Handles a channel message and returns a response message if needed
public Task<IChannelMessage?> HandleAsync(FundingCreatedMessage message, ChannelState currentState, FeatureOptions negotiatedFeatures, CompactPubKey peerPubKey)
Parameters
messageFundingCreatedMessageThe message to handle
currentStateChannelStateThe current state of the channel
negotiatedFeaturesFeatureOptionsFeatures negotiated with the peer
peerPubKeyCompactPubKeyThe public key of the peer
Returns
- Task<IChannelMessage>
A response message if needed, or null if no response is needed