Skip to content

Commit

Permalink
revert exports and pimlico changes
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Dec 12, 2024
1 parent c719e8d commit f13b35b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
18 changes: 16 additions & 2 deletions packages/permissionless/clients/pimlico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ export type PimlicoClient<
transport extends Transport = Transport,
chain extends Chain | undefined = Chain | undefined,
account extends SmartAccount | undefined = SmartAccount | undefined,
client extends Client | undefined = Client | undefined,
rpcSchema extends RpcSchema | undefined = undefined
> = Prettify<
Client<
transport,
chain extends Chain ? chain : undefined,
chain extends Chain
? chain
: // biome-ignore lint/suspicious/noExplicitAny: We need any to infer the chain type
client extends Client<any, infer chain>
? chain
: undefined,
account,
rpcSchema extends RpcSchema
? [...BundlerRpcSchema, ...PimlicoRpcSchema, ...rpcSchema]
Expand Down Expand Up @@ -70,6 +76,7 @@ export function createPimlicoClient<
transport extends Transport = Transport,
chain extends Chain | undefined = undefined,
account extends SmartAccount | undefined = SmartAccount | undefined,
client extends Client | undefined = undefined,
rpcSchema extends RpcSchema | undefined = undefined
>(
parameters: PimlicoClientConfig<
Expand All @@ -79,7 +86,14 @@ export function createPimlicoClient<
account,
rpcSchema
>
): PimlicoClient<entryPointVersion, transport, chain, account, rpcSchema>
): PimlicoClient<
entryPointVersion,
transport,
chain,
account,
client,
rpcSchema
>

export function createPimlicoClient(
parameters: PimlicoClientConfig
Expand Down
30 changes: 0 additions & 30 deletions packages/permissionless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,6 @@
"import": "./_esm/accounts/index.js",
"default": "./_cjs/accounts/index.js"
},
"./accounts/kernel": {
"types": "./_types/accounts/kernel/index.d.ts",
"import": "./_esm/accounts/kernel/index.js",
"default": "./_cjs/accounts/kernel/index.js"
},
"./accounts/light": {
"types": "./_types/accounts/light/index.d.ts",
"import": "./_esm/accounts/light/index.js",
"default": "./_cjs/accounts/light/index.js"
},
"./accounts/safe": {
"types": "./_types/accounts/safe/index.d.ts",
"import": "./_esm/accounts/safe/index.js",
"default": "./_cjs/accounts/safe/index.js"
},
"./accounts/simple": {
"types": "./_types/accounts/simple/index.d.ts",
"import": "./_esm/accounts/simple/index.js",
"default": "./_cjs/accounts/simple/index.js"
},
"./accounts/trust": {
"types": "./_types/accounts/trust/index.d.ts",
"import": "./_esm/accounts/trust/index.js",
"default": "./_cjs/accounts/trust/index.js"
},
"./accounts/etherspot": {
"types": "./_types/accounts/etherspot/index.d.ts",
"import": "./_esm/accounts/etherspot/index.js",
"default": "./_cjs/accounts/etherspot/index.js"
},
"./actions": {
"types": "./_types/actions/index.d.ts",
"import": "./_esm/actions/index.js",
Expand Down

0 comments on commit f13b35b

Please sign in to comment.