@zerodev/sdk 5.4.27 → 5.4.28

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getKernelV3Nonce = exports.getPluginsEnableTypedData = exports.getActionSelector = exports.accountMetadata = exports.addressToEmptyAccount = exports.EIP1271Abi = exports.KernelFactoryV2Abi = exports.KernelAccountV2Abi = exports.createKernelAccountV0_2 = exports.createKernelAccountV1 = exports.KERNEL_ADDRESSES = exports.createKernelAccount = void 0;
3
+ exports.getPluginInstallCallData = exports.getKernelV3Nonce = exports.getPluginsEnableTypedData = exports.getActionSelector = exports.accountMetadata = exports.addressToEmptyAccount = exports.EIP1271Abi = exports.KernelFactoryV2Abi = exports.KernelAccountV2Abi = exports.createKernelAccountV0_2 = exports.createKernelAccountV1 = exports.KERNEL_ADDRESSES = exports.createKernelAccount = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var createKernelAccount_js_1 = require("./kernel/createKernelAccount.js");
6
6
  Object.defineProperty(exports, "createKernelAccount", { enumerable: true, get: function () { return createKernelAccount_js_1.createKernelAccount; } });
@@ -26,4 +26,6 @@ var getPluginsEnableTypedData_js_1 = require("./kernel/utils/plugins/ep0_7/getPl
26
26
  Object.defineProperty(exports, "getPluginsEnableTypedData", { enumerable: true, get: function () { return getPluginsEnableTypedData_js_1.getPluginsEnableTypedData; } });
27
27
  var getKernelV3Nonce_js_1 = require("./kernel/utils/account/ep0_7/getKernelV3Nonce.js");
28
28
  Object.defineProperty(exports, "getKernelV3Nonce", { enumerable: true, get: function () { return getKernelV3Nonce_js_1.getKernelV3Nonce; } });
29
+ var getPluginInstallCallData_js_1 = require("./kernel/utils/plugins/ep0_7/getPluginInstallCallData.js");
30
+ Object.defineProperty(exports, "getPluginInstallCallData", { enumerable: true, get: function () { return getPluginInstallCallData_js_1.getPluginInstallCallData; } });
29
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":";;;;AAAA,0EAMwC;AALpC,6HAAA,mBAAmB,OAAA;AAInB,0HAAA,gBAAgB,OAAA;AAEpB,iFAI6C;AAHzC,iIAAA,qBAAqB,OAAA;AAIzB,qFAAgF;AAAvE,qIAAA,uBAAuB,OAAA;AAChC,+EAA0E;AAAjE,2HAAA,kBAAkB,OAAA;AAC3B,+EAA0E;AAAjE,2HAAA,kBAAkB,OAAA;AAC3B,4DAAuD;AAA9C,2GAAA,UAAU,OAAA;AACnB,uEAAkE;AAAzD,iIAAA,qBAAqB,OAAA;AAC9B,2DAAgC;AAChC,+EAA0E;AAAjE,qHAAA,eAAe,OAAA;AACxB,mFAA8E;AAArE,yHAAA,iBAAiB,OAAA;AAC1B,0GAAqG;AAA5F,yIAAA,yBAAyB,OAAA;AAClC,wFAAmF;AAA1E,uHAAA,gBAAgB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":";;;;AAAA,0EAMwC;AALpC,6HAAA,mBAAmB,OAAA;AAInB,0HAAA,gBAAgB,OAAA;AAEpB,iFAI6C;AAHzC,iIAAA,qBAAqB,OAAA;AAIzB,qFAAgF;AAAvE,qIAAA,uBAAuB,OAAA;AAChC,+EAA0E;AAAjE,2HAAA,kBAAkB,OAAA;AAC3B,+EAA0E;AAAjE,2HAAA,kBAAkB,OAAA;AAC3B,4DAAuD;AAA9C,2GAAA,UAAU,OAAA;AACnB,uEAAkE;AAAzD,iIAAA,qBAAqB,OAAA;AAC9B,2DAAgC;AAChC,+EAA0E;AAAjE,qHAAA,eAAe,OAAA;AACxB,mFAA8E;AAArE,yHAAA,iBAAiB,OAAA;AAC1B,0GAAqG;AAA5F,yIAAA,yBAAyB,OAAA;AAClC,wFAAmF;AAA1E,uHAAA,gBAAgB,OAAA;AACzB,wGAAmG;AAA1F,uIAAA,wBAAwB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getUpgradeKernelCall.js","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAEzC,2DAAsE;AAEtE,mDAA0E;AAC1E,sFAAiF;AAEjF,SAAgB,oBAAoB,CAChC,OAAqB,EACrB,aAAkC;IAElC,IAAA,8CAAmC,EAC/B,OAAO,CAAC,UAAU,CAAC,OAAO,EAC1B,aAAa,CAChB,CAAA;IACD,MAAM,cAAc,GAChB,0CAA2B,CAAC,aAAa,CAAC,CAAC,4BAA4B,CAAA;IAE3E,OAAO;QACH,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,IAAI,EAAE,IAAA,yBAAkB,EAAC;YACrB,GAAG,EAAE,wCAAkB;YACvB,YAAY,EAAE,WAAW;YACzB,IAAI,EAAE,CAAC,cAAc,CAAC;SACzB,CAAC;QACF,KAAK,EAAE,EAAE;KACZ,CAAA;AACL,CAAC;AApBD,oDAoBC"}
1
+ {"version":3,"file":"getUpgradeKernelCall.js","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAEzC,2DAAsE;AAEtE,mDAA0E;AAC1E,sFAAiF;AAGjF,SAAgB,oBAAoB,CAChC,OAAqB,EACrB,aAAkC;IAElC,IAAA,8CAAmC,EAC/B,OAAO,CAAC,UAAU,CAAC,OAAO,EAC1B,aAAa,CAChB,CAAA;IACD,MAAM,cAAc,GAChB,0CAA2B,CAAC,aAAa,CAAC,CAAC,4BAA4B,CAAA;IAE3E,OAAO;QACH,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,IAAI,EAAE,IAAA,yBAAkB,EAAC;YACrB,GAAG,EAAE,wCAAkB;YACvB,YAAY,EAAE,WAAW;YACzB,IAAI,EAAE,CAAC,cAAc,CAAC;SACzB,CAAC;QACF,KAAK,EAAE,EAAE;KACZ,CAAA;AACL,CAAC;AApBD,oDAoBC"}
@@ -10,4 +10,5 @@ export { accountMetadata } from "./kernel/utils/common/accountMetadata.js";
10
10
  export { getActionSelector } from "./kernel/utils/common/getActionSelector.js";
11
11
  export { getPluginsEnableTypedData } from "./kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js";
12
12
  export { getKernelV3Nonce } from "./kernel/utils/account/ep0_7/getKernelV3Nonce.js";
13
+ export { getPluginInstallCallData } from "./kernel/utils/plugins/ep0_7/getPluginInstallCallData.js";
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAInB,gBAAgB,EACnB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACH,qBAAqB,EAGxB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAInB,gBAAgB,EACnB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACH,qBAAqB,EAGxB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getUpgradeKernelCall.js","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAA;AAEzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAEtE,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAEjF,MAAM,UAAU,oBAAoB,CAChC,OAAqB,EACrB,aAAkC;IAElC,mCAAmC,CAC/B,OAAO,CAAC,UAAU,CAAC,OAAO,EAC1B,aAAa,CAChB,CAAA;IACD,MAAM,cAAc,GAChB,2BAA2B,CAAC,aAAa,CAAC,CAAC,4BAA4B,CAAA;IAE3E,OAAO;QACH,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,IAAI,EAAE,kBAAkB,CAAC;YACrB,GAAG,EAAE,kBAAkB;YACvB,YAAY,EAAE,WAAW;YACzB,IAAI,EAAE,CAAC,cAAc,CAAC;SACzB,CAAC;QACF,KAAK,EAAE,EAAE;KACZ,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"getUpgradeKernelCall.js","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAA;AAEzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAEtE,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAGjF,MAAM,UAAU,oBAAoB,CAChC,OAAqB,EACrB,aAAkC;IAElC,mCAAmC,CAC/B,OAAO,CAAC,UAAU,CAAC,OAAO,EAC1B,aAAa,CAChB,CAAA;IACD,MAAM,cAAc,GAChB,2BAA2B,CAAC,aAAa,CAAC,CAAC,4BAA4B,CAAA;IAE3E,OAAO;QACH,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,IAAI,EAAE,kBAAkB,CAAC;YACrB,GAAG,EAAE,kBAAkB;YACvB,YAAY,EAAE,WAAW;YACzB,IAAI,EAAE,CAAC,cAAc,CAAC;SACzB,CAAC;QACF,KAAK,EAAE,EAAE;KACZ,CAAA;AACL,CAAC"}
@@ -10,4 +10,6 @@ export { accountMetadata } from "./kernel/utils/common/accountMetadata.js";
10
10
  export { getActionSelector } from "./kernel/utils/common/getActionSelector.js";
