@zerodev/sdk 5.2.6 → 5.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":";;;AAAA,mDAA8E;AAK9E,0GAGiE;AAKjE,qDAA0D;AAC1D,yFAIsD;AACtD,6FAIwD;AAejD,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,IAAA,8CAAoB,EAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,EAAE,IAAkC,EAAE,EAAE,CAC7D,IAAA,0CAAkB,EACd,MAA4C,EAC5C,IAAI,CACP;CACR,CAAC,CAAA;AAlBO,QAAA,uBAAuB,2BAkB9B;AAmCC,MAAM,0BAA0B,GACnC,CAAgC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAC1E,CAOI,MAAiD,EACY,EAAE,CAAC,CAAC;IACjE,GAAG,IAAA,oCAAmB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IAC9C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CACxB,IAAA,4BAAiB,EACb,MAAM,EACN;QACI,GAAG,IAAI;QACP,UAAU;KAC6C,CAC9D;IACL,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC,IAAA,sDAAwB,EAAC,MAAM,CAAC;CACzE,CAAC,CAAA;AArBO,QAAA,0BAA0B,8BAqBjC"}
1
+ {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":";;;AAAA,mDAA8E;AAI9E,0GAGiE;AAKjE,qDAA0D;AAC1D,yFAIsD;AACtD,6FAIwD;AAgBjD,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,IAAA,8CAAoB,EAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,EAAE,IAAkC,EAAE,EAAE,CAC7D,IAAA,0CAAkB,EACd,MAA4C,EAC5C,IAAI,CACP;CACR,CAAC,CAAA;AAlBO,QAAA,uBAAuB,2BAkB9B;AAmCC,MAAM,0BAA0B,GACnC,CAAgC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAC1E,CAOI,MAAiD,EACY,EAAE,CAAC,CAAC;IACjE,GAAG,IAAA,oCAAmB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IAC9C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CACxB,IAAA,4BAAiB,EACb,MAAM,EACN;QACI,GAAG,IAAI;QACP,UAAU;KAC6C,CAC9D;IACL,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC,IAAA,sDAAwB,EAAC,MAAM,CAAC;CACzE,CAAC,CAAA;AArBO,QAAA,0BAA0B,8BAqBjC"}
@@ -4,6 +4,7 @@ import { getUserOperationGasPrice } from "../../actions/account-client/getUserOp
4
4
  import { signUserOperation } from "../../actions/index.js";
5
5
  import { estimateGasInERC20 } from "../../actions/paymaster/estimateGasInERC20.js";
6
6
  import { sponsorUserOperation } from "../../actions/paymaster/sponsorUserOperation.js";
7
+ import {} from "../../accounts/index.js";
7
8
  export const zerodevPaymasterActions = (entryPointAddress) => (client) => ({
8
9
  sponsorUserOperation: async (args) => sponsorUserOperation(client, {
9
10
  ...args,
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,OAAO,EAAmB,MAAM,qCAAqC,CAAA;AAGrE,OAAO,EAEH,wBAAwB,EAC3B,MAAM,0DAA0D,CAAA;AAKjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAGH,kBAAkB,EACrB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAGH,oBAAoB,EACvB,MAAM,iDAAiD,CAAA;AAexD,MAAM,CAAC,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,oBAAoB,CAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,EAAE,IAAkC,EAAE,EAAE,CAC7D,kBAAkB,CACd,MAA4C,EAC5C,IAAI,CACP;CACR,CAAC,CAAA;AAmCN,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAgC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAC1E,CAOI,MAAiD,EACY,EAAE,CAAC,CAAC;IACjE,GAAG,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IAC9C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CACxB,iBAAiB,CACb,MAAM,EACN;QACI,GAAG,IAAI;QACP,UAAU;KAC6C,CAC9D;IACL,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC,wBAAwB,CAAC,MAAM,CAAC;CACzE,CAAC,CAAA"}
1
+ {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAmB,MAAM,qCAAqC,CAAA;AAGrE,OAAO,EAEH,wBAAwB,EAC3B,MAAM,0DAA0D,CAAA;AAKjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAGH,kBAAkB,EACrB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAGH,oBAAoB,EACvB,MAAM,iDAAiD,CAAA;AAExD,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAclE,MAAM,CAAC,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,oBAAoB,CAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,EAAE,IAAkC,EAAE,EAAE,CAC7D,kBAAkB,CACd,MAA4C,EAC5C,IAAI,CACP;CACR,CAAC,CAAA;AAmCN,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAgC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAC1E,CAOI,MAAiD,EACY,EAAE,CAAC,CAAC;IACjE,GAAG,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IAC9C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CACxB,iBAAiB,CACb,MAAM,EACN;QACI,GAAG,IAAI;QACP,UAAU;KAC6C,CAC9D;IACL,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC,wBAAwB,CAAC,MAAM,CAAC;CACzE,CAAC,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { type SmartAccountActions } from "permissionless";
2
- import type { SmartAccount } from "permissionless/accounts/types";
3
2
  import { type Middleware } from "permissionless/actions/smartAccount";
4
3
  import type { EntryPoint, Prettify } from "permissionless/types";
5
4
  import type { Chain, Client, Transport } from "viem";
@@ -8,6 +7,7 @@ import type { SignUserOperationReturnType } from "../../actions/index.js";
8
7
  import { signUserOperation } from "../../actions/index.js";
9
8
  import { type EstimateGasInERC20Parameters, type EstimateGasInERC20ReturnType } from "../../actions/paymaster/estimateGasInERC20.js";
10
9
  import { type SponsorUserOperationParameters, type SponsorUserOperationReturnType } from "../../actions/paymaster/sponsorUserOperation.js";
10
+ import { type KernelSmartAccount } from "../../accounts/index.js";
11
11
  export type ZeroDevPaymasterClientActions<entryPoint extends EntryPoint> = {
12
12
  /**
13
13
  * Returns paymasterAndData & updated gas parameters required to sponsor a userOperation.
@@ -16,7 +16,7 @@ export type ZeroDevPaymasterClientActions<entryPoint extends EntryPoint> = {
16
16
  estimateGasInERC20: (args: EstimateGasInERC20Parameters) => Promise<EstimateGasInERC20ReturnType>;
17
17
  };
18
18
  export declare const zerodevPaymasterActions: <entryPoint extends EntryPoint>(entryPointAddress: entryPoint) => (client: Client) => ZeroDevPaymasterClientActions<entryPoint>;
19
- export type KernelAccountClientActions<entryPoint extends EntryPoint, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined> = SmartAccountActions<entryPoint, TChain, TSmartAccount> & {
19
+ export type KernelAccountClientActions<entryPoint extends EntryPoint, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends KernelSmartAccount<entryPoint> | undefined = KernelSmartAccount<entryPoint> | undefined> = SmartAccountActions<entryPoint, TChain, TSmartAccount> & {
20
20
  /**
21
21
  * Signs a user operation with the given transport, chain, and smart account.
22
22
  *
@@ -31,5 +31,5 @@ export type KernelAccountClientActions<entryPoint extends EntryPoint, TChain ext
31
31
  */
32
32
  getUserOperationGasPrice: () => Promise<Prettify<GetUserOperationGasPriceReturnType>>;
33
33
  };
34
- export declare const kernelAccountClientActions: <entryPoint extends EntryPoint>({ middleware }: Middleware<entryPoint>) => <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TSmartAccount>) => KernelAccountClientActions<entryPoint, TChain, TSmartAccount>;
34
+ export declare const kernelAccountClientActions: <entryPoint extends EntryPoint>({ middleware }: Middleware<entryPoint>) => <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends KernelSmartAccount<entryPoint> | undefined = KernelSmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TSmartAccount>) => KernelAccountClientActions<entryPoint, TChain, TSmartAccount>;
35
35
  //# sourceMappingURL=kernel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,gBAAgB,CAAA;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,EACH,KAAK,kCAAkC,EAE1C,MAAM,0DAA0D,CAAA;AACjE,OAAO,KAAK,EAER,2BAA2B,EAC9B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAEpC,MAAM,+CAA+C,CAAA;AACtD,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EAEtC,MAAM,iDAAiD,CAAA;AAGxD,MAAM,MAAM,6BAA6B,CAAC,UAAU,SAAS,UAAU,IAAI;IACvE;;OAEG;IACH,oBAAoB,EAAE,CAClB,IAAI,EAAE,8BAA8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AAwB,EAAE,MAAM,OAAO,CACnC,QAAQ,CAAC,kCAAkC,CAAC,CAC/C,CAAA;CACJ,CAAA;AAED,eAAO,MAAM,0BAA0B,oYAqBjC,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { type SmartAccountActions, smartAccountActions } from "permissionless"
2
- import type { SmartAccount } from "permissionless/accounts/types"
3
2
  import { type Middleware } from "permissionless/actions/smartAccount"
4
3
  import type { EntryPoint, Prettify } from "permissionless/types"
5
4
  import type { Chain, Client, Transport } from "viem"
@@ -23,6 +22,7 @@ import {
23
22
  sponsorUserOperation
24
23
  } from "../../actions/paymaster/sponsorUserOperation.js"
25
24
  import type { ZeroDevPaymasterClient } from "../paymasterClient.js"
25
+ import { type KernelSmartAccount } from "../../accounts/index.js";
26
26
 
27
27
  export type ZeroDevPaymasterClientActions<entryPoint extends EntryPoint> = {
28
28
  /**
@@ -59,8 +59,8 @@ export const zerodevPaymasterActions =
59
59
  export type KernelAccountClientActions<
60
60
  entryPoint extends EntryPoint,
61
61
  TChain extends Chain | undefined = Chain | undefined,
62
- TSmartAccount extends SmartAccount<entryPoint> | undefined =
63
- | SmartAccount<entryPoint>
62
+ TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
63
+ | KernelSmartAccount<entryPoint>
64
64
  | undefined
65
65
  > = SmartAccountActions<entryPoint, TChain, TSmartAccount> & {
66
66
  /**
@@ -94,8 +94,8 @@ export const kernelAccountClientActions =
94
94
  <
95
95
  TTransport extends Transport,
96
96
  TChain extends Chain | undefined = Chain | undefined,
97
- TSmartAccount extends SmartAccount<entryPoint> | undefined =
98
- | SmartAccount<entryPoint>
97
+ TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
98
+ | KernelSmartAccount<entryPoint>
99
99
  | undefined
100
100
  >(
101
101
  client: Client<TTransport, TChain, TSmartAccount>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodev/sdk",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "author": "ZeroDev",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",