@dhedge/trading-widget 4.0.5 → 4.0.7

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.
@@ -11,4 +11,5 @@ type ErrorsMap = Record<string, {
11
11
  export declare const TRANSACTION_ERRORS: ErrorsMap;
12
12
  export declare const INVALID_PRICES_LIMIT_ORDER_TITLE = "Invalid limit order prices";
13
13
  export declare const LIMIT_ORDER_TRANSACTION_ERRORS: ErrorsMap;
14
+ export declare const TRANSACTION_ERROR_KEYS: string[];
14
15
  export {};
@@ -103,9 +103,7 @@ export type TradingPanelAction = {
103
103
  };
104
104
  export interface TradingPanelContextConfig {
105
105
  actions: Partial<CallbackConfig> & Pick<CallbackConfig, 'getSwapData'>;
106
- initialState?: Partial<Omit<TradingPanelState, 'settings'>> & {
107
- settings?: Partial<Omit<TradingPanelState['settings'], 'selectedAggregators'>>;
108
- };
106
+ initialState?: Partial<TradingPanelState>;
109
107
  }
110
108
  export type TradingPanelActionsState = TradingPanelSetters & {
111
109
  onTradingSettleError: CallbackConfig['onTradingSettleError'] | undefined;
@@ -13,5 +13,5 @@ export declare const parseContractErrorMessage: ({ errorMessage, abiErrors, }: {
13
13
  }) => {
14
14
  title: string;
15
15
  hint?: string | undefined;
16
- } | null;
16
+ } | null | undefined;
17
17
  export {};