@account-kit/infra 4.9.0 → 4.11.0

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.
@@ -4,13 +4,13 @@ import type { ClientMiddlewareConfig } from "@aa-sdk/core";
4
4
  *
5
5
  * @example
6
6
  * ```ts
7
- * import { sepolia, alchemyErc7677Middleware } from "@account-kit/infra";
7
+ * import { sepolia, alchemyGasManagerMiddleware } from "@account-kit/infra";
8
8
  * import { http } from "viem";
9
9
  *
10
10
  * const client = createSmartAccountClient({
11
11
  * transport: http("rpc-url"),
12
12
  * chain: sepolia,
13
- * ...alchemyErc7677Middleware("policyId")
13
+ * ...alchemyGasManagerMiddleware("policyId")
14
14
  * });
15
15
  * ```
16
16
  *
@@ -4,13 +4,13 @@ import { erc7677Middleware } from "@aa-sdk/core";
4
4
  *
5
5
  * @example
6
6
  * ```ts
7
- * import { sepolia, alchemyErc7677Middleware } from "@account-kit/infra";
7
+ * import { sepolia, alchemyGasManagerMiddleware } from "@account-kit/infra";
8
8
  * import { http } from "viem";
9
9
  *
10
10
  * const client = createSmartAccountClient({
11
11
  * transport: http("rpc-url"),
12
12
  * chain: sepolia,
13
- * ...alchemyErc7677Middleware("policyId")
13
+ * ...alchemyGasManagerMiddleware("policyId")
14
14
  * });
15
15
  * ```
16
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"gasManager.js","sourceRoot":"","sources":["../../../src/middleware/gasManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,OAAO,iBAAiB,CAAuB;QAC7C,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;KAChC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { ClientMiddlewareConfig } from \"@aa-sdk/core\";\nimport { erc7677Middleware } from \"@aa-sdk/core\";\n\n/**\n * Paymaster middleware factory that uses Alchemy's Gas Manager for sponsoring transactions.\n *\n * @example\n * ```ts\n * import { sepolia, alchemyErc7677Middleware } from \"@account-kit/infra\";\n * import { http } from \"viem\";\n *\n * const client = createSmartAccountClient({\n * transport: http(\"rpc-url\"),\n * chain: sepolia,\n * ...alchemyErc7677Middleware(\"policyId\")\n * });\n * ```\n *\n * @param {string} policyId the policyId for Alchemy's gas manager\n * @returns {Pick<ClientMiddlewareConfig, \"dummyPaymasterAndData\" | \"paymasterAndData\">} partial client middleware configuration containing `dummyPaymasterAndData` and `paymasterAndData`\n */\nexport function alchemyGasManagerMiddleware(\n policyId: string\n): Pick<ClientMiddlewareConfig, \"dummyPaymasterAndData\" | \"paymasterAndData\"> {\n return erc7677Middleware<{ policyId: string }>({\n context: { policyId: policyId },\n });\n}\n"]}
1
+ {"version":3,"file":"gasManager.js","sourceRoot":"","sources":["../../../src/middleware/gasManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,OAAO,iBAAiB,CAAuB;QAC7C,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;KAChC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { ClientMiddlewareConfig } from \"@aa-sdk/core\";\nimport { erc7677Middleware } from \"@aa-sdk/core\";\n\n/**\n * Paymaster middleware factory that uses Alchemy's Gas Manager for sponsoring transactions.\n *\n * @example\n * ```ts\n * import { sepolia, alchemyGasManagerMiddleware } from \"@account-kit/infra\";\n * import { http } from \"viem\";\n *\n * const client = createSmartAccountClient({\n * transport: http(\"rpc-url\"),\n * chain: sepolia,\n * ...alchemyGasManagerMiddleware(\"policyId\")\n * });\n * ```\n *\n * @param {string} policyId the policyId for Alchemy's gas manager\n * @returns {Pick<ClientMiddlewareConfig, \"dummyPaymasterAndData\" | \"paymasterAndData\">} partial client middleware configuration containing `dummyPaymasterAndData` and `paymasterAndData`\n */\nexport function alchemyGasManagerMiddleware(\n policyId: string\n): Pick<ClientMiddlewareConfig, \"dummyPaymasterAndData\" | \"paymasterAndData\"> {\n return erc7677Middleware<{ policyId: string }>({\n context: { policyId: policyId },\n });\n}\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "4.9.0";
1
+ export declare const VERSION = "4.11.0";
@@ -1,4 +1,4 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.9.0";
3
+ export const VERSION = "4.11.0";
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.9.0\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.11.0\";\n"]}
@@ -4,13 +4,13 @@ import type { ClientMiddlewareConfig } from "@aa-sdk/core";
4
4
  *
5
5
  * @example
6
6
  * ```ts
7
- * import { sepolia, alchemyErc7677Middleware } from "@account-kit/infra";
7
+ * import { sepolia, alchemyGasManagerMiddleware } from "@account-kit/infra";
8
8
  * import { http } from "viem";
9
9
  *
10
10
  * const client = createSmartAccountClient({
11
11
  * transport: http("rpc-url"),
12
12
  * chain: sepolia,
13
- * ...alchemyErc7677Middleware("policyId")
13
+ * ...alchemyGasManagerMiddleware("policyId")
14
14
  * });
15
15
  * ```
16
16
  *
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.9.0";
1
+ export declare const VERSION = "4.11.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@account-kit/infra",
3
- "version": "4.9.0",
3
+ "version": "4.11.0",
4
4
  "description": "adapters for @aa-sdk/core for interacting with alchemy services",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -45,8 +45,8 @@
45
45
  "vitest": "^2.0.4"
46
46
  },
47
47
  "dependencies": {
48
- "@aa-sdk/core": "^4.9.0",
49
- "@account-kit/logging": "^4.9.0",
48
+ "@aa-sdk/core": "^4.11.0",
49
+ "@account-kit/logging": "^4.11.0",
50
50
  "eventemitter3": "^5.0.1",
51
51
  "zod": "^3.22.4"
52
52
  },
@@ -65,7 +65,7 @@
65
65
  "url": "https://github.com/alchemyplatform/aa-sdk/issues"
66
66
  },
67
67
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
68
- "gitHead": "9cd4dc759879defa6ac90f1ae7f8a378d9d1666f",
68
+ "gitHead": "789a1db1e3cfdca61393d8328693dd9d1a4ebb0f",
69
69
  "optionalDependencies": {
70
70
  "alchemy-sdk": "^3.0.0"
71
71
  }
@@ -6,13 +6,13 @@ import { erc7677Middleware } from "@aa-sdk/core";
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
- * import { sepolia, alchemyErc7677Middleware } from "@account-kit/infra";
9
+ * import { sepolia, alchemyGasManagerMiddleware } from "@account-kit/infra";
10
10
  * import { http } from "viem";
11
11
  *
12
12
  * const client = createSmartAccountClient({
13
13
  * transport: http("rpc-url"),
14
14
  * chain: sepolia,
15
- * ...alchemyErc7677Middleware("policyId")
15
+ * ...alchemyGasManagerMiddleware("policyId")
16
16
  * });
17
17
  * ```
18
18
  *
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.9.0";
3
+ export const VERSION = "4.11.0";