-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1979 from Web3Auth/feat/aa-update-transport-param
account abstraction - make only url or transport required
- Loading branch information
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
packages/providers/account-abstraction-provider/src/providers/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { createBundlerClient, createPaymasterClient } from "viem/account-abstraction"; | ||
|
||
export type BundlerConfig = { | ||
url: string; | ||
} & Omit<Parameters<typeof createBundlerClient>[0], "account" | "client" | "transport" | "paymaster"> & | ||
Partial<Pick<Parameters<typeof createBundlerClient>[0], "transport">>; | ||
type Transport = Parameters<typeof createBundlerClient>[0]["transport"]; | ||
|
||
export type PaymasterConfig = { | ||
url: string; | ||
} & Omit<Parameters<typeof createPaymasterClient>[0], "transport"> & | ||
Partial<Pick<Parameters<typeof createPaymasterClient>[0], "transport">>; | ||
export type BundlerConfig = Omit<Parameters<typeof createBundlerClient>[0], "account" | "client" | "transport" | "paymaster"> & | ||
({ url: string; transport?: Transport } | { url?: string; transport: Transport }); | ||
|
||
export type PaymasterConfig = Omit<Parameters<typeof createPaymasterClient>[0], "transport"> & | ||
({ url: string; transport?: Transport } | { url?: string; transport: Transport }); |