@volr/react 0.1.54 → 0.1.55
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/README.md +4 -9
- package/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -17
- package/dist/index.d.ts +9 -17
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -436,28 +436,20 @@ type EvmClient = {
|
|
|
436
436
|
*/
|
|
437
437
|
sendBatch: SendBatchOverloads;
|
|
438
438
|
};
|
|
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
439
|
/**
|
|
449
440
|
* Volr client interface
|
|
450
441
|
*/
|
|
451
442
|
type VolrClient = {
|
|
452
443
|
/**
|
|
453
|
-
* EVM
|
|
454
|
-
* @
|
|
455
|
-
*
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
444
|
+
* Get EVM client for a specific chain
|
|
445
|
+
* @param chainId - The chain ID to operate on
|
|
446
|
+
* @returns EVM client with readContract, sendTransaction, sendBatch
|
|
447
|
+
*/
|
|
448
|
+
evm: (chainId: number) => EvmClient;
|
|
449
|
+
/**
|
|
450
|
+
* User's EVM wallet address
|
|
459
451
|
*/
|
|
460
|
-
|
|
452
|
+
evmAddress: `0x${string}` | undefined;
|
|
461
453
|
/**
|
|
462
454
|
* User's email (if logged in with email)
|
|
463
455
|
*/
|
|
@@ -832,4 +824,4 @@ declare function debugTransactionFailure(publicClient: PublicClient, failingWall
|
|
|
832
824
|
analysis: string[];
|
|
833
825
|
}>;
|
|
834
826
|
|
|
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
|
|
827
|
+
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
|
@@ -436,28 +436,20 @@ type EvmClient = {
|
|
|
436
436
|
*/
|
|
437
437
|
sendBatch: SendBatchOverloads;
|
|
438
438
|
};
|
|
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
439
|
/**
|
|
449
440
|
* Volr client interface
|
|
450
441
|
*/
|
|
451
442
|
type VolrClient = {
|
|
452
443
|
/**
|
|
453
|
-
* EVM
|
|
454
|
-
* @
|
|
455
|
-
*
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
444
|
+
* Get EVM client for a specific chain
|
|
445
|
+
* @param chainId - The chain ID to operate on
|
|
446
|
+
* @returns EVM client with readContract, sendTransaction, sendBatch
|
|
447
|
+
*/
|
|
448
|
+
evm: (chainId: number) => EvmClient;
|
|
449
|
+
/**
|
|
450
|
+
* User's EVM wallet address
|
|
459
451
|
*/
|
|
460
|
-
|
|
452
|
+
evmAddress: `0x${string}` | undefined;
|
|
461
453
|
/**
|
|
462
454
|
* User's email (if logged in with email)
|
|
463
455
|
*/
|
|
@@ -832,4 +824,4 @@ declare function debugTransactionFailure(publicClient: PublicClient, failingWall
|
|
|
832
824
|
analysis: string[];
|
|
833
825
|
}>;
|
|
834
826
|
|
|
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
|
|
827
|
+
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
|
|
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,
|