Package fr.acinq.lightning.channel

Types

Aborted
Link copied to clipboard
common
data class Aborted(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates) : ChannelState

Channel has been aborted before it was funded (because we did not receive a FundingCreated or FundingSigned message for example)

CannotAffordFees
Link copied to clipboard
common
data class CannotAffordFees(channelId: ByteVector32, missing: Satoshi, reserve: Satoshi, fees: Satoshi) : ChannelException
CannotCloseWithUnsignedOutgoingHtlcs
Link copied to clipboard
common
data class CannotCloseWithUnsignedOutgoingHtlcs(channelId: ByteVector32) : ChannelException
common
data class CannotCloseWithUnsignedOutgoingUpdateFee(channelId: ByteVector32) : ChannelException
CannotExtractSharedSecret
Link copied to clipboard
common
data class CannotExtractSharedSecret(channelId: ByteVector32, htlc: UpdateAddHtlc) : ChannelException
CannotSignBeforeRevocation
Link copied to clipboard
common
data class CannotSignBeforeRevocation(channelId: ByteVector32) : ChannelException
CannotSignWithoutChanges
Link copied to clipboard
common
data class CannotSignWithoutChanges(channelId: ByteVector32) : ChannelException
Channel
Link copied to clipboard
common
object Channel
ChannelAction
Link copied to clipboard
common
sealed class ChannelAction

Channel Actions (outputs produced by the state machine).

ChannelConfig
Link copied to clipboard
common
data class ChannelConfig(options: Set<ChannelConfigOption>)
ChannelConfigOption
Link copied to clipboard
common
sealed class ChannelConfigOption

Internal configuration option impacting the channel's structure or behavior. This must be set when creating the channel and cannot be changed afterwards.

ChannelEvent
Link copied to clipboard
common
sealed class ChannelEvent

Channel Events (inputs to be fed to the state machine).

ChannelException
Link copied to clipboard
common
open class ChannelException(channelId: ByteVector32, message: String) : RuntimeException
ChannelFeatures
Link copied to clipboard
common
data class ChannelFeatures(features: Set<Feature>)

Subset of Bolt 9 features used to configure a channel and applicable over the lifetime of that channel. Even if one of these features is later disabled at the connection level, it will still apply to the channel until the channel is upgraded or closed.

ChannelFlags
Link copied to clipboard
common
object ChannelFlags
ChannelFundingError
Link copied to clipboard
common
data class ChannelFundingError(channelId: ByteVector32) : ChannelException
ChannelKeys
Link copied to clipboard
common
data class ChannelKeys(fundingKeyPath: KeyPath, fundingPrivateKey: PrivateKey, paymentKey: PrivateKey, delayedPaymentKey: PrivateKey, htlcKey: PrivateKey, revocationKey: PrivateKey, shaSeed: ByteVector32)

Channel secrets and keys, generated from a funding key BIP32 path

ChannelOrigin
Link copied to clipboard
common
sealed class ChannelOrigin

This gives the reason for creating a new channel

ChannelReserveBelowOurDustLimit
Link copied to clipboard
common
data class ChannelReserveBelowOurDustLimit(channelId: ByteVector32, channelReserve: Satoshi, dustLimit: Satoshi) : ChannelException
ChannelReserveNotMet
Link copied to clipboard
common
data class ChannelReserveNotMet(channelId: ByteVector32, toLocal: MilliSatoshi, toRemote: MilliSatoshi, reserve: Satoshi) : ChannelException
ChannelReserveTooHigh
Link copied to clipboard
common
data class ChannelReserveTooHigh(channelId: ByteVector32, channelReserve: Satoshi, reserveToFundingRatio: Double, maxReserveToFundingRatio: Double) : ChannelException
ChannelState
Link copied to clipboard
common
sealed class ChannelState

Channel state.

ChannelStateWithCommitments
Link copied to clipboard
common
sealed class ChannelStateWithCommitments : ChannelState
ChannelType
Link copied to clipboard
common
sealed class ChannelType

A channel type is a specific set of feature bits that represent persistent channel features as defined in Bolt 2.

