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
Name | Type |
---|---|
registry | ConditionalOrderRegistry |
Returns
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
Name | Type |
---|---|
params | ConditionalOrderParams |
Returns
undefined
| ConditionalOrder
<unknown
, unknown
>
Defined in
external/cow-sdk/src/composable/ConditionalOrderFactory.ts:28