Files
utxo/atomic_utxo_manager.go
2026-01-10 02:00:48 -08:00

22 lines
551 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package utxo
import (
"github.com/luxfi/ids"
"github.com/luxfi/math/set"
)
// AtomicUTXOManager defines the interface for managing atomic UTXOs
type AtomicUTXOManager interface {
// GetAtomicUTXOs returns the UTXOs controlled by [addrs] from the given [chainID]
GetAtomicUTXOs(
chainID ids.ID,
addrs set.Set[ids.ShortID],
startAddr ids.ShortID,
startUTXOID ids.ID,
limit int,
) ([]*UTXO, ids.ShortID, ids.ID, error)
}