@dhedge/trading-widget 7.0.1 → 7.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.
@@ -9,6 +9,7 @@ interface UseCanSpendParams {
9
9
  }
10
10
  export declare const useCanSpend: ({ rawAmountToSpend, tokenAddress, ownerAddress, spenderAddress, chainId, skip, }: UseCanSpendParams) => {
11
11
  canSpend: boolean;
12
+ isAllowanceKnown: boolean;
12
13
  isFetching: boolean;
13
14
  };
14
15
  export {};
@@ -2,5 +2,6 @@ export type ApproveAndDepositState = 'idle' | 'approving' | 'waiting-approve-con
2
2
  export declare const useApproveAndDeposit: () => {
3
3
  approveAndDeposit: () => Promise<void>;
4
4
  isLoading: boolean;
5
+ isAllowanceKnown: boolean;
5
6
  flowState: ApproveAndDepositState;
6
7
  };
@@ -1,4 +1,5 @@
1
1
  export declare const useDepositAllowance: () => {
2
2
  approve: () => Promise<void>;
3
3
  canSpend: boolean;
4
+ isAllowanceKnown: boolean;
4
5
  };
@@ -1 +1 @@
1
- export declare const useMinVaultTokensReceivedAmount: () => string;
1
+ export declare const useMinVaultTokensReceivedAmount: () => string | undefined;
@@ -1 +1 @@
1
- export declare const useVaultDepositTokenAmount: () => string;
1
+ export declare const useVaultDepositTokenAmount: () => string | undefined;
@@ -1,4 +1,5 @@
1
1
  export declare const useIsCompleteWithdrawStep: () => {
2
2
  isCompleteWithdrawStep: boolean;
3
+ isCompleteWithdrawStepUnknown: boolean;
3
4
  isFetching: boolean;
4
5
  };
@@ -4,6 +4,7 @@ interface UseInitWithdrawAllowanceParams {
4
4
  }
5
5
  export declare const useInitWithdrawAllowance: ({ onErrorCallback, }?: UseInitWithdrawAllowanceParams | undefined) => {
6
6
  canSpend: boolean;
7
+ isAllowanceKnown: boolean;
7
8
  approve: () => Promise<void>;
8
9
  isCanSpendFetching: boolean;
9
10
  };