@volr/react 0.2.0 → 0.2.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.
package/dist/index.d.cts CHANGED
@@ -286,7 +286,6 @@ interface VolrUser {
286
286
  * Volr configuration
287
287
  */
288
288
  type VolrConfig = {
289
- defaultChainId: number;
290
289
  projectApiKey: string;
291
290
  rpcOverrides?: Record<string, string>;
292
291
  autoRecoverOnLogin?: boolean;
@@ -320,7 +319,6 @@ type VolrContextValue = {
320
319
  provider: WalletProviderPort | null;
321
320
  setProvider: (provider: WalletProviderPort) => Promise<void>;
322
321
  setUser: (user: VolrUser | null) => void;
323
- chainId: number;
324
322
  precheck: (input: PrecheckInput) => Promise<PrecheckQuote>;
325
323
  relay: (input: RelayInput, opts?: {
326
324
  idempotencyKey?: string;
@@ -595,11 +593,6 @@ type VolrClient = {
595
593
  * EVM namespace with address, signing methods, and chain client
596
594
  */
597
595
  evm: EvmNamespace;
598
- /**
599
- * User's EVM wallet address
600
- * @deprecated Use evm.address instead
601
- */
602
- evmAddress: `0x${string}` | undefined;
603
596
  /**
604
597
  * User's email (if logged in with email)
605
598
  */
package/dist/index.d.ts CHANGED
@@ -286,7 +286,6 @@ interface VolrUser {
286
286
  * Volr configuration
287
287
  */
288
288
  type VolrConfig = {
289
- defaultChainId: number;
290
289
  projectApiKey: string;
291
290
  rpcOverrides?: Record<string, string>;
292
291
  autoRecoverOnLogin?: boolean;
@@ -320,7 +319,6 @@ type VolrContextValue = {
320
319
  provider: WalletProviderPort | null;
321
320
  setProvider: (provider: WalletProviderPort) => Promise<void>;
322
321
  setUser: (user: VolrUser | null) => void;
323
- chainId: number;
324
322
  precheck: (input: PrecheckInput) => Promise<PrecheckQuote>;
325
323
  relay: (input: RelayInput, opts?: {
326
324
  idempotencyKey?: string;
@@ -595,11 +593,6 @@ type VolrClient = {
595
593
  * EVM namespace with address, signing methods, and chain client
596
594
  */
597
595
  evm: EvmNamespace;
598
- /**
599
- * User's EVM wallet address
600
- * @deprecated Use evm.address instead
601
- */
602
- evmAddress: `0x${string}` | undefined;
603
596
  /**
604
597
  * User's email (if logged in with email)
605
598
  */
package/dist/index.js CHANGED
@@ -10761,7 +10761,6 @@ function VolrProvider({ config, children }) {
10761
10761
  );
10762
10762
  const [isLoading, setIsLoading] = useState(true);
10763
10763
  const [error, setError] = useState(null);
10764
- const [chainId] = useState(config.defaultChainId);
10765
10764
  const userRef = useRef(null);
10766
10765
  useEffect(() => {
10767
10766
  userRef.current = user;
@@ -10878,7 +10877,6 @@ function VolrProvider({ config, children }) {
10878
10877
  safeStorage.removeItem(STORAGE_KEYS.user);
10879
10878
  }
10880
10879
  },
10881
- chainId,
10882
10880
  precheck,
10883
10881
  relay,
10884
10882
  logout,
@@ -10890,7 +10888,6 @@ function VolrProvider({ config, children }) {
10890
10888
  user,
10891
10889
  provider,
10892
10890
  setProvider,
10893
- chainId,
10894
10891
  precheck,
10895
10892
  relay,
10896
10893
  logout,
@@ -19607,8 +19604,6 @@ function useVolr() {
19607
19604
  );
19608
19605
  return {
19609
19606
  evm,
19610
- evmAddress: user?.evmAddress,
19611
- // deprecated, kept for backward compatibility
19612
19607
  email: user?.email,
19613
19608
  isLoggedIn: user !== null,
19614
19609
  signerType: user?.signerType,