@volr/react 0.1.54 → 0.1.57

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
@@ -191,7 +191,6 @@ interface DepositAsset$1 {
191
191
  * Deposit/Topup configuration
192
192
  */
193
193
  interface DepositConfig {
194
- supportedAssets: DepositAsset$1[];
195
194
  pollIntervalMs?: number;
196
195
  }
197
196
  /**
@@ -436,28 +435,20 @@ type EvmClient = {
436
435
  */
437
436
  sendBatch: SendBatchOverloads;
438
437
  };
439
- /**
440
- * EVM namespace with address and chain client factory
441
- */
442
- type EvmNamespace = ((chainId: number) => EvmClient) & {
443
- /**
444
- * User's EVM wallet address
445
- */
446
- address: `0x${string}` | undefined;
447
- };
448
438
  /**
449
439
  * Volr client interface
450
440
  */
451
441
  type VolrClient = {
452
442
  /**
453
- * EVM namespace - get chain client or access address
454
- * @example
455
- * ```ts
456
- * const address = evm.address;
457
- * await evm(8453).sendBatch([...]);
458
- * ```
443
+ * Get EVM client for a specific chain
444
+ * @param chainId - The chain ID to operate on
445
+ * @returns EVM client with readContract, sendTransaction, sendBatch
446
+ */
447
+ evm: (chainId: number) => EvmClient;
448
+ /**
449
+ * User's EVM wallet address
459
450
  */
460
- evm: EvmNamespace;
451
+ evmAddress: `0x${string}` | undefined;
461
452
  /**
462
453
  * User's email (if logged in with email)
463
454
  */
@@ -832,4 +823,4 @@ declare function debugTransactionFailure(publicClient: PublicClient, failingWall
832
823
  analysis: string[];
833
824
  }>;
834
825
 
835
- export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmClient, type EvmNamespace, type KeyStorageType, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, type PrfInputDto, type SendBatchOverloads, type SendTxOptions, type SignerType, type SocialProvider, type TransactionDto, type TransactionStatus, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletStateComparison, analyzeContractForEIP7702, buildCall, buildCalls, compareERC20Balances, compareWalletStates, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, diagnoseTransactionFailure, getERC20Balance, getWalletState, isEIP7702Delegated, normalizeHex, normalizeHexArray, uploadBlobViaPresign, useDepositListener, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin };
826
+ export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmClient, type KeyStorageType, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, type PrfInputDto, type SendBatchOverloads, type SendTxOptions, type SignerType, type SocialProvider, type TransactionDto, type TransactionStatus, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletStateComparison, analyzeContractForEIP7702, buildCall, buildCalls, compareERC20Balances, compareWalletStates, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, diagnoseTransactionFailure, getERC20Balance, getWalletState, isEIP7702Delegated, normalizeHex, normalizeHexArray, uploadBlobViaPresign, useDepositListener, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin };
package/dist/index.d.ts CHANGED
@@ -191,7 +191,6 @@ interface DepositAsset$1 {
191
191
  * Deposit/Topup configuration
192
192
  */
193
193
  interface DepositConfig {
194
- supportedAssets: DepositAsset$1[];
195
194
  pollIntervalMs?: number;
196
195
  }
197
196
  /**
@@ -436,28 +435,20 @@ type EvmClient = {
436
435
  */
437
436
  sendBatch: SendBatchOverloads;
438
437
  };
439
- /**
440
- * EVM namespace with address and chain client factory
441
- */
442
- type EvmNamespace = ((chainId: number) => EvmClient) & {
443
- /**
444
- * User's EVM wallet address
445
- */
446
- address: `0x${string}` | undefined;
447
- };
448
438
  /**
449
439
  * Volr client interface
450
440
  */
451
441
  type VolrClient = {
452
442
  /**
453
- * EVM namespace - get chain client or access address
454
- * @example
455
- * ```ts
456
- * const address = evm.address;
457
- * await evm(8453).sendBatch([...]);
458
- * ```
443
+ * Get EVM client for a specific chain
444
+ * @param chainId - The chain ID to operate on
445
+ * @returns EVM client with readContract, sendTransaction, sendBatch
446
+ */
447
+ evm: (chainId: number) => EvmClient;
448
+ /**
449
+ * User's EVM wallet address
459
450
  */
460
- evm: EvmNamespace;
451
+ evmAddress: `0x${string}` | undefined;
461
452
  /**
462
453
  * User's email (if logged in with email)
463
454
  */
@@ -832,4 +823,4 @@ declare function debugTransactionFailure(publicClient: PublicClient, failingWall
832
823
  analysis: string[];
833
824
  }>;
834
825
 
835
- export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmClient, type EvmNamespace, type KeyStorageType, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, type PrfInputDto, type SendBatchOverloads, type SendTxOptions, type SignerType, type SocialProvider, type TransactionDto, type TransactionStatus, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletStateComparison, analyzeContractForEIP7702, buildCall, buildCalls, compareERC20Balances, compareWalletStates, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, diagnoseTransactionFailure, getERC20Balance, getWalletState, isEIP7702Delegated, normalizeHex, normalizeHexArray, uploadBlobViaPresign, useDepositListener, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin };
826
+ export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmClient, type KeyStorageType, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, type PrfInputDto, type SendBatchOverloads, type SendTxOptions, type SignerType, type SocialProvider, type TransactionDto, type TransactionStatus, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletStateComparison, analyzeContractForEIP7702, buildCall, buildCalls, compareERC20Balances, compareWalletStates, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, diagnoseTransactionFailure, getERC20Balance, getWalletState, isEIP7702Delegated, normalizeHex, normalizeHexArray, uploadBlobViaPresign, useDepositListener, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin };
package/dist/index.js CHANGED
@@ -18369,7 +18369,7 @@ function useVolr() {
18369
18369
  createGetRpcUrl({ client, rpcOverrides: config.rpcOverrides }),
18370
18370
  [client, config.rpcOverrides]
18371
18371
  );
18372
- const evmFactory = useCallback(
18372
+ const evm = useCallback(
18373
18373
  (chainId) => {
18374
18374
  if (chainId === 0) {
18375
18375
  throw new Error("chainId cannot be 0");
@@ -18460,11 +18460,9 @@ function useVolr() {
18460
18460
  },
18461
18461
  [user, config, provider, precheck, relay, getRpcUrl, setProvider, client]
18462
18462
  );
18463
- const evm = Object.assign(evmFactory, {
18464
- address: user?.evmAddress
18465
- });
18466
18463
  return {
18467
18464
  evm,
18465
+ evmAddress: user?.evmAddress,
18468
18466
  email: user?.email,
18469
18467
  isLoggedIn: user !== null,
18470
18468
  signerType: user?.signerType,