11
11
  export { getPluginsEnableTypedData } from "./kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js";
12
12
  export { getKernelV3Nonce } from "./kernel/utils/account/ep0_7/getKernelV3Nonce.js";
13
+ export { getPluginInstallCallData } from "./kernel/utils/plugins/ep0_7/getPluginInstallCallData.js";
14
+ export type { CallArgs, DelegateCallArgs } from "./kernel/utils/types.js";
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,gBAAgB,EACnB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACH,qBAAqB,EACrB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EAC1C,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,gBAAgB,EACnB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACH,qBAAqB,EACrB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EAC1C,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAA;AACnG,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,4 +1,5 @@
1
- import type { SmartAccount, UserOperationCall } from "viem/account-abstraction";
1
+ import type { SmartAccount } from "viem/account-abstraction";
2
2
  import type { KERNEL_VERSION_TYPE } from "../../../../types/kernel.js";
3
- export declare function getUpgradeKernelCall(account: SmartAccount, kernelVersion: KERNEL_VERSION_TYPE): UserOperationCall;
3
+ import type { CallArgs } from "../types.js";
4
+ export declare function getUpgradeKernelCall(account: SmartAccount, kernelVersion: KERNEL_VERSION_TYPE): CallArgs;
4
5
  //# sourceMappingURL=getUpgradeKernelCall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUpgradeKernelCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAItE,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,mBAAmB,GACnC,iBAAiB,CAiBnB"}
