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
Usedbooltrueif the provider found evidence the descriptor at this index has been used (a VTXO, an on-chain boarding UTXO, a swap, etc.).ContractsIReadOnlyList<ArkContract>Contracts the provider reconstructed and would like the orchestrator to persist. May be empty even when
Usedis 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
NotFound
Convenience: provider saw nothing at this index.
public static DiscoveryResult NotFound { get; }
Property Value
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; }