test

package
v1.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 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

func BumpFee(cli Cli, txId string) string

func ClearWalletDataDir

func ClearWalletDataDir() error

func ClnCli

func ClnCli(cmd string) string

func FundWallet

func FundWallet(currency lightz.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[lightz.Currency]*wallet.Wallet, error)

func LiquidBackendConfig

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

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

func WaitWalletTx

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

func WalletBackend

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

func WalletCredentials

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

func WalletInfo

func WalletInfo(currency lightz.Currency) onchain.WalletInfo

Types

type Cli

type Cli func(string) string

func GetCli

func GetCli(pair lightz.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