Skip to content

Commit

Permalink
make transport optional
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 26, 2024
1 parent 012d865 commit 55ac37b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { createBundlerClient, createPaymasterClient } from "viem/account-abstrac

export type BundlerConfig = {
url: string;
} & Pick<Parameters<typeof createBundlerClient>[0], "key" | "name" | "cacheTime" | "pollingInterval" | "userOperation" | "rpcSchema" | "transport">;
} & Pick<Parameters<typeof createBundlerClient>[0], "key" | "name" | "cacheTime" | "pollingInterval" | "userOperation" | "rpcSchema"> &
Partial<Pick<Parameters<typeof createBundlerClient>[0], "transport">>;

export type PaymasterConfig = {
url: string;
} & Pick<Parameters<typeof createPaymasterClient>[0], "key" | "name" | "pollingInterval" | "rpcSchema" | "cacheTime" | "transport">;
} & Pick<Parameters<typeof createPaymasterClient>[0], "key" | "name" | "pollingInterval" | "rpcSchema" | "cacheTime"> &
Partial<Pick<Parameters<typeof createPaymasterClient>[0], "transport">>;

0 comments on commit 55ac37b

Please sign in to comment.