@zerodev/sdk 5.2.13 → 5.2.15
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/actions/account-client/signUserOperation.js.map +1 -1
- package/_cjs/index.js +2 -1
- package/_cjs/index.js.map +1 -1
- package/_esm/actions/account-client/signUserOperation.js.map +1 -1
- package/_esm/index.js +2 -1
- package/_esm/index.js.map +1 -1
- package/_types/actions/account-client/signUserOperation.d.ts +5 -7
- package/_types/actions/account-client/signUserOperation.d.ts.map +1 -1
- package/_types/clients/decorators/kernel.d.ts +1 -1
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/actions/account-client/signUserOperation.ts +10 -25
- package/clients/decorators/kernel.ts +1 -1
- package/index.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperation.js","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"signUserOperation.js","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":";;;AACA,sEAAiF;AAWjF,gDAG6B;AAE7B,sCAAsC;AAY/B,KAAK,UAAU,iBAAiB,CAQnC,MAA4C,EAC5C,IAAiE;IAEjE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAA;IACnD,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,oCAA4B,EAAE,CAAA;IAEvD,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAA6B,CAAA;IAElE,MAAM,aAAa,GAAG,MAAM,IAAA,iBAAS,EACjC,MAAM,EACN,CAAA,0CAAqE,CAAA,EACrE,6BAA6B,CAChC,CAAC,IAAI,CAAC,CAAA;IAEP,aAAa,CAAC,SAAS,GAAG,MAAM,OAAO,CAAC,iBAAiB,CACrD,aAAgE,CACnE,CAAA;IAED,OAAO,aAAwD,CAAA;AACnE,CAAC;AA3BD,8CA2BC"}
|
package/_cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserOperationGasPrice = exports.isProviderSet = exports.getEncodedPluginsData = exports.KernelEIP1193Provider = exports.getCustomNonceKeyFromString = exports.verifyEIP6492Signature = exports.gasTokenAddresses = exports.constants = exports.TokenActionsAbi = exports.KernelFactoryStakerAbi = exports.KernelV3FactoryAbi = exports.KernelV3InitAbi = exports.KernelV3ExecuteAbi = exports.KernelV3AccountAbi = exports.KernelFactoryAbi = exports.KernelAccountAbi = exports.createFallbackKernelAccountClient = exports.createKernelAccountClient = exports.createZeroDevPaymasterClient = exports.kernelAccountClientActions = exports.zerodevPaymasterActions = exports.sponsorUserOperation = exports.EIP1271Abi = exports.addressToEmptyAccount = exports.KERNEL_ADDRESSES = exports.createKernelV2Account = exports.createKernelV1Account = exports.createKernelAccount = void 0;
|
|
3
|
+
exports.getUserOperationGasPrice = exports.setPimlicoAsProvider = exports.isProviderSet = exports.getEncodedPluginsData = exports.KernelEIP1193Provider = exports.getCustomNonceKeyFromString = exports.verifyEIP6492Signature = exports.gasTokenAddresses = exports.constants = exports.TokenActionsAbi = exports.KernelFactoryStakerAbi = exports.KernelV3FactoryAbi = exports.KernelV3InitAbi = exports.KernelV3ExecuteAbi = exports.KernelV3AccountAbi = exports.KernelFactoryAbi = exports.KernelAccountAbi = exports.createFallbackKernelAccountClient = exports.createKernelAccountClient = exports.createZeroDevPaymasterClient = exports.kernelAccountClientActions = exports.zerodevPaymasterActions = exports.sponsorUserOperation = exports.EIP1271Abi = exports.addressToEmptyAccount = exports.KERNEL_ADDRESSES = exports.createKernelV2Account = exports.createKernelV1Account = exports.createKernelAccount = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var index_js_1 = require("./accounts/index.js");
|
|
6
6
|
Object.defineProperty(exports, "createKernelAccount", { enumerable: true, get: function () { return index_js_1.createKernelAccount; } });
|
|
@@ -47,6 +47,7 @@ var getEncodedPluginsData_js_1 = require("./accounts/kernel/utils/plugins/ep0_7/
|
|
|
47
47
|
Object.defineProperty(exports, "getEncodedPluginsData", { enumerable: true, get: function () { return getEncodedPluginsData_js_1.getEncodedPluginsData; } });
|
|
48
48
|
var utils_js_1 = require("./clients/utils.js");
|
|
49
49
|
Object.defineProperty(exports, "isProviderSet", { enumerable: true, get: function () { return utils_js_1.isProviderSet; } });
|
|
50
|
+
Object.defineProperty(exports, "setPimlicoAsProvider", { enumerable: true, get: function () { return utils_js_1.setPimlicoAsProvider; } });
|
|
50
51
|
var getUserOperationGasPrice_js_1 = require("./actions/account-client/getUserOperationGasPrice.js");
|
|
51
52
|
Object.defineProperty(exports, "getUserOperationGasPrice", { enumerable: true, get: function () { return getUserOperationGasPrice_js_1.getUserOperationGasPrice; } });
|
|
52
53
|
//# sourceMappingURL=index.js.map
|
package/_cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,gDAQ4B;AAPxB,+GAAA,mBAAmB,OAAA;AACnB,iHAAA,qBAAqB,OAAA;AACrB,iHAAA,qBAAqB,OAAA;AAErB,4GAAA,gBAAgB,OAAA;AAChB,iHAAA,qBAAqB,OAAA;AACrB,sGAAA,UAAU,OAAA;AAEd,uFAIoD;AAHhD,+HAAA,oBAAoB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,gDAQ4B;AAPxB,+GAAA,mBAAmB,OAAA;AACnB,iHAAA,qBAAqB,OAAA;AACrB,iHAAA,qBAAqB,OAAA;AAErB,4GAAA,gBAAgB,OAAA;AAChB,iHAAA,qBAAqB,OAAA;AACrB,sGAAA,UAAU,OAAA;AAEd,uFAIoD;AAHhD,+HAAA,oBAAoB,OAAA;AAKxB,4DAKuC;AAJnC,oHAAA,uBAAuB,OAAA;AAEvB,uHAAA,0BAA0B,OAAA;AAG9B,mEAGqC;AAFjC,kIAAA,4BAA4B,OAAA;AAGhC,2EAGyC;AAFrC,mIAAA,yBAAyB,OAAA;AAG7B,2FAA4F;AAAnF,mJAAA,iCAAiC,OAAA;AAO1C,iFAA4E;AAAnE,uHAAA,gBAAgB,OAAA;AACzB,iFAA4E;AAAnE,uHAAA,gBAAgB,OAAA;AACzB,gGAIiE;AAH7D,yHAAA,kBAAkB,OAAA;AAClB,yHAAA,kBAAkB,OAAA;AAClB,sHAAA,eAAe,OAAA;AAEnB,gGAA6F;AAApF,yHAAA,kBAAkB,OAAA;AAC3B,4GAAuG;AAA9F,mIAAA,sBAAsB,OAAA;AAC/B,+EAA0E;AAAjE,qHAAA,eAAe,OAAA;AACxB,8CAA2C;AAC3C,qDAA0B;AAC1B,+DAAgF;AAAvE,yHAAA,iBAAiB,OAAA;AAC1B,sDAGkC;AAF9B,kHAAA,sBAAsB,OAAA;AACtB,uHAAA,2BAA2B,OAAA;AAE/B,iDAA4D;AAAnD,iHAAA,qBAAqB,OAAA;AAC9B,2GAAsG;AAA7F,iIAAA,qBAAqB,OAAA;AAC9B,+CAAwE;AAA/D,yGAAA,aAAa,OAAA;AAAE,gHAAA,oBAAoB,OAAA;AAC5C,oGAA+F;AAAtF,uIAAA,wBAAwB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperation.js","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"signUserOperation.js","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AAWjF,OAAO,EACH,4BAA4B,EAC5B,YAAY,EACf,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAYtC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAQnC,MAA4C,EAC5C,IAAiE;IAEjE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAA;IACnD,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,4BAA4B,EAAE,CAAA;IAEvD,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAA6B,CAAA;IAElE,MAAM,aAAa,GAAG,MAAM,SAAS,CACjC,MAAM,EACN,CAAA,2BAAqE,CAAA,EACrE,6BAA6B,CAChC,CAAC,IAAI,CAAC,CAAA;IAEP,aAAa,CAAC,SAAS,GAAG,MAAM,OAAO,CAAC,iBAAiB,CACrD,aAAgE,CACnE,CAAA;IAED,OAAO,aAAwD,CAAA;AACnE,CAAC"}
|
package/_esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { createKernelAccount, createKernelV1Account, createKernelV2Account, KERNEL_ADDRESSES, addressToEmptyAccount, EIP1271Abi } from "./accounts/index.js";
|
|
2
2
|
export { sponsorUserOperation } from "./actions/paymaster/sponsorUserOperation.js";
|
|
3
|
+
export {} from "./clients/kernelAccountClient.js";
|
|
3
4
|
export { zerodevPaymasterActions, kernelAccountClientActions } from "./clients/decorators/kernel.js";
|
|
4
5
|
export { createZeroDevPaymasterClient } from "./clients/paymasterClient.js";
|
|
5
6
|
export { createKernelAccountClient } from "./clients/kernelAccountClient.js";
|
|
@@ -18,6 +19,6 @@ export { gasTokenAddresses } from "./gasTokenAddresses.js";
|
|
|
18
19
|
export { verifyEIP6492Signature, getCustomNonceKeyFromString } from "./accounts/utils/index.js";
|
|
19
20
|
export { KernelEIP1193Provider } from "./providers/index.js";
|
|
20
21
|
export { getEncodedPluginsData } from "./accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js";
|
|
21
|
-
export { isProviderSet } from "./clients/utils.js";
|
|
22
|
+
export { isProviderSet, setPimlicoAsProvider } from "./clients/utils.js";
|
|
22
23
|
export { getUserOperationGasPrice } from "./actions/account-client/getUserOperationGasPrice.js";
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
package/_esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EAErB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EAGvB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACH,uBAAuB,EAEvB,0BAA0B,EAE7B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,4BAA4B,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,yBAAyB,EAE5B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,EAKN,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAClB,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;6BAC/C,gBAAgB;wBAA/B,SAAS;AACrB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAwB,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACH,sBAAsB,EACtB,2BA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B,EAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AACtG,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { SmartAccount } from "permissionless/accounts/types";
|
|
2
|
-
import {
|
|
3
|
-
import type { EntryPoint,
|
|
2
|
+
import type { PrepareUserOperationRequestParameters, PrepareUserOperationRequestReturnType } from "permissionless/actions/smartAccount/prepareUserOperationRequest";
|
|
3
|
+
import type { EntryPoint, Prettify } from "permissionless/types";
|
|
4
4
|
import type { Chain, Client, Transport } from "viem";
|
|
5
|
-
export type SignUserOperationParameters<entryPoint extends EntryPoint, TAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined> =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export type SignUserOperationReturnType = UserOperation<"v0.6">;
|
|
9
|
-
export declare function signUserOperation<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TAccount>, args: Prettify<SignUserOperationParameters<entryPoint, TAccount>>): Promise<SignUserOperationReturnType>;
|
|
5
|
+
export type SignUserOperationParameters<entryPoint extends EntryPoint, TAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined> = PrepareUserOperationRequestParameters<entryPoint, TAccount>;
|
|
6
|
+
export type SignUserOperationReturnType<entryPoint extends EntryPoint> = PrepareUserOperationRequestReturnType<entryPoint>;
|
|
7
|
+
export declare function signUserOperation<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TAccount>, args: Prettify<SignUserOperationParameters<entryPoint, TAccount>>): Promise<SignUserOperationReturnType<entryPoint>>;
|
|
10
8
|
//# sourceMappingURL=signUserOperation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EACR,qCAAqC,EACrC,qCAAqC,EACxC,MAAM,iEAAiE,CAAA;AACxE,OAAO,KAAK,EACR,UAAU,EAEV,QAAQ,EAEX,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAGpD,MAAM,MAAM,2BAA2B,CACnC,UAAU,SAAS,UAAU,EAC7B,QAAQ,SAAS,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,GAC/C,YAAY,CAAC,UAAU,CAAC,GACxB,SAAS,IACf,qCAAqC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;AAE/D,MAAM,MAAM,2BAA2B,CAAC,UAAU,SAAS,UAAU,IACjE,qCAAqC,CAAC,UAAU,CAAC,CAAA;AAErD,wBAAsB,iBAAiB,CACnC,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,GAC/C,YAAY,CAAC,UAAU,CAAC,GACxB,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,2BAA2B,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,GAClE,OAAO,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC,CAiBlD"}
|
|
@@ -23,7 +23,7 @@ export type KernelAccountClientActions<entryPoint extends EntryPoint, TChain ext
|
|
|
23
23
|
* @param args - Parameters for the signUserOperation function
|
|
24
24
|
* @returns A promise that resolves to the result of the signUserOperation function
|
|
25
25
|
*/
|
|
26
|
-
signUserOperation: <TTransport extends Transport>(args: Parameters<typeof signUserOperation<entryPoint, TTransport, TChain, TSmartAccount>>[1]) => Promise<SignUserOperationReturnType
|
|
26
|
+
signUserOperation: <TTransport extends Transport>(args: Parameters<typeof signUserOperation<entryPoint, TTransport, TChain, TSmartAccount>>[1]) => Promise<SignUserOperationReturnType<entryPoint>>;
|
|
27
27
|
/**
|
|
28
28
|
* Returns the live gas prices that you can use to send a user operation.
|
|
29
29
|
*
|
|
@@ -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,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,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EACH,KAAK,kCAAkC,EAE1C,MAAM,0DAA0D,CAAA;AACjE,OAAO,KAAK,EAER,2BAA2B,EAC9B,MAAM,wBAAwB,CAAA;AAC/B,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S,SAAS,EAC5C,IAAI,EAAE,UAAU,CACZ,OAAO,iBAAiB,CACpB,UAAU,EACV,UAAU,EACV,MAAM,EACN,aAAa,CAChB,CACJ,CAAC,CAAC,CAAC,KACH,OAAO,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC,CAAA;IACrD;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,OAAO,CACnC,QAAQ,CAAC,kCAAkC,CAAC,CAC/C,CAAA;CACJ,CAAA;AAED,wBAAgB,0BAA0B,CAAC,UAAU,SAAS,UAAU,EAAE,EACtE,UAAU,EACb,EAAE,UAAU,CAAC,UAAU,CAAC,2TAqBxB"}
|
package/_types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { createKernelAccount, createKernelV1Account, createKernelV2Account, type KernelSmartAccount, KERNEL_ADDRESSES, addressToEmptyAccount, EIP1271Abi } from "./accounts/index.js";
|
|
2
2
|
export { sponsorUserOperation, type SponsorUserOperationParameters, type SponsorUserOperationReturnType } from "./actions/paymaster/sponsorUserOperation.js";
|
|
3
|
+
export { type SmartAccountClientConfig } from "./clients/kernelAccountClient.js";
|
|
3
4
|
export { zerodevPaymasterActions, type ZeroDevPaymasterClientActions, kernelAccountClientActions, type KernelAccountClientActions } from "./clients/decorators/kernel.js";
|
|
4
5
|
export { createZeroDevPaymasterClient, type ZeroDevPaymasterClient } from "./clients/paymasterClient.js";
|
|
5
6
|
export { createKernelAccountClient, type KernelAccountClient } from "./clients/kernelAccountClient.js";
|
|
@@ -17,6 +18,6 @@ export { gasTokenAddresses, type TokenSymbolsMap } from "./gasTokenAddresses.js"
|
|
|
17
18
|
export { verifyEIP6492Signature, getCustomNonceKeyFromString } from "./accounts/utils/index.js";
|
|
18
19
|
export { KernelEIP1193Provider } from "./providers/index.js";
|
|
19
20
|
export { getEncodedPluginsData } from "./accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js";
|
|
20
|
-
export { isProviderSet } from "./clients/utils.js";
|
|
21
|
+
export { isProviderSet, setPimlicoAsProvider } from "./clients/utils.js";
|
|
21
22
|
export { getUserOperationGasPrice } from "./actions/account-client/getUserOperationGasPrice.js";
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACtC,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACH,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,0BAA0B,EAC1B,KAAK,0BAA0B,EAClC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,4BAA4B,EAC5B,KAAK,sBAAsB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,EAC3B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACd,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAClB,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AACvG,OAAO,EAAE,eAAe,E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AAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAClB,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACH,sBAAsB,EACtB,2BAA2B,EAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AACtG,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { SmartAccount } from "permissionless/accounts/types"
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { prepareUserOperationRequest } from "permissionless/actions/smartAccount"
|
|
3
|
+
import type {
|
|
4
|
+
PrepareUserOperationRequestParameters,
|
|
5
|
+
PrepareUserOperationRequestReturnType
|
|
6
|
+
} from "permissionless/actions/smartAccount/prepareUserOperationRequest"
|
|
6
7
|
import type {
|
|
7
8
|
EntryPoint,
|
|
8
|
-
GetAccountParameter,
|
|
9
9
|
GetEntryPointVersion,
|
|
10
|
-
PartialBy,
|
|
11
10
|
Prettify,
|
|
12
11
|
UserOperation
|
|
13
12
|
} from "permissionless/types"
|
|
@@ -23,24 +22,10 @@ export type SignUserOperationParameters<
|
|
|
23
22
|
TAccount extends SmartAccount<entryPoint> | undefined =
|
|
24
23
|
| SmartAccount<entryPoint>
|
|
25
24
|
| undefined
|
|
26
|
-
> =
|
|
27
|
-
userOperation: PartialBy<
|
|
28
|
-
UserOperation<"v0.6">,
|
|
29
|
-
| "nonce"
|
|
30
|
-
| "sender"
|
|
31
|
-
| "initCode"
|
|
32
|
-
| "signature"
|
|
33
|
-
| "callGasLimit"
|
|
34
|
-
| "maxFeePerGas"
|
|
35
|
-
| "maxPriorityFeePerGas"
|
|
36
|
-
| "preVerificationGas"
|
|
37
|
-
| "verificationGasLimit"
|
|
38
|
-
| "paymasterAndData"
|
|
39
|
-
>
|
|
40
|
-
} & GetAccountParameter<entryPoint, TAccount> &
|
|
41
|
-
Middleware<entryPoint>
|
|
25
|
+
> = PrepareUserOperationRequestParameters<entryPoint, TAccount>
|
|
42
26
|
|
|
43
|
-
export type SignUserOperationReturnType
|
|
27
|
+
export type SignUserOperationReturnType<entryPoint extends EntryPoint> =
|
|
28
|
+
PrepareUserOperationRequestReturnType<entryPoint>
|
|
44
29
|
|
|
45
30
|
export async function signUserOperation<
|
|
46
31
|
entryPoint extends EntryPoint,
|
|
@@ -52,7 +37,7 @@ export async function signUserOperation<
|
|
|
52
37
|
>(
|
|
53
38
|
client: Client<TTransport, TChain, TAccount>,
|
|
54
39
|
args: Prettify<SignUserOperationParameters<entryPoint, TAccount>>
|
|
55
|
-
): Promise<SignUserOperationReturnType
|
|
40
|
+
): Promise<SignUserOperationReturnType<entryPoint>> {
|
|
56
41
|
const { account: account_ = client.account } = args
|
|
57
42
|
if (!account_) throw new AccountOrClientNotFoundError()
|
|
58
43
|
|
|
@@ -68,5 +53,5 @@ export async function signUserOperation<
|
|
|
68
53
|
userOperation as UserOperation<GetEntryPointVersion<entryPoint>>
|
|
69
54
|
)
|
|
70
55
|
|
|
71
|
-
return userOperation as SignUserOperationReturnType
|
|
56
|
+
return userOperation as SignUserOperationReturnType<entryPoint>
|
|
72
57
|
}
|
package/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export {
|
|
|
12
12
|
type SponsorUserOperationParameters,
|
|
13
13
|
type SponsorUserOperationReturnType
|
|
14
14
|
} from "./actions/paymaster/sponsorUserOperation.js"
|
|
15
|
+
export { type SmartAccountClientConfig } from "./clients/kernelAccountClient.js"
|
|
15
16
|
export {
|
|
16
17
|
zerodevPaymasterActions,
|
|
17
18
|
type ZeroDevPaymasterClientActions,
|
|
@@ -52,5 +53,5 @@ export {
|
|
|
52
53
|
} from "./accounts/utils/index.js"
|
|
53
54
|
export { KernelEIP1193Provider } from "./providers/index.js"
|
|
54
55
|
export { getEncodedPluginsData } from "./accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js"
|
|
55
|
-
export { isProviderSet } from "./clients/utils.js"
|
|
56
|
+
export { isProviderSet, setPimlicoAsProvider } from "./clients/utils.js"
|
|
56
57
|
export { getUserOperationGasPrice } from "./actions/account-client/getUserOperationGasPrice.js"
|