@alchemy/aa-infra 0.0.0-alpha.21 → 0.0.0-alpha.22

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Alchemy Insights, Inc.
3
+ Copyright (c) 2026 Alchemy Insights, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # @alchemy/aa-infra
2
+
3
+ Alchemy Account Abstraction infrastructure utilities. Provides Rundler-specific fee estimation and RPC types for use with viem's bundler client.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @alchemy/aa-infra @alchemy/common viem
9
+ ```
10
+
11
+ ## Key Exports
12
+
13
+ - **`estimateFeesPerGas`** - Custom fee estimation using Alchemy's `rundler_maxPriorityFeePerGas` RPC method. Pass this as `userOperation.estimateFeesPerGas` when creating a viem `BundlerClient` pointed at Alchemy's Rundler.
14
+ - **`RundlerClient`** / **`RundlerRpcSchema`** - TypeScript types extending viem's `BundlerClient` with Rundler-specific RPC methods
15
+
16
+ ## Usage
17
+
18
+ ```ts
19
+ import { estimateFeesPerGas } from "@alchemy/aa-infra";
20
+ import { createBundlerClient } from "viem/account-abstraction";
21
+ import { sepolia } from "viem/chains";
22
+ import { alchemyTransport } from "@alchemy/common";
23
+
24
+ const bundlerClient = createBundlerClient({
25
+ chain: sepolia,
26
+ transport: alchemyTransport({ apiKey: "YOUR_API_KEY" }),
27
+ userOperation: {
28
+ estimateFeesPerGas,
29
+ },
30
+ });
31
+ ```
32
+
33
+ ## License
34
+
35
+ MIT
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.0-alpha.20";
1
+ export declare const VERSION = "0.0.0-alpha.21";
@@ -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 = "0.0.0-alpha.20";
3
+ export const VERSION = "0.0.0-alpha.21";
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,gBAAgB,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"0.0.0-alpha.20\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"0.0.0-alpha.21\";\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.0-alpha.20";
1
+ export declare const VERSION = "0.0.0-alpha.21";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy/aa-infra",
3
- "version": "0.0.0-alpha.21",
3
+ "version": "0.0.0-alpha.22",
4
4
  "description": "Alchemy Account Abstraction Infrastructure",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -34,7 +34,6 @@
34
34
  "build": "yarn clean && yarn build:esm && yarn build:types",
35
35
  "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
36
36
  "build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
37
- "fern:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../docs/pages/reference/alchemy/aa-infra",
38
37
  "clean": "rm -rf ./dist",
39
38
  "test": "vitest",
40
39
  "test:run": "vitest run"
@@ -43,7 +42,7 @@
43
42
  "typescript-template": "*"
44
43
  },
45
44
  "dependencies": {
46
- "@alchemy/common": "^0.0.0-alpha.21",
45
+ "@alchemy/common": "^0.0.0-alpha.22",
47
46
  "viem": "^2.44.2"
48
47
  },
49
48
  "publishConfig": {
@@ -58,5 +57,5 @@
58
57
  "url": "https://github.com/alchemyplatform/aa-sdk/issues"
59
58
  },
60
59
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
61
- "gitHead": "b253d0ee34fcb723a72d594d56b484188ac6867b"
60
+ "gitHead": "10e989504f15718c4c6b66e6856e509dfb3e6cfe"
62
61
  }
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 = "0.0.0-alpha.21";
3
+ export const VERSION = "0.0.0-alpha.22";