diff --git a/bun.lockb b/bun.lockb index 885bbb7e..f1db0060 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index fe9ebcc7..a353b874 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @zerodev/sdk +## 5.2.7 + +### Patch Changes + +- fix kernelAccountActions typing + ## 5.2.6 ### Patch Changes diff --git a/packages/core/clients/decorators/kernel.ts b/packages/core/clients/decorators/kernel.ts index 8f2049fa..e3f4d8f5 100644 --- a/packages/core/clients/decorators/kernel.ts +++ b/packages/core/clients/decorators/kernel.ts @@ -1,5 +1,4 @@ import { type SmartAccountActions, smartAccountActions } from "permissionless" -import type { SmartAccount } from "permissionless/accounts/types" import { type Middleware } from "permissionless/actions/smartAccount" import type { EntryPoint, Prettify } from "permissionless/types" import type { Chain, Client, Transport } from "viem" @@ -23,6 +22,7 @@ import { sponsorUserOperation } from "../../actions/paymaster/sponsorUserOperation.js" import type { ZeroDevPaymasterClient } from "../paymasterClient.js" +import { type KernelSmartAccount } from "../../accounts/index.js"; export type ZeroDevPaymasterClientActions = { /** @@ -59,8 +59,8 @@ export const zerodevPaymasterActions = export type KernelAccountClientActions< entryPoint extends EntryPoint, TChain extends Chain | undefined = Chain | undefined, - TSmartAccount extends SmartAccount | undefined = - | SmartAccount + TSmartAccount extends KernelSmartAccount | undefined = + | KernelSmartAccount | undefined > = SmartAccountActions & { /** @@ -94,8 +94,8 @@ export const kernelAccountClientActions = < TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, - TSmartAccount extends SmartAccount | undefined = - | SmartAccount + TSmartAccount extends KernelSmartAccount | undefined = + | KernelSmartAccount | undefined >( client: Client diff --git a/packages/core/package.json b/packages/core/package.json index 5087c9da..22abcdb9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@zerodev/sdk", - "version": "5.2.6", + "version": "5.2.7", "author": "ZeroDev", "main": "./_cjs/index.js", "module": "./_esm/index.js",