utils

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BitcoinBlockTime = float64(10)

Block times in minutes

View Source
const LitecoinBlockTime = float64(2.5)

Variables

This section is empty.

Functions

func ApplyLitecoinParams

func ApplyLitecoinParams(litecoinParams litecoinCfg.Params) *bitcoinCfg.Params

func BlocksToHours

func BlocksToHours(blockDelta uint32, blockTime float64) string

func CalculateInvoiceExpiry

func CalculateInvoiceExpiry(blockDelta uint32, blockTime float64) int64

func ConnectBoltzLnd added in v1.1.0

func ConnectBoltzLnd(lnd *lnd.LND, boltz *boltz.Boltz, symbol string) (string, error)

func FormatMilliSat

func FormatMilliSat(milliSat int64) string

TODO: test this on real network

func GetBlockTime

func GetBlockTime(symbol string) float64

func GetSwapMemo

func GetSwapMemo(symbol string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL