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
blockchainMonitor
IBlockchainMonitorchannelIdFactory
IChannelIdFactorychannelMemoryRepository
IChannelMemoryRepositorycommitmentTransactionBuilder
ICommitmentTransactionBuildercommitmentTransactionModelFactory
ICommitmentTransactionModelFactorylightningSigner
ILightningSignerlogger
ILogger<FundingCreatedMessageHandler>messageFactory
IMessageFactoryunitOfWork
IUnitOfWork
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
message
FundingCreatedMessageThe message to handle
currentState
ChannelStateThe current state of the channel
negotiatedFeatures
FeatureOptionsFeatures negotiated with the peer
peerPubKey
CompactPubKeyThe public key of the peer
Returns
- Task<IChannelMessage>
A response message if needed, or null if no response is needed