Skip to main content

Class: ConditionalOrderFactory

Factory for conditional orders.

It uses a registry to instantiate the correct conditional order based on the handler.

Knowing the handler, the factory will instantiate the correct conditional order using the staticInput data.

Constructors

constructor

new ConditionalOrderFactory(registry): ConditionalOrderFactory

Parameters

NameType
registryConditionalOrderRegistry

Returns

ConditionalOrderFactory

Defined in

external/cow-sdk/src/composable/ConditionalOrderFactory.ts:17

Properties

knownOrderTypes

knownOrderTypes: ConditionalOrderRegistry

Defined in

external/cow-sdk/src/composable/ConditionalOrderFactory.ts:15

Methods

fromParams

fromParams(params): undefined | ConditionalOrder<unknown, unknown>

Get the conditional order factory from the conditional order parameters

Parameters

NameType
paramsConditionalOrderParams

Returns

undefined | ConditionalOrder<unknown, unknown>

Defined in

external/cow-sdk/src/composable/ConditionalOrderFactory.ts:28