1
+ {"version":3,"file":"getUpgradeKernelCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/getUpgradeKernelCall.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,mBAAmB,GACnC,QAAQ,CAiBV"}
package/accounts/index.ts CHANGED
@@ -20,3 +20,5 @@ export { accountMetadata } from "./kernel/utils/common/accountMetadata.js"
20
20
  export { getActionSelector } from "./kernel/utils/common/getActionSelector.js"
21
21
  export { getPluginsEnableTypedData } from "./kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js"
22
22
  export { getKernelV3Nonce } from "./kernel/utils/account/ep0_7/getKernelV3Nonce.js"
23
+ export { getPluginInstallCallData } from "./kernel/utils/plugins/ep0_7/getPluginInstallCallData.js"
24
+ export type { CallArgs, DelegateCallArgs } from "./kernel/utils/types.js"
@@ -1,14 +1,15 @@
1
1
  import { encodeFunctionData } from "viem"
2
- import type { SmartAccount, UserOperationCall } from "viem/account-abstraction"
2
+ import type { SmartAccount } from "viem/account-abstraction"
3
3
  import { KernelVersionToAddressesMap } from "../../../../constants.js"
4
4
  import type { KERNEL_VERSION_TYPE } from "../../../../types/kernel.js"
5
5
  import { validateKernelVersionWithEntryPoint } from "../../../../utils.js"
6
6
  import { KernelV3AccountAbi } from "../../abi/kernel_v_3_0_0/KernelAccountAbi.js"
7
+ import type { CallArgs } from "../types.js"
7
8
 
