Table of Contents

Class RfqStateExtensions

Namespace
NArk.ArkadeIntents.Rfq
Assembly
NArk.ArkadeIntents.dll

State-vocabulary helpers.

public static class RfqStateExtensions
Inheritance
RfqStateExtensions
Inherited Members

Methods

IsResolved(RfqState)

True for the two states in which the contract itself was resolved.

public static bool IsResolved(this RfqState state)

Parameters

state RfqState

The state to classify.

Returns

bool

true when the money reached one side or came back.

Remarks

Narrower than IsTerminal(RfqState), and the difference is the point. A negotiation refused or expired is over without any contract having been funded, while these two are the only states in which one was funded and then settled — which is what a caller deciding whether a refund is still worth pushing is actually asking about.

IsTerminal(RfqState)

True for states after which nothing further will happen.

public static bool IsTerminal(this RfqState state)

Parameters

state RfqState

The state to classify.

Returns

bool

true when the negotiation has reached a terminal state.