test

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const WalletId = 1
View Source
const WalletMnemonic = "" /* 160-byte string literal not displayed */
View Source
const WalletSubaccount = 0

Variables

This section is empty.

Functions

func BackendCli

func BackendCli(cmd string) string

func BtcCli

func BtcCli(cmd string) string

func BumpFee added in v2.5.0

func BumpFee(cli Cli, txId string) string

func ClearWalletDataDir

func ClearWalletDataDir() error

func ClnCli

func ClnCli(cmd string) string

func FundWallet added in v2.8.0

func FundWallet(currency boltz.Currency, wallet onchain.Wallet) error

func GetBolt12Offer

func GetBolt12Offer() string

func GetNewAddress

func GetNewAddress(cli Cli) string

func InitLogger

func InitLogger()

func InitTestWallet

func InitTestWallet(debug bool) (map[boltz.Currency]*wallet.Wallet, error)

func LiquidBackendConfig added in v2.9.0

func LiquidBackendConfig(t *testing.T) liquid_wallet.Config

func LiquidCli

func LiquidCli(cmd string) string

func MineBlock

func MineBlock()

func MineUntil

func MineUntil(t *testing.T, cli Cli, height int64)

func PastDate

func PastDate(duration time.Duration) time.Time

func PrintBackendLogs

func PrintBackendLogs()

func RandomId

func RandomId() string

func SendToAddress

func SendToAddress(cli Cli, address string, amount uint64) string

func WaitWalletNotifier added in v2.5.0

func WaitWalletNotifier(t *testing.T, txId string, notifier <-chan wallet.TransactionNotification)

func WaitWalletTx added in v2.5.0

func WaitWalletTx(t *testing.T, txId string)

func WalletBackend added in v2.9.0

func WalletBackend(t *testing.T, currency boltz.Currency) onchain.WalletBackend

func WalletCredentials added in v2.5.0

func WalletCredentials(currency boltz.Currency) *onchain.WalletCredentials

func WalletInfo added in v2.9.0

func WalletInfo(currency boltz.Currency) onchain.WalletInfo

Types

type Cli

type Cli func(string) string

func GetCli added in v2.5.0

func GetCli(pair boltz.Currency) Cli

type FakeSwaps

type FakeSwaps struct {
	Swaps        []database.Swap
	ReverseSwaps []database.ReverseSwap
	ChainSwaps   []database.ChainSwap
}

func (FakeSwaps) Create

func (f FakeSwaps) Create(t *testing.T, db *database.Database)

Jump to

Keyboard shortcuts

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