Files
lspd/interceptor/store.go
2023-11-06 14:12:38 +01:00

16 lines
646 B
Go

package interceptor
import (
"time"
"github.com/breez/lspd/shared"
"github.com/btcsuite/btcd/wire"
)
type InterceptStore interface {
PaymentInfo(htlcPaymentHash []byte) (string, *shared.OpeningFeeParams, []byte, []byte, []byte, int64, int64, *wire.OutPoint, *string, error)
SetFundingTx(paymentHash []byte, channelPoint *wire.OutPoint) error
RegisterPayment(token string, params *shared.OpeningFeeParams, destination, paymentHash, paymentSecret []byte, incomingAmountMsat, outgoingAmountMsat int64, tag string) error
InsertChannel(initialChanID, confirmedChanId uint64, channelPoint string, nodeID []byte, lastUpdate time.Time) error
}