Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPaymentAnalyzer ¶
func NewPaymentAnalyzer(feeWindow *FeeWindow, nts *NextTransactionSize) *paymentAnalyzer
Types ¶
type AnalysisStatus ¶
type AnalysisStatus string
const ( AnalysisStatusOk AnalysisStatus = "Ok" AnalysisStatusAmountGreaterThanBalance AnalysisStatus = "GreaterThanBalance" AnalysisStatusAmountTooSmall AnalysisStatus = "AmountTooSmall" AnalysisStatusUnpayable AnalysisStatus = "Unpayable" )
type FeeWindow ¶
TODO: we should make FeeWindow enforce a non empty Map of TargetedFees via constructor
type NextTransactionSize ¶
type NextTransactionSize struct {
SizeProgression []SizeForAmount
ValidAtOperationHid int64 // Just for debugging reasons
ExpectedDebtInSat int64
}
func (*NextTransactionSize) TotalBalance ¶
func (nts *NextTransactionSize) TotalBalance() int64
func (*NextTransactionSize) UtxoBalance ¶
func (nts *NextTransactionSize) UtxoBalance() int64
type PaymentAnalysis ¶
type PaymentToAddress ¶
type PaymentToInvoice ¶
type PaymentToInvoice struct {
TakeFeeFromAmount bool
AmountInSat int64
SwapFees *fees.SwapFees // Nullable before we know the paymentAmount for amountless invoice
BestRouteFees []fees.BestRouteFees // Nullable when we know the amount beforehand (invoice with amount)
FundingOutputPolicies *fees.FundingOutputPolicies // Nullable when we know the amount beforehand (invoice with amount)
}
type SizeForAmount ¶
Click to show internal directories.
Click to hide internal directories.