Table of Contents

Class DiscoveryResult

Namespace
NArk.Abstractions.Recovery
Assembly
NArk.Abstractions.dll

Result of querying a single IContractDiscoveryProvider for one index.

public record DiscoveryResult : IEquatable<DiscoveryResult>
Inheritance
DiscoveryResult
Implements
Inherited Members

Constructors

DiscoveryResult(bool, IReadOnlyList<ArkContract>)

Result of querying a single IContractDiscoveryProvider for one index.

public DiscoveryResult(bool Used, IReadOnlyList<ArkContract> Contracts)

Parameters

Used bool

true if the provider found evidence the descriptor at this index has been used (a VTXO, an on-chain boarding UTXO, a swap, etc.).

Contracts IReadOnlyList<ArkContract>

Contracts the provider reconstructed and would like the orchestrator to persist. May be empty even when Used is true if the provider only knows "this was used" but not enough to materialize a contract on its own.

Properties

Contracts

Contracts the provider reconstructed and would like the orchestrator to persist. May be empty even when Used is true if the provider only knows "this was used" but not enough to materialize a contract on its own.

public IReadOnlyList<ArkContract> Contracts { get; init; }

Property Value

IReadOnlyList<ArkContract>

NotFound

Convenience: provider saw nothing at this index.

public static DiscoveryResult NotFound { get; }

Property Value

DiscoveryResult

Used

true if the provider found evidence the descriptor at this index has been used (a VTXO, an on-chain boarding UTXO, a swap, etc.).

public bool Used { get; init; }

Property Value

bool