Utils

scalus.ledger.api.v1.Utils
object Utils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

def findInput(inputs: List[TxInInfo], outRef: TxOutRef): Option[TxInInfo]

Finds an input in the list of inputs by its out reference.

Finds an input in the list of inputs by its out reference.

Value parameters

inputs

The list of inputs to search in.

outRef

The output reference to find.

Attributes

Returns

An Option containing the found input, or None if not found.

def findScriptOutputs(outputs: List[TxOut], scriptHash: ValidatorHash): List[TxOut]

Finds all outputs that match a given script hash.

Finds all outputs that match a given script hash.

Value parameters

outputs

The list of outputs to search in.

scriptHash

The script hash to match against the outputs' addresses.

Attributes

Returns

A list of outputs that match the script hash.

Concrete fields

lazy val sirDeps: List[SIRModuleWithDeps]
lazy val sirModule: Module