@pear-protocol/symmio-client 0.3.22 → 0.3.23

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,6 @@
1
1
  'use client';
2
2
  import { createContext, useContext, useMemo, useCallback, useState, useRef, useEffect } from 'react';
3
- import { createSymmSDK, isAuthExpiredError, isNetworkError, isInsufficientMarginError, isRateLimitedError, isTimeoutError } from '@pear-protocol/symm-core';
3
+ import { createSymmSDK, TpslStatus, isAuthExpiredError, isNetworkError, isInsufficientMarginError, isRateLimitedError, isTimeoutError } from '@pear-protocol/symm-core';
4
4
  import { create } from 'zustand';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -26586,7 +26586,7 @@ function useSymmCancelTpslMutation(options) {
26586
26586
  function useSymmTpslOrders(params) {
26587
26587
  const { symmCoreClient, chainId: ctxChainId } = useSymmContext();
26588
26588
  const { accountAddress, address, positionId, type } = params;
26589
- const status = params.status ?? ACTIVE_ORDER_STATUS;
26589
+ const status = params.status ?? TpslStatus.ACTIVE;
26590
26590
  const resolvedAddress = accountAddress ? void 0 : address;
26591
26591
  const chainId = params.chainId ?? ctxChainId;
26592
26592
  const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);