mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 14:24:21 +01:00
16 lines
646 B
Go
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
|
|
}
|