@zerodev/sdk 5.4.28 → 5.4.30
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.
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_cjs/clients/kernelAccountClient.js +4 -4
- package/_cjs/clients/kernelAccountClient.js.map +1 -1
- package/_cjs/constants.js +6 -5
- package/_cjs/constants.js.map +1 -1
- package/_cjs/providers/KernelEIP1193Provider.js +5 -1
- package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_esm/clients/kernelAccountClient.js +4 -4
- package/_esm/clients/kernelAccountClient.js.map +1 -1
- package/_esm/constants.js +6 -4
- package/_esm/constants.js.map +1 -1
- package/_esm/providers/KernelEIP1193Provider.js +5 -1
- package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts +3 -2
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +2 -2
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts +3 -3
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts.map +1 -1
- package/_types/actions/paymaster/estimateGasInERC20.d.ts +2 -1267
- package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
- package/_types/actions/paymaster/sponsorUserOperation.d.ts +2 -1267
- package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
- package/_types/clients/decorators/kernel.d.ts +1 -507
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/clients/fallbackKernelAccountClient.d.ts +2 -254
- package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -1
- package/_types/clients/kernelAccountClient.d.ts.map +1 -1
- package/_types/clients/paymasterClient.d.ts +1 -1
- package/_types/clients/paymasterClient.d.ts.map +1 -1
- package/_types/constants.d.ts +2 -1
- package/_types/constants.d.ts.map +1 -1
- package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
- package/_types/utils.d.ts +2 -1267
- package/_types/utils.d.ts.map +1 -1
- package/accounts/kernel/createKernelAccount.ts +2 -2
- package/accounts/kernel/v1/createKernelAccountV1.ts +2 -3
- package/accounts/kernel/v2/createKernelAccountV0_2.ts +2 -3
- package/clients/kernelAccountClient.ts +82 -10
- package/clients/paymasterClient.ts +1 -1
- package/constants.ts +6 -4
- package/package.json +2 -2
- package/providers/KernelEIP1193Provider.ts +9 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Account, type Address, type Assign, type Chain, type
|
|
1
|
+
import { type Account, type Address, type Assign, type Chain, type EIP1193Provider, type Hex, type LocalAccount, type OneOf, type Transport, type WalletClient } from "viem";
|
|
2
2
|
import { type SmartAccount, type SmartAccountImplementation } from "viem/account-abstraction";
|
|
3
3
|
import type { CallType, GetEntryPointAbi } from "../../../types/kernel.js";
|
|
4
4
|
export type KernelSmartAccountV1Implementation = Assign<SmartAccountImplementation<GetEntryPointAbi<"0.6">, "0.6">, {
|
|
@@ -8,7 +8,7 @@ export type KernelSmartAccountV1Implementation = Assign<SmartAccountImplementati
|
|
|
8
8
|
encodeModuleInstallCallData: () => Promise<Hex>;
|
|
9
9
|
}>;
|
|
10
10
|
export type CreateKernelAccountV1ReturnType = SmartAccount<KernelSmartAccountV1Implementation>;
|
|
11
|
-
export declare function createKernelAccountV1(client:
|
|
11
|
+
export declare function createKernelAccountV1(client: KernelSmartAccountV1Implementation["client"], { signer, address, entryPoint, index }: {
|
|
12
12
|
signer: OneOf<EIP1193Provider | WalletClient<Transport, Chain | undefined, Account> | LocalAccount>;
|
|
13
13
|
entryPoint: {
|
|
14
14
|
address: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKernelAccountV1.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v1/createKernelAccountV1.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,
|
|
1
|
+
{"version":3,"file":"createKernelAccountV1.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v1/createKernelAccountV1.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,SAAS,EAGd,KAAK,YAAY,EAGpB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAKlC,MAAM,0BAA0B,CAAA;AAOjC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAO1E,MAAM,MAAM,kCAAkC,GAAG,MAAM,CACnD,0BAA0B,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAC1D;IACI,IAAI,EAAE,WAAW,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAA;IACrD,WAAW,EAAE,CACT,KAAK,EAAE,UAAU,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,KAC9B,OAAO,CAAC,GAAG,CAAC,CAAA;IACjB,gBAAgB,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;IACpC,2BAA2B,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;CAClD,CACJ,CAAA;AAED,MAAM,MAAM,+BAA+B,GACvC,YAAY,CAAC,kCAAkC,CAAC,CAAA;AA4CpD,wBAAsB,qBAAqB,CACvC,MAAM,EAAE,kCAAkC,CAAC,QAAQ,CAAC,EACpD,EACI,MAAM,EACN,OAAO,EACP,UAAU,EACV,KAAU,EACb,EAAE;IACC,MAAM,EAAE,KAAK,CACP,eAAe,GACf,YAAY,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,GACnD,YAAY,CACjB,CAAA;IACD,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,CAAA;QAChB,OAAO,EAAE,KAAK,CAAA;KACjB,CAAA;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GACF,OAAO,CAAC,+BAA+B,CAAC,CAoM1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Address
|
|
1
|
+
import { type Address } from "viem";
|
|
2
2
|
import type { KernelPluginManager, KernelPluginManagerParams } from "../../../types/kernel.js";
|
|
3
|
-
import type { CreateKernelAccountReturnType } from "../createKernelAccount.js";
|
|
3
|
+
import type { CreateKernelAccountReturnType, KernelSmartAccountImplementation } from "../createKernelAccount.js";
|
|
4
4
|
/**
|
|
5
5
|
* Default addresses for kernel smart account
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ export declare const KERNEL_ADDRESSES: {
|
|
|
18
18
|
* @param ecdsaValidatorAddress
|
|
19
19
|
* @param deployedAccountAddress
|
|
20
20
|
*/
|
|
21
|
-
export declare function createKernelAccountV0_2(client:
|
|
21
|
+
export declare function createKernelAccountV0_2(client: KernelSmartAccountImplementation["client"], { plugins, entryPoint, index, factoryAddress, address }: {
|
|
22
22
|
plugins: Omit<KernelPluginManagerParams<"0.6">, "entryPoint" | "kernelVersion"> | KernelPluginManager<"0.6">;
|
|
23
23
|
entryPoint: {
|
|
24
24
|
address: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKernelAccountV0_2.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v2/createKernelAccountV0_2.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"createKernelAccountV0_2.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v2/createKernelAccountV0_2.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EAYf,MAAM,MAAM,CAAA;AAeb,OAAO,KAAK,EAER,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,0BAA0B,CAAA;AAUjC,OAAO,KAAK,EACR,6BAA6B,EAC7B,gCAAgC,EACnC,MAAM,2BAA2B,CAAA;AAalC;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE;IAC3B,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;CAI3B,CAAA;AA8BD;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CACzC,MAAM,EAAE,gCAAgC,CAAC,QAAQ,CAAC,EAClD,EACI,OAAO,EACP,UAAU,EACV,KAAU,EACV,cAAiD,EACjD,OAAO,EACV,EAAE;IACC,OAAO,EACD,IAAI,CACA,yBAAyB,CAAC,KAAK,CAAC,EAChC,YAAY,GAAG,eAAe,CACjC,GACD,mBAAmB,CAAC,KAAK,CAAC,CAAA;IAChC,UAAU,EAAE;QACR,OAAO,EAAE,OAAO,CAAA;QAChB,OAAO,EAAE,KAAK,CAAA;KACjB,CAAA;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,GACF,OAAO,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC,CAkP/C"}
|