Table of Contents

Class ArkadeIntentStorageExtensions

Namespace
NArk.ArkadeIntents
Assembly
NArk.ArkadeIntents.dll

Lookups over IArkadeIntentStorage that every store gets for free.

public static class ArkadeIntentStorageExtensions
Inheritance
ArkadeIntentStorageExtensions
Inherited Members

Methods

GetArkadeSwapIntent(IArkadeIntentStorage, string, CancellationToken)

Find one intent by id, or null.

public static Task<ArkadeSwapIntent?> GetArkadeSwapIntent(this IArkadeIntentStorage storage, string id, CancellationToken cancellationToken = default)

Parameters

storage IArkadeIntentStorage

The store to ask.

id string

The intent's id.

cancellationToken CancellationToken

Cancels the query.

Returns

Task<ArkadeSwapIntent>

The intent, or null when no such swap exists.

Remarks

An extension rather than a member of the interface: it is a shorthand for one filtered query, so there is nothing here an implementation could usefully do differently, and keeping it out of the contract means no store — real or test double — can answer it inconsistently with the filter it delegates to.