Skip to content

Commit 3cd0819

Browse files
committed
refactor: reorganize imports and update transport configuration for wallet client
1 parent d6597d5 commit 3cd0819

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sdk/viem/src/viem.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ import {
1616
createPublicClient,
1717
createWalletClient,
1818
defineChain,
19-
type HttpTransportConfig,
2019
http,
21-
type PublicClient,
2220
publicActions,
21+
type HttpTransportConfig,
22+
type PublicClient,
2323
type Transport,
2424
type Chain as ViemChain,
2525
} from "viem";
2626
import * as chains from "viem/chains";
2727
import { z } from "zod";
28-
import { createWallet } from "./custom-actions/create-wallet.action.js";
29-
import { createWalletVerification } from "./custom-actions/create-wallet-verification.action.js";
3028
import { createWalletVerificationChallenges } from "./custom-actions/create-wallet-verification-challenges.action.js";
29+
import { createWalletVerification } from "./custom-actions/create-wallet-verification.action.js";
30+
import { createWallet } from "./custom-actions/create-wallet.action.js";
3131
import { deleteWalletVerification } from "./custom-actions/delete-wallet-verification.action.js";
3232
import { getWalletVerifications } from "./custom-actions/get-wallet-verifications.action.js";
3333
import { verifyWalletVerificationChallenge } from "./custom-actions/verify-wallet-verification-challenge.action.js";
@@ -383,8 +383,8 @@ export const getWalletClient = (options: ClientOptions) => {
383383
// WHY 500ms: Same as public client for consistent behavior
384384
pollingInterval: 500,
385385
transport: http(validatedOptions.rpcUrl, {
386-
// PERFORMANCE: Batch requests for multiple operations
387-
batch: true,
386+
// NEVER BATCH!
387+
batch: false,
388388
// RELIABILITY: 60s timeout for potentially slow signing operations
389389
timeout: 60_000,
390390
...validatedOptions.httpTransportConfig,
@@ -567,10 +567,10 @@ function getChain({ chainId, chainName, rpcUrl }: Pick<ClientOptions, "chainId"
567567
}
568568

569569
export type {
570-
CreateWalletParameters,
571-
CreateWalletResponse,
572-
WalletInfo,
573-
} from "./custom-actions/create-wallet.action.js";
570+
CreateWalletVerificationChallengesParameters,
571+
CreateWalletVerificationChallengesResponse,
572+
WalletVerificationChallenge,
573+
} from "./custom-actions/create-wallet-verification-challenges.action.js";
574574
export type {
575575
CreateWalletVerificationParameters,
576576
CreateWalletVerificationResponse,
@@ -580,10 +580,10 @@ export type {
580580
WalletVerificationInfo,
581581
} from "./custom-actions/create-wallet-verification.action.js";
582582
export type {
583-
CreateWalletVerificationChallengesParameters,
584-
CreateWalletVerificationChallengesResponse,
585-
WalletVerificationChallenge,
586-
} from "./custom-actions/create-wallet-verification-challenges.action.js";
583+
CreateWalletParameters,
584+
CreateWalletResponse,
585+
WalletInfo,
586+
} from "./custom-actions/create-wallet.action.js";
587587
export type {
588588
DeleteWalletVerificationParameters,
589589
DeleteWalletVerificationResponse,

0 commit comments

Comments
 (0)