txutils

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterChainOutputs

func FilterChainOutputs(outs []*ledger.OutputWithID) ([]*ledger.OutputWithChainID, error)

func FilterOutputsSortByAmount

func FilterOutputsSortByAmount(outs []*ledger.OutputWithID, filter func(o *ledger.Output) bool, desc ...bool) []*ledger.OutputWithID

func ParseAndSortOutputData

func ParseAndSortOutputData(outs []*ledger.OutputDataWithID, filter func(oid *ledger.OutputID, o *ledger.Output) bool, desc ...bool) ([]*ledger.OutputWithID, error)

func ParseAndSortOutputDataUpToAmount

func ParseAndSortOutputDataUpToAmount(outs []*ledger.OutputDataWithID, amount uint64, filter func(oid *ledger.OutputID, o *ledger.Output) bool, desc ...bool) ([]*ledger.OutputWithID, uint64, ledger.Time, error)

func ParseChainConstraintsFromData

func ParseChainConstraintsFromData(outs []*ledger.OutputDataWithID) ([]*ledger.OutputWithChainID, error)

func ParseOutputDataAndFilter

func ParseOutputDataAndFilter(outs []*ledger.OutputDataWithID, filter func(oid *ledger.OutputID, o *ledger.Output) bool) ([]*ledger.OutputWithID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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