@dhedge/trading-widget 2.0.0 → 2.0.2

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,3 +2,4 @@ export * from './arbitrum';
2
2
  export * from './base';
3
3
  export * from './optimism';
4
4
  export * from './polygon';
5
+ export declare const MULTI_CHAIN_SWAPPER_CONTRACT_ADDRESS = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
@@ -5,6 +5,8 @@ export declare const DEFAULT_POLLING_INTERVAL = 59000;
5
5
  export declare const SHORTEN_POLLING_INTERVAL = 30000;
6
6
  export declare const EXTREMELY_SHORT_POLLING_INTERVAL = 15000;
7
7
  export declare const DEFAULT_RETRIES_NUMBER = 5;
8
+ export declare const DEFAULT_DEBOUNCE_TIME = 400;
9
+ export declare const EXTENDED_DEBOUNCE_TIME: number;
8
10
  export declare const DEFAULT_LOCK_TIME: string;
9
11
  export declare const EMPTY_POOL_CONFIG: PoolConfig;
10
12
  export declare const DEFAULT_DEPOSIT_METHOD: DepositMethodName;
@@ -11,3 +11,4 @@ export { useSynthetixV3OraclesUpdate } from './synthetix-v3/use-synthetix-v3-ora
11
11
  export { useDepositProjectedEarnings } from './projected-earnings/use-deposit-projected-earnings';
12
12
  export { useProjectedEarningsCore } from './projected-earnings/use-projected-earnings-core';
13
13
  export { useSwapDataQuery } from './use-swap-data-query';
14
+ export { useSendTokenDebouncedValue } from './use-send-token-debounced-value';
@@ -0,0 +1,8 @@
1
+ type UseSendTokenDebouncedValueProps = {
2
+ extendedDebounceTime?: boolean;
3
+ } | undefined;
4
+ export declare const useSendTokenDebouncedValue: (props?: UseSendTokenDebouncedValueProps) => {
5
+ debouncedSendTokenValue: string;
6
+ isDebouncing: boolean;
7
+ };
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { type UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { SwapDataRequest, SwapDataResponse } from 'core-kit/types';
3
- export declare const useSwapDataQuery: (variables: SwapDataRequest, options?: Omit<UseQueryOptions<SwapDataResponse | null, Error, SwapDataResponse | null, [
3
+ export declare const useSwapDataQuery: (variables: Omit<SwapDataRequest, 'fromAddress'>, options?: Omit<UseQueryOptions<SwapDataResponse | null, Error, SwapDataResponse | null, [
4
4
  string,
5
5
  SwapDataRequest
6
6
  ]>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<SwapDataResponse | null, Error>;