@dhedge/trading-widget 3.3.0-alpha.2 → 3.3.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.
@@ -1,6 +1,4 @@
1
1
  export declare const FACTORY_ADDRESS_POLYGON = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0";
2
- export declare const DEV_FACTORY_ADDRESS_POLYGON = "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53";
3
2
  export declare const AAVE_LENDING_POOL_V2_ADDRESS_POLYGON = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf";
4
3
  export declare const AAVE_LENDING_POOL_V3_ADDRESS_POLYGON = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
5
4
  export declare const EASY_SWAPPER_V2_ADDRESS_POLYGON = "0x45b90480D6F643dE2f128db091A357C3c90399f2";
6
- export declare const DEV_EASY_SWAPPER_V2_ADDRESS_POLYGON = "0xfc02889E9459Ebc56840a79cB364924Fe3F054EB";
@@ -1,5 +1,4 @@
1
1
  export { useCheckWhitelist } from './use-check-whitelist';
2
- export { useIsDhedgePool } from './use-is-dhedge-pool';
3
2
  export { useManagerLogicAddress } from './use-manager-logic-address';
4
3
  export { useContractPoolComposition } from './use-contract-pool-composition';
5
4
  export { usePoolComposition } from './use-pool-composition';
@@ -13,4 +12,4 @@ export { useTotalFundValueMutable } from './synthetixV3/use-total-funds-value-mu
13
12
  export { useInvalidatePoolContractData } from './use-invalidate-pool-contract-data';
14
13
  export { usePoolsDynamic } from './multicall';
15
14
  export { useVaultVestedPoints } from './use-vault-vested-points';
16
- export { useHasDhedgeVaultInComposition } from './use-has-dhedge-vault-in-composition';
15
+ export { useHasNestedVaultInComposition } from './use-has-nested-vault-in-composition';
@@ -1,5 +1,5 @@
1
1
  import type { PoolContractCallParams } from 'core-kit/types';
2
- export declare const useHasDhedgeVaultInComposition: ({ address, chainId, }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<{
2
+ export declare const useHasNestedVaultInComposition: ({ address, chainId, }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<{
3
3
  address: `0x${string}`;
4
4
  abi: readonly [{
5
5
  readonly inputs: readonly [{
@@ -1,6 +1,6 @@
1
1
  import type { CalculateSwapDataParamsResponse, PoolConfig } from 'core-kit/types';
2
2
  export interface FetchAaveSwapParamsProps {
3
- withdrawAmount: bigint;
3
+ withdrawAmountD18: bigint;
4
4
  slippage: number;
5
5
  }
6
- export declare const useFetchAaveSwapParams: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmount, slippage, }: FetchAaveSwapParamsProps) => Promise<CalculateSwapDataParamsResponse | undefined>;
6
+ export declare const useFetchAaveSwapParams: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmountD18, slippage, }: FetchAaveSwapParamsProps) => Promise<CalculateSwapDataParamsResponse | undefined>;
@@ -1,6 +1,6 @@
1
1
  import type { FetchAaveSwapParamsProps } from 'core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-aave-swap-params';
2
2
  import type { ComplexWithdrawAssetData, PoolConfig } from 'core-kit/types';
3
- export declare const useFetchInitWithdrawComplexAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmount, vaultTokenPrice, slippage, disabled, }: FetchAaveSwapParamsProps & {
3
+ export declare const useFetchInitWithdrawComplexAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => ({ withdrawAmountD18, vaultTokenPrice, slippage, disabled, }: FetchAaveSwapParamsProps & {
4
4
  disabled?: boolean | undefined;
5
5
  vaultTokenPrice: string;
6
6
  }) => Promise<ComplexWithdrawAssetData[]>;
@@ -0,0 +1 @@
1
+ export declare const useIsOffchainAaveWithdrawSupported: () => boolean;
@@ -1,4 +1,4 @@
1
1
  export { useUserTokenBalance } from './use-user-token-balance';
2
2
  export { useIsInsufficientBalance } from './use-is-insufficient-balance';
3
- export { useIsPoolManagerAccount } from './use-is-pool-manager-account';
3
+ export { useIsDhedgeVaultConnected } from './use-is-dhedge-vault-connected';
4
4
  export { useFlatmoneyPointsUserBalances } from './use-flatmoney-points-user-balances';
@@ -0,0 +1 @@
1
+ export declare const useIsDhedgeVaultConnected: () => boolean;