CoinSelection

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputUTxoDepletedError

type InputUTxoDepletedError struct{}

func (*InputUTxoDepletedError) Error

func (i *InputUTxoDepletedError) Error() string

type InsufficientUtxoBalanceError

type InsufficientUtxoBalanceError struct {
	Msg string
}

func (*InsufficientUtxoBalanceError) Error

type LargestFirstSelector

type LargestFirstSelector struct{}

func (LargestFirstSelector) Select

func (lfs LargestFirstSelector) Select(
	utxos []UTxO.UTxO,
	outputs []TransactionOutput.TransactionOutput,
	context Base.ChainContext,
	maxInputCount int,
	includeMaxFee bool,
	respectMinUtxo bool) (
	[]UTxO.UTxO,
	Value.Value,
	error)

type MaxInputCountExceededError

type MaxInputCountExceededError struct {
	MaxInputCount int
}

func (*MaxInputCountExceededError) Error

type RandomImproveMultiAsset

type RandomImproveMultiAsset struct{}

func (RandomImproveMultiAsset) Select

func (rims RandomImproveMultiAsset) Select(
	utxos []UTxO.UTxO,
	outputs []TransactionOutput.TransactionOutput,
	context Base.ChainContext,
	maxInputCount int,
	includeMaxFee bool,
	respectMinUtxo bool) (
	[]UTxO.UTxO,
	Value.Value,
	error)

type UTxOSelector

type UTxOSelector interface {
	Select([]UTxO.UTxO, []TransactionOutput.TransactionOutput, Base.ChainContext, int, bool, bool) ([]UTxO.UTxO, Value.Value, error)
}

Jump to

Keyboard shortcuts

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