Documentation
¶
Index ¶
Constants ¶
View Source
const (
AlbySwapServiceFee = 1.0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MempoolTx ¶ added in v1.18.0
type MempoolTx struct {
TxId string `json:"txid"`
Status TxStatusInfo `json:"status"`
}
type SwapResponse ¶ added in v1.18.0
type SwapsService ¶
type SwapsService interface {
StopAutoSwapOut()
EnableAutoSwapOut() error
SwapOut(amount uint64, destination string, autoSwap, usedXpubDerivation bool) (*SwapResponse, error)
SwapIn(amount uint64, autoSwap bool) (*SwapResponse, error)
GetSwapOutInfo() (*SwapInfo, error)
GetSwapInInfo() (*SwapInfo, error)
RefundSwap(swapId, address string, enableRetries bool) error
GetSwap(swapId string) (*Swap, error)
ListSwaps() ([]Swap, error)
}
func NewSwapsService ¶
func NewSwapsService(ctx context.Context, db *gorm.DB, cfg config.Config, keys keys.Keys, eventPublisher events.EventPublisher, lnClient lnclient.LNClient, transactionsService transactions.TransactionsService) SwapsService
Click to show internal directories.
Click to hide internal directories.