ChannelUnavailable
Link copied to clipboard
common
data class ChannelUnavailable(channelId: ByteVector32) : ChannelException
CloseCommand
Link copied to clipboard
common
sealed class CloseCommand : Command
Closed
Link copied to clipboard
common
data class Closed(state: Closing) : ChannelStateWithCommitments

Channel is closed i.t its funding tx has been spent and the spending transactions have been confirmed, it can be forgotten

Closing
Link copied to clipboard
common
data class Closing(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, fundingTx: Transaction?, waitingSinceBlock: Long, mutualCloseProposed: List<Transactions.TransactionWithInputInfo.ClosingTx>, mutualClosePublished: List<Transactions.TransactionWithInputInfo.ClosingTx>, localCommitPublished: LocalCommitPublished?, remoteCommitPublished: RemoteCommitPublished?, nextRemoteCommitPublished: RemoteCommitPublished?, futureRemoteCommitPublished: RemoteCommitPublished?, revokedCommitPublished: List<RevokedCommitPublished>) : ChannelStateWithCommitments
ClosingAlreadyInProgress
Link copied to clipboard
common
data class ClosingAlreadyInProgress(channelId: ByteVector32) : ChannelException
ClosingFeerates
Link copied to clipboard
common
data class ClosingFeerates(preferred: FeeratePerKw, min: FeeratePerKw, max: FeeratePerKw)
ClosingFees
Link copied to clipboard
common
data class ClosingFees(preferred: Satoshi, min: Satoshi, max: Satoshi)
ClosingTxProposed
Link copied to clipboard
common
data class ClosingTxProposed(unsignedTx: Transactions.TransactionWithInputInfo.ClosingTx, localClosingSigned: ClosingSigned)
ClosingType
Link copied to clipboard
common
sealed class ClosingType
CMD_ADD_HTLC
Link copied to clipboard
common
data class CMD_ADD_HTLC(amount: MilliSatoshi, paymentHash: ByteVector32, cltvExpiry: CltvExpiry, onion: OnionRoutingPacket, paymentId: UUID, commit: Boolean) : Command
CMD_CLOSE
Link copied to clipboard
common
data class CMD_CLOSE(scriptPubKey: ByteVector?, feerates: ClosingFeerates?) : CloseCommand
CMD_FAIL_HTLC
Link copied to clipboard
common
data class CMD_FAIL_HTLC(id: Long, reason: CMD_FAIL_HTLC.Reason, commit: Boolean) : HtlcSettlementCommand
CMD_FAIL_MALFORMED_HTLC
Link copied to clipboard
common
data class CMD_FAIL_MALFORMED_HTLC(id: Long, onionHash: ByteVector32, failureCode: Int, commit: Boolean) : HtlcSettlementCommand
CMD_FORCECLOSE
Link copied to clipboard
common
object CMD_FORCECLOSE : CloseCommand
CMD_FULFILL_HTLC
Link copied to clipboard
common
data class CMD_FULFILL_HTLC(id: Long, r: ByteVector32, commit: Boolean) : HtlcSettlementCommand
CMD_SIGN
Link copied to clipboard
common
object CMD_SIGN : Command
CMD_UPDATE_FEE
Link copied to clipboard
common
data class CMD_UPDATE_FEE(feerate: FeeratePerKw, commit: Boolean) : Command
Command
Link copied to clipboard
common
sealed class Command
CommandUnavailableInThisState
Link copied to clipboard
common
data class CommandUnavailableInThisState(channelId: ByteVector32, state: String) : ChannelException
Commitments
Link copied to clipboard
common
data class Commitments(channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, localParams: LocalParams, remoteParams: RemoteParams, channelFlags: Byte, localCommit: LocalCommit, remoteCommit: RemoteCommit, localChanges: LocalChanges, remoteChanges: RemoteChanges, localNextHtlcId: Long, remoteNextHtlcId: Long, payments: Map<Long, UUID>, remoteNextCommitInfo: Either<WaitingForRevocation, PublicKey>, commitInput: Transactions.InputInfo, remotePerCommitmentSecrets: ShaChain, channelId: ByteVector32, remoteChannelData: EncryptedChannelData)

about remoteNextCommitInfo: we either:

