@cowprotocol/cow-sdk 5.8.0-RC.9 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,18 @@ import { type ConditionalOrder } from './ConditionalOrder';
2
2
  import { ConditionalOrderParams } from './types';
3
3
  export type FromParams<D, S> = (params: ConditionalOrderParams) => ConditionalOrder<D, S>;
4
4
  export type ConditionalOrderRegistry = Record<string, FromParams<unknown, unknown>>;
5
+ /**
6
+ * Factory for conditional orders.
7
+ *
8
+ * It uses a registry to instantiate the correct conditional order based on the handler.
9
+ *
10
+ * Knowing the handler, the factory will instantiate the correct conditional order using the staticInput data.
11
+ */
5
12
  export declare class ConditionalOrderFactory {
6
13
  knownOrderTypes: ConditionalOrderRegistry;
7
14
  constructor(registry: ConditionalOrderRegistry);
15
+ /**
16
+ * Get the conditional order factory from the conditional order parameters
17
+ */
8
18
  fromParams(params: ConditionalOrderParams): ConditionalOrder<unknown, unknown> | undefined;
9
19
  }