txstest

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWallet

func NewWallet(
	t testing.TB,
	rt *runtime.Runtime,
	cfg *config.Config,
	state state.State,
	kc *secp256k1fx.Keychain,
	netIDs []ids.ID,
	validationIDs []ids.ID,
	chainIDs []ids.ID,
) wallet.Wallet

func NewWalletWithOptions

func NewWalletWithOptions(
	t testing.TB,
	rt *runtime.Runtime,
	wCfg WalletConfig,
	state state.State,
	kc *secp256k1fx.Keychain,
	netIDs []ids.ID,
	validationIDs []ids.ID,
	chainIDs []ids.ID,
) wallet.Wallet

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func (*Backend) GetNetOwner

func (b *Backend) GetNetOwner(_ context.Context, netID ids.ID) (fx.Owner, error)

func (*Backend) GetOwner

func (b *Backend) GetOwner(_ context.Context, ownerID ids.ID) (fx.Owner, error)

func (*Backend) GetUTXO

func (b *Backend) GetUTXO(_ context.Context, chainID, utxoID ids.ID) (*lux.UTXO, error)

func (*Backend) UTXOs

func (b *Backend) UTXOs(_ context.Context, sourceChainID ids.ID) ([]*lux.UTXO, error)

type WalletConfig

type WalletConfig struct {
	Config      *config.Config
	InternalCfg *config.Internal // Optional: for dynamic fees
}

type WalletFactory

type WalletFactory struct {
	// contains filtered or unexported fields
}

func NewWalletFactory

func NewWalletFactory(
	rt *runtime.Runtime,
	cfg *config.Config,
	state state.State,
) *WalletFactory

func NewWalletFactoryWithAssets

func NewWalletFactoryWithAssets(
	rt *runtime.Runtime,
	cfg *config.Config,
	state state.State,
	luxAssetID ids.ID,
) *WalletFactory

NewWalletFactoryWithAssets creates a wallet factory with explicit asset IDs

func (*WalletFactory) NewWallet

func (w *WalletFactory) NewWallet(keys ...*secp256k1.PrivateKey) (builder.Builder, signer.Signer)

Jump to

Keyboard shortcuts

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