Class ChannelModel
- Namespace
- NLightning.Domain.Channels.Models
- Assembly
- NLightning.Domain.dll
public class ChannelModel
- Inheritance
-
ChannelModel
- Inherited Members
-
Constructors
ChannelModel(ChannelConfig, ChannelId, CommitmentNumber, FundingOutputInfo, bool, CompactSignature?, CompactSignature?, LightningMoney, ChannelKeySetModel, ulong, ulong, LightningMoney, ChannelKeySetModel, ulong, CompactPubKey, ulong, ChannelState, ChannelVersion, ICollection<Htlc>?, ICollection<Htlc>?, ICollection<Htlc>?, BitcoinScript?, ICollection<Htlc>?, ICollection<Htlc>?, ICollection<Htlc>?, BitcoinScript?)
public ChannelModel(ChannelConfig channelConfig, ChannelId channelId, CommitmentNumber commitmentNumber, FundingOutputInfo fundingOutput, bool isInitiator, CompactSignature? lastSentSignature, CompactSignature? lastReceivedSignature, LightningMoney localBalance, ChannelKeySetModel localKeySet, ulong localNextHtlcId, ulong localRevocationNumber, LightningMoney remoteBalance, ChannelKeySetModel remoteKeySet, ulong remoteNextHtlcId, CompactPubKey remoteNodeId, ulong remoteRevocationNumber, ChannelState state, ChannelVersion version, ICollection<Htlc>? localOfferedHtlcs = null, ICollection<Htlc>? localFulfilledHtlcs = null, ICollection<Htlc>? localOldHtlcs = null, BitcoinScript? localUpfrontShutdownScript = null, ICollection<Htlc>? remoteOfferedHtlcs = null, ICollection<Htlc>? remoteFulfilledHtlcs = null, ICollection<Htlc>? remoteOldHtlcs = null, BitcoinScript? remoteUpfrontShutdownScript = null)
Parameters
channelConfig ChannelConfig
channelId ChannelId
commitmentNumber CommitmentNumber
fundingOutput FundingOutputInfo
isInitiator bool
lastSentSignature CompactSignature
lastReceivedSignature CompactSignature
localBalance LightningMoney
localKeySet ChannelKeySetModel
localNextHtlcId ulong
localRevocationNumber ulong
remoteBalance LightningMoney
remoteKeySet ChannelKeySetModel
remoteNextHtlcId ulong
remoteNodeId CompactPubKey
remoteRevocationNumber ulong
state ChannelState
version ChannelVersion
localOfferedHtlcs ICollection<Htlc>
localFulfilledHtlcs ICollection<Htlc>
localOldHtlcs ICollection<Htlc>
localUpfrontShutdownScript BitcoinScript?
remoteOfferedHtlcs ICollection<Htlc>
remoteFulfilledHtlcs ICollection<Htlc>
remoteOldHtlcs ICollection<Htlc>
remoteUpfrontShutdownScript BitcoinScript?
Properties
ChannelConfig
public ChannelConfig ChannelConfig { get; }
Property Value
- ChannelConfig
ChannelId
public ChannelId ChannelId { get; }
Property Value
- ChannelId
CommitmentNumber
public CommitmentNumber CommitmentNumber { get; }
Property Value
- CommitmentNumber
FundingCreatedAtBlockHeight
public uint FundingCreatedAtBlockHeight { get; set; }
Property Value
- uint
FundingOutput
public FundingOutputInfo FundingOutput { get; }
Property Value
- FundingOutputInfo
IsInitiator
public bool IsInitiator { get; }
Property Value
- bool
LastReceivedSignature
public CompactSignature? LastReceivedSignature { get; }
Property Value
- CompactSignature
LastSentSignature
public CompactSignature? LastSentSignature { get; }
Property Value
- CompactSignature
LocalAliases
public ICollection<ShortChannelId>? LocalAliases { get; set; }
Property Value
- ICollection<ShortChannelId>
LocalBalance
public LightningMoney LocalBalance { get; }
Property Value
- LightningMoney
LocalFulfilledHtlcs
public ICollection<Htlc>? LocalFulfilledHtlcs { get; }
Property Value
- ICollection<Htlc>
LocalKeySet
public ChannelKeySetModel LocalKeySet { get; }
Property Value
- ChannelKeySetModel
LocalNextHtlcId
public ulong LocalNextHtlcId { get; }
Property Value
- ulong
LocalOfferedHtlcs
public ICollection<Htlc>? LocalOfferedHtlcs { get; }
Property Value
- ICollection<Htlc>
LocalOldHtlcs
public ICollection<Htlc>? LocalOldHtlcs { get; }
Property Value
- ICollection<Htlc>
LocalRevocationNumber
public ulong LocalRevocationNumber { get; }
Property Value
- ulong
LocalUpfrontShutdownScript
public BitcoinScript? LocalUpfrontShutdownScript { get; }
Property Value
- BitcoinScript?
RemoteAlias
public ShortChannelId? RemoteAlias { get; set; }
Property Value
- ShortChannelId?
RemoteBalance
public LightningMoney RemoteBalance { get; }
Property Value
- LightningMoney
RemoteFulfilledHtlcs
public ICollection<Htlc>? RemoteFulfilledHtlcs { get; }
Property Value
- ICollection<Htlc>
RemoteKeySet
public ChannelKeySetModel RemoteKeySet { get; }
Property Value
- ChannelKeySetModel
RemoteNextHtlcId
public ulong RemoteNextHtlcId { get; }
Property Value
- ulong
RemoteNodeId
public CompactPubKey RemoteNodeId { get; }
Property Value
- CompactPubKey
RemoteOfferedHtlcs
public ICollection<Htlc>? RemoteOfferedHtlcs { get; }
Property Value
- ICollection<Htlc>
RemoteOldHtlcs
public ICollection<Htlc>? RemoteOldHtlcs { get; }
Property Value
- ICollection<Htlc>
RemoteRevocationNumber
public ulong RemoteRevocationNumber { get; }
Property Value
- ulong
RemoteUpfrontShutdownScript
public BitcoinScript? RemoteUpfrontShutdownScript { get; }
Property Value
- BitcoinScript?
ShortChannelId
public ShortChannelId ShortChannelId { get; set; }
Property Value
- ShortChannelId
State
public ChannelState State { get; }
Property Value
- ChannelState
Version
public ChannelVersion Version { get; }
Property Value
- ChannelVersion
Methods
GetSigningInfo()
public ChannelSigningInfo GetSigningInfo()
Returns
- ChannelSigningInfo
UpdateChannelId(ChannelId)
public void UpdateChannelId(ChannelId newChannelId)
Parameters
newChannelId ChannelId
UpdateState(ChannelState)
public void UpdateState(ChannelState newState)
Parameters
newState ChannelState