CommitmentSyncError
Link copied to clipboard
common
data class CommitmentSyncError(channelId: ByteVector32) : ChannelException
CurrentRemoteClose
Link copied to clipboard
common
data class CurrentRemoteClose(remoteCommit: RemoteCommit, remoteCommitPublished: RemoteCommitPublished) : RemoteClose
DebugTriggeredException
Link copied to clipboard
common
data class DebugTriggeredException(channelId: ByteVector32) : ChannelException
DustLimitAboveOurChannelReserve
Link copied to clipboard
common
data class DustLimitAboveOurChannelReserve(channelId: ByteVector32, dustLimit: Satoshi, channelReserve: Satoshi) : ChannelException
DustLimitTooLarge
Link copied to clipboard
common
data class DustLimitTooLarge(channelId: ByteVector32, dustLimit: Satoshi, max: Satoshi) : ChannelException
DustLimitTooSmall
Link copied to clipboard
common
data class DustLimitTooSmall(channelId: ByteVector32, dustLimit: Satoshi, min: Satoshi) : ChannelException
ErrorInformationLeak
Link copied to clipboard
common
data class ErrorInformationLeak(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments) : ChannelStateWithCommitments
ExpiryTooBig
Link copied to clipboard
common
data class ExpiryTooBig(channelId: ByteVector32, maximum: CltvExpiry, actual: CltvExpiry, blockCount: Long) : ChannelException
ExpiryTooSmall
Link copied to clipboard
common
data class ExpiryTooSmall(channelId: ByteVector32, minimum: CltvExpiry, actual: CltvExpiry, blockCount: Long) : ChannelException
FeerateTooDifferent
Link copied to clipboard
common
data class FeerateTooDifferent(channelId: ByteVector32, localFeeratePerKw: FeeratePerKw, remoteFeeratePerKw: FeeratePerKw) : ChannelException
FeerateTooSmall
Link copied to clipboard
common
data class FeerateTooSmall(channelId: ByteVector32, remoteFeeratePerKw: FeeratePerKw) : ChannelException
ForcedLocalCommit
Link copied to clipboard
common
data class ForcedLocalCommit(channelId: ByteVector32) : ChannelException
FulfilledHtlcsWillTimeout
Link copied to clipboard
common
data class FulfilledHtlcsWillTimeout(channelId: ByteVector32, htlcs: Set<UpdateAddHtlc>) : ChannelException
FundeeCannotSendUpdateFee
Link copied to clipboard
common
data class FundeeCannotSendUpdateFee(channelId: ByteVector32) : ChannelException
FundingTxSpent
Link copied to clipboard
common
data class FundingTxSpent(channelId: ByteVector32, spendingTx: Transaction) : ChannelException
FundingTxTimedout
Link copied to clipboard
common
data class FundingTxTimedout(channelId: ByteVector32) : ChannelException
Helpers
Link copied to clipboard
common
object Helpers
HtlcOverriddenByLocalCommit
Link copied to clipboard
common
data class HtlcOverriddenByLocalCommit(channelId: ByteVector32, htlc: UpdateAddHtlc) : ChannelException
HtlcSettlementCommand
Link copied to clipboard
common
sealed class HtlcSettlementCommand : Command
HtlcSigCountMismatch
Link copied to clipboard
common
data class HtlcSigCountMismatch(channelId: ByteVector32, expected: Int, actual: Int) : ChannelException
HtlcsTimedOutDownstream
Link copied to clipboard
common
data class HtlcsTimedOutDownstream(channelId: ByteVector32, htlcs: Set<UpdateAddHtlc>) : ChannelException
HtlcTxAndSigs
Link copied to clipboard
common
data class HtlcTxAndSigs(txinfo: Transactions.TransactionWithInputInfo.HtlcTx, localSig: ByteVector64, remoteSig: ByteVector64)
HtlcValueTooHighInFlight
Link copied to clipboard
common
data class HtlcValueTooHighInFlight(channelId: ByteVector32, maximum: ULong, actual: MilliSatoshi) : ChannelException
HtlcValueTooSmall
Link copied to clipboard
common
data class HtlcValueTooSmall(channelId: ByteVector32, minimum: MilliSatoshi, actual: MilliSatoshi) : ChannelException
InsufficientFunds
Link copied to clipboard
common
data class InsufficientFunds(channelId: ByteVector32, amount: MilliSatoshi, missing: Satoshi, reserve: Satoshi, fees: Satoshi) : ChannelException
InvalidAnnouncementSignatures
Link copied to clipboard
common
data class InvalidAnnouncementSignatures(channelId: ByteVector32, annSigs: AnnouncementSignatures) : ChannelException
InvalidChainHash
Link copied to clipboard
common
data class InvalidChainHash(channelId: ByteVector32, local: ByteVector32, remote: ByteVector32) : ChannelException
InvalidChannelType
Link copied to clipboard
common
data class InvalidChannelType(channelId: ByteVector32, ourChannelType: ChannelType, theirChannelType: ChannelType) : ChannelException
InvalidCloseAmountBelowDust
Link copied to clipboard
common
data class InvalidCloseAmountBelowDust(channelId: ByteVector32, tx: Transaction) : ChannelException
InvalidCloseFee
Link copied to clipboard
common
data class InvalidCloseFee(channelId: ByteVector32, fee: Satoshi) : ChannelException
InvalidCloseSignature
Link copied to clipboard
common
data class InvalidCloseSignature(channelId: ByteVector32, tx: Transaction) : ChannelException
InvalidCommitmentSignature
Link copied to clipboard
common
data class InvalidCommitmentSignature(channelId: ByteVector32, tx: Transaction) : ChannelException
InvalidFailureCode
Link copied to clipboard
common
data class InvalidFailureCode(channelId: ByteVector32) : ChannelException
InvalidFinalScript
Link copied to clipboard
common
data class InvalidFinalScript(channelId: ByteVector32) : ChannelException
InvalidFundingAmount
Link copied to clipboard
common
data class InvalidFundingAmount(channelId: ByteVector32, fundingAmount: Satoshi, min: Satoshi, max: Satoshi) : ChannelException
InvalidHtlcPreimage
Link copied to clipboard
common
data class InvalidHtlcPreimage(channelId: ByteVector32, id: Long) : ChannelException
InvalidHtlcSignature
Link copied to clipboard
common
data class InvalidHtlcSignature(channelId: ByteVector32, tx: Transaction) : ChannelException
InvalidMaxAcceptedHtlcs
Link copied to clipboard
common
data class InvalidMaxAcceptedHtlcs(channelId: ByteVector32, maxAcceptedHtlcs: Int, max: Int) : ChannelException
InvalidPushAmount
Link copied to clipboard
common
data class InvalidPushAmount(channelId: ByteVector32, pushAmount: MilliSatoshi, max: MilliSatoshi) : ChannelException
InvalidRevocation
Link copied to clipboard
common
data class InvalidRevocation(channelId: ByteVector32) : ChannelException
InvalidRevokedCommitProof
Link copied to clipboard
common
data class InvalidRevokedCommitProof(channelId: ByteVector32, ourCommitmentNumber: Long, theirCommitmentNumber: Long, perCommitmentSecret: PrivateKey) : ChannelException
LocalChanges
Link copied to clipboard
common
data class LocalChanges(proposed: List<UpdateMessage>, signed: List<UpdateMessage>, acked: List<UpdateMessage>)
LocalClose
Link copied to clipboard
common
data class LocalClose(localCommit: LocalCommit, localCommitPublished: LocalCommitPublished) : ClosingType
LocalCommit
Link copied to clipboard
common
data class LocalCommit(index: Long, spec: CommitmentSpec, publishableTxs: PublishableTxs)
LocalCommitPublished
Link copied to clipboard
common
data class LocalCommitPublished(commitTx: Transaction, claimMainDelayedOutputTx: Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx?, htlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.HtlcTx?>, claimHtlcDelayedTxs: List<Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)