8
9
  export function getUpgradeKernelCall(
9
10
  account: SmartAccount,
10
11
  kernelVersion: KERNEL_VERSION_TYPE
11
- ): UserOperationCall {
12
+ ): CallArgs {
12
13
  validateKernelVersionWithEntryPoint(
13
14
  account.entryPoint.version,
14
15
  kernelVersion
package/package.json CHANGED
@@ -1,109 +1,130 @@
1
1
  {
2
- "name": "@zerodev/sdk",
3
- "version": "5.4.27",
4
- "author": "ZeroDev",
5
- "main": "./_cjs/index.js",
6
- "module": "./_esm/index.js",
7
- "types": "./_types/index.d.ts",
8
- "typings": "./_types/index.d.ts",
9
- "sideEffects": false,
10
- "description": "A utility library for working with ERC-4337",
11
- "keywords": ["ethereum", "erc-4337", "eip-4337", "paymaster", "bundler"],
12
- "license": "MIT",
13
- "files": [
14
- "_esm",
15
- "_cjs",
16
- "_types",
17
- "./**/*.ts",
18
- "!_esm/**/*.tsbuildinfo",
19
- "!_cjs/**/*.tsbuildinfo",
20
- "!_types/**/*.tsbuildinfo",
21
- "!.env",
22
- "!./**/*.test.ts",
23
- "!.changeset"
24
- ],
25
- "scripts": {
26
- "build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
27
- "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_cjs/package.json",
28
- "build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
29
- "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
30
- "clean": "rimraf _esm _cjs _types",
31
- "changeset": "changeset",
32
- "changeset:release": "bun run build && changeset publish",
33
- "changeset:version": "changeset version && bun install --lockfile-only",
34
- "format": "biome format . --write",
35
- "lint": "biome check .",
36
- "lint:fix": "bun run lint --apply"
2
+ "name": "@zerodev/sdk",
3
+ "version": "5.4.28",
4
+ "author": "ZeroDev",
5
+ "main": "./_cjs/index.js",
6
+ "module": "./_esm/index.js",
7
+ "types": "./_types/index.d.ts",
8
+ "typings": "./_types/index.d.ts",
9
+ "sideEffects": false,
10
+ "description": "A utility library for working with ERC-4337",
11
+ "keywords": [
12
+ "ethereum",
13
+ "erc-4337",
14
+ "eip-4337",
15
+ "paymaster",
16
+ "bundler"
17
+ ],
18
+ "license": "MIT",
19
+ "files": [
20
+ "_esm",
21
+ "_cjs",
22
+ "_types",
23
+ "./**/*.ts",
24
+ "!_esm/**/*.tsbuildinfo",
25
+ "!_cjs/**/*.tsbuildinfo",
26
+ "!_types/**/*.tsbuildinfo",
27
+ "!.env",
28
+ "!./**/*.test.ts",
29
+ "!.changeset"
30
+ ],
31
+ "scripts": {
32
+ "build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
33
+ "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_cjs/package.json",
34
+ "build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
35
+ "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
36
+ "clean": "rimraf _esm _cjs _types",
37
+ "changeset": "changeset",
38
+ "changeset:release": "bun run build && changeset publish",
39
+ "changeset:version": "changeset version && bun install --lockfile-only",
40
+ "format": "biome format . --write",
41
+ "lint": "biome check .",
42
+ "lint:fix": "bun run lint --apply"
43
+ },
44
+ "exports": {
45
+ ".": {
46
+ "types": "./_types/index.d.ts",
47
+ "import": "./_esm/index.js",
48
+ "default": "./_cjs/index.js"
37
49
  },
38
- "exports": {
39
- ".": {
40
- "types": "./_types/index.d.ts",
41
- "import": "./_esm/index.js",
42
- "default": "./_cjs/index.js"
43
- },
44
- "./accounts": {
45
- "types": "./_types/accounts/index.d.ts",
46
- "import": "./_esm/accounts/index.js",
47
- "default": "./_cjs/accounts/index.js"
48
- },
49
- "./plugins": {
50
- "types": "./_types/plugins/index.d.ts",
51
- "import": "./_esm/plugins/index.js",
52
- "default": "./_cjs/plugins/index.js"
53
- },
54
- "./actions": {
55
- "types": "./_types/actions/index.d.ts",
56
- "import": "./_esm/actions/index.js",
57
- "default": "./_cjs/actions/index.js"
58
- },
59
- "./types": {
60
- "types": "./_types/types/index.d.ts",
61
- "import": "./_esm/types/index.js",
62
- "default": "./_cjs/types/index.js"
63
- },
64
- "./actions/kernel": {
65
- "types": "./_types/actions/kernel.d.ts",
66
- "import": "./_esm/actions/kernel.js",
67
- "default": "./_cjs/actions/kernel.js"
68
- },
69
- "./clients": {
70
- "types": "./_types/clients/index.d.ts",
71
- "import": "./_esm/clients/index.js",
72
- "default": "./_cjs/clients/index.js"
73
- },
74
- "./clients/kernel": {
75
- "types": "./_types/clients/kernel.d.ts",
76
- "import": "./_esm/clients/kernel.js",
77
- "default": "./_cjs/clients/kernel.js"
78
- },
79
- "./providers": {
80
- "types": "./_types/providers/index.d.ts",
81
- "import": "./_esm/providers/index.js",
82
- "default": "./_cjs/providers/index.js"
83
- },
84
- "./constants": {
85
- "types": "./_types/constants.d.ts",
86
- "import": "./_esm/constants.js",
87
- "default": "./_cjs/constants.js"
88
- }
50
+ "./accounts": {
51
+ "types": "./_types/accounts/index.d.ts",
52
+ "import": "./_esm/accounts/index.js",
53
+ "default": "./_cjs/accounts/index.js"
89
54
  },
90
- "typesVersions": {
91
- "*": {
92
- "accounts": ["./_types/accounts/index.d.ts"],
93
- "plugins": ["./_types/plugins/index.d.ts"],
94
- "actions": ["./_types/actions/index.d.ts"],
95
- "types": ["./_types/types/index.d.ts"],
96
- "actions/kernel": ["./_types/actions/kernel/index.d.ts"],
97
- "clients": ["./_types/clients/index.d.ts"],
98
- "clients/kernel": ["./_types/clients/kernel/index.d.ts"],
99
- "providers": ["./_types/providers/index.d.ts"]
100
- }
55
+ "./plugins": {
56
+ "types": "./_types/plugins/index.d.ts",
57
+ "import": "./_esm/plugins/index.js",
58
+ "default": "./_cjs/plugins/index.js"
101
59
  },
102
- "peerDependencies": {
103
- "viem": "^2.21.40"
60
+ "./actions": {
61
+ "types": "./_types/actions/index.d.ts",
62
+ "import": "./_esm/actions/index.js",
63
+ "default": "./_cjs/actions/index.js"
104
64
  },
105
- "dependencies": {
106
- "semver": "^7.6.0"
65
+ "./types": {
66
+ "types": "./_types/types/index.d.ts",
67
+ "import": "./_esm/types/index.js",
68
+ "default": "./_cjs/types/index.js"
107
69
  },
108
- "type": "module"
70
+ "./actions/kernel": {
71
+ "types": "./_types/actions/kernel.d.ts",
72
+ "import": "./_esm/actions/kernel.js",
73
+ "default": "./_cjs/actions/kernel.js"
74
+ },
75
+ "./clients": {
76
+ "types": "./_types/clients/index.d.ts",
77
+ "import": "./_esm/clients/index.js",
78
+ "default": "./_cjs/clients/index.js"
79
+ },
80
+ "./clients/kernel": {
81
+ "types": "./_types/clients/kernel.d.ts",
82
+ "import": "./_esm/clients/kernel.js",
83
+ "default": "./_cjs/clients/kernel.js"
84
+ },
85
+ "./providers": {
86
+ "types": "./_types/providers/index.d.ts",
87
+ "import": "./_esm/providers/index.js",
88
+ "default": "./_cjs/providers/index.js"
89
+ },
90
+ "./constants": {
91
+ "types": "./_types/constants.d.ts",
92
+ "import": "./_esm/constants.js",
93
+ "default": "./_cjs/constants.js"
94
+ }
95
+ },
96
+ "typesVersions": {
97
+ "*": {
98
+ "accounts": [
99
+ "./_types/accounts/index.d.ts"
100
+ ],
101
+ "plugins": [
102
+ "./_types/plugins/index.d.ts"
103
+ ],
104
+ "actions": [
105
+ "./_types/actions/index.d.ts"
106
+ ],
107
+ "types": [
108
+ "./_types/types/index.d.ts"
109
+ ],
110
+ "actions/kernel": [
111
+ "./_types/actions/kernel/index.d.ts"
112
+ ],
113
+ "clients": [
114
+ "./_types/clients/index.d.ts"
115
+ ],
116
+ "clients/kernel": [
117
+ "./_types/clients/kernel/index.d.ts"
118
+ ],
119
+ "providers": [
120
+ "./_types/providers/index.d.ts"
121
+ ]
122
+ }
123
+ },
124
+ "peerDependencies": {
125
+ "viem": "^2.23.15"
126
+ },
127
+ "dependencies": {
128
+ "semver": "^7.6.0"
129
+ }
109
130
  }