Details about a force-close where we published our commitment.

LocalParams
Link copied to clipboard
common
data class LocalParams(nodeId: PublicKey, channelKeys: ChannelKeys, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, isFunder: Boolean, defaultFinalScriptPubKey: ByteVector, features: Features)
MissingChannelType
Link copied to clipboard
common
data class MissingChannelType(channelId: ByteVector32) : ChannelException
MutualClose
Link copied to clipboard
common
data class MutualClose(tx: Transactions.TransactionWithInputInfo.ClosingTx) : ClosingType
Negotiating
Link copied to clipboard
common
data class Negotiating(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, localShutdown: Shutdown, remoteShutdown: Shutdown, closingTxProposed: List<List<ClosingTxProposed>>, bestUnpublishedClosingTx: Transactions.TransactionWithInputInfo.ClosingTx?, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
NextRemoteClose
Link copied to clipboard
common
data class NextRemoteClose(remoteCommit: RemoteCommit, remoteCommitPublished: RemoteCommitPublished) : RemoteClose
NoMoreFeeUpdateClosingInProgress
Link copied to clipboard
common
data class NoMoreFeeUpdateClosingInProgress(channelId: ByteVector32) : ChannelException
NoMoreHtlcsClosingInProgress
Link copied to clipboard
common
data class NoMoreHtlcsClosingInProgress(channelId: ByteVector32) : ChannelException
Normal
Link copied to clipboard
common
data class Normal(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, shortChannelId: ShortChannelId, buried: Boolean, channelAnnouncement: ChannelAnnouncement?, channelUpdate: ChannelUpdate, remoteChannelUpdate: ChannelUpdate?, localShutdown: Shutdown?, remoteShutdown: Shutdown?, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
Offline
Link copied to clipboard
common
data class Offline(state: ChannelStateWithCommitments) : ChannelState
PleasePublishYourCommitment
Link copied to clipboard
common
data class PleasePublishYourCommitment(channelId: ByteVector32) : ChannelException
PublishableTxs
Link copied to clipboard
common
data class PublishableTxs(commitTx: Transactions.TransactionWithInputInfo.CommitTx, htlcTxsAndSigs: List<HtlcTxAndSigs>)
RecoveredChannelKeys
Link copied to clipboard
common
data class RecoveredChannelKeys(fundingPubKey: PublicKey, paymentKey: PrivateKey, delayedPaymentKey: PrivateKey, htlcKey: PrivateKey, revocationKey: PrivateKey, shaSeed: ByteVector32)

Channel keys recovered from the channel's funding public key (note that we obviously cannot recover the funding private key) These keys can be used to spend our outputs from a commit tx that has been published to the blockchain, without any other information than the node's seed ("backup less backup")

RecoveryClose
Link copied to clipboard
common
data class RecoveryClose(remoteCommitPublished: RemoteCommitPublished) : ClosingType
RemoteCannotAffordFeesForNewHtlc
Link copied to clipboard
common
data class RemoteCannotAffordFeesForNewHtlc(channelId: ByteVector32, amount: MilliSatoshi, missing: Satoshi, reserve: Satoshi, fees: Satoshi) : ChannelException
RemoteChanges
Link copied to clipboard
common
data class RemoteChanges(proposed: List<UpdateMessage>, acked: List<UpdateMessage>, signed: List<UpdateMessage>)
RemoteClose
Link copied to clipboard
common
sealed class RemoteClose : ClosingType
RemoteCommit
Link copied to clipboard
common
data class RemoteCommit(index: Long, spec: CommitmentSpec, txid: ByteVector32, remotePerCommitmentPoint: PublicKey)
RemoteCommitPublished
Link copied to clipboard
common
data class RemoteCommitPublished(commitTx: Transaction, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, claimHtlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.ClaimHtlcTx?>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)

Details about a force-close where they published their commitment.

RemoteParams
Link copied to clipboard
common
data class RemoteParams(nodeId: PublicKey, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubKey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, features: Features)
RevocationSyncError
Link copied to clipboard
common
data class RevocationSyncError(channelId: ByteVector32) : ChannelException
RevokedClose
Link copied to clipboard
common
data class RevokedClose(revokedCommitPublished: RevokedCommitPublished) : ClosingType
RevokedCommitPublished
Link copied to clipboard
common
data class RevokedCommitPublished(commitTx: Transaction, remotePerCommitmentSecret: PrivateKey, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, mainPenaltyTx: Transactions.TransactionWithInputInfo.MainPenaltyTx?, htlcPenaltyTxs: List<Transactions.TransactionWithInputInfo.HtlcPenaltyTx>, claimHtlcDelayedPenaltyTxs: List<Transactions.TransactionWithInputInfo.ClaimHtlcDelayedOutputPenaltyTx>, irrevocablySpent: Map<OutPoint, Transaction>)

Details about a force-close where they published one of their revoked commitments.

ShuttingDown
Link copied to clipboard
common
data class ShuttingDown(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, localShutdown: Shutdown, remoteShutdown: Shutdown, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
StaticParams
Link copied to clipboard
common
data class StaticParams(nodeParams: NodeParams, remoteNodeId: PublicKey)

Channel static parameters.

Syncing
Link copied to clipboard
common
data class Syncing(state: ChannelStateWithCommitments, waitForTheirReestablishMessage: Boolean) : ChannelState

waitForTheirReestablishMessage == true means that we want to wait until we've received their channel_reestablish message before we send ours (for example, to extract encrypted backup data from extra fields) waitForTheirReestablishMessage == false means that we've already sent our channel_reestablish message

TooManyAcceptedHtlcs
Link copied to clipboard
common
data class TooManyAcceptedHtlcs(channelId: ByteVector32, maximum: Long) : ChannelException
TooManyOfferedHtlcs
Link copied to clipboard
common
data class TooManyOfferedHtlcs(channelId: ByteVector32, maximum: Long) : ChannelException
ToSelfDelayTooHigh
Link copied to clipboard
common
data class ToSelfDelayTooHigh(channelId: ByteVector32, toSelfDelay: CltvExpiryDelta, max: CltvExpiryDelta) : ChannelException
UnexpectedHtlcId
Link copied to clipboard
common
data class UnexpectedHtlcId(channelId: ByteVector32, expected: Long, actual: Long) : ChannelException
UnexpectedRevocation
Link copied to clipboard
common
data class UnexpectedRevocation(channelId: ByteVector32) : ChannelException
UnknownHtlcId
Link copied to clipboard
common
data class UnknownHtlcId(channelId: ByteVector32, id: Long) : ChannelException
WaitForAcceptChannel
Link copied to clipboard
common
data class WaitForAcceptChannel(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, initFunder: ChannelEvent.InitFunder, lastSent: OpenChannel) : ChannelState
WaitForFundingConfirmed
Link copied to clipboard
common
data class WaitForFundingConfirmed(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, fundingTx: Transaction?, waitingSinceBlock: Long, deferred: FundingLocked?, lastSent: Either<FundingCreated, FundingSigned>) : ChannelStateWithCommitments
WaitForFundingCreated
Link copied to clipboard
common
data class WaitForFundingCreated(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingAmount: Satoshi, pushAmount: MilliSatoshi, initialFeerate: FeeratePerKw, remoteFirstPerCommitmentPoint: PublicKey, channelFlags: Byte, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, channelOrigin: ChannelOrigin?, lastSent: AcceptChannel) : ChannelState
WaitForFundingInternal
Link copied to clipboard
common
data class WaitForFundingInternal(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingAmount: Satoshi, pushAmount: MilliSatoshi, initialFeerate: FeeratePerKw, remoteFirstPerCommitmentPoint: PublicKey, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, lastSent: OpenChannel) : ChannelState
WaitForFundingLocked
Link copied to clipboard
common
data class WaitForFundingLocked(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, shortChannelId: ShortChannelId, lastSent: FundingLocked) : ChannelStateWithCommitments
WaitForFundingSigned
Link copied to clipboard
common
data class WaitForFundingSigned(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, channelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingTx: Transaction, fundingTxFee: Satoshi, localSpec: CommitmentSpec, localCommitTx: Transactions.TransactionWithInputInfo.CommitTx, remoteCommit: RemoteCommit, channelFlags: Byte, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, lastSent: FundingCreated) : ChannelState
WaitForInit
Link copied to clipboard
common
data class WaitForInit(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates) : ChannelState
WaitForOpenChannel
Link copied to clipboard
common
data class WaitForOpenChannel(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, channelConfig: ChannelConfig, remoteInit: Init) : ChannelState
WaitForRemotePublishFutureCommitment
Link copied to clipboard
common
data class WaitForRemotePublishFutureCommitment(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, remoteChannelReestablish: ChannelReestablish) : ChannelStateWithCommitments
WaitingForRevocation
Link copied to clipboard
common
data class WaitingForRevocation(nextRemoteCommit: RemoteCommit, sent: CommitSig, sentAfterLocalCommitIndex: Long, reSignAsap: Boolean)