@alchemy/common 0.0.0-alpha.21 → 0.0.0-alpha.23

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,36 @@
1
+ # @alchemy/common
2
+
3
+ Shared foundation for the Alchemy Smart Wallets SDK. Provides the core interfaces and utilities used by all other `@alchemy/*` packages.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @alchemy/common viem
9
+ ```
10
+
11
+ ## Key Exports
12
+
13
+ - **`alchemyTransport`** - viem-compatible HTTP transport for Alchemy APIs (supports API key, JWT, or direct URL auth)
14
+ - **Chain registry** - `getAlchemyRpcUrl`, `isChainSupported`, `getSupportedChainIds`
15
+ - **Custom chain definitions** (via `@alchemy/common/chains`) - chains not yet in viem
16
+ - **`AlchemyRestClient`** - typed REST client for non-JSON-RPC Alchemy APIs
17
+ - **Error classes** - `BaseError`, `ChainNotFoundError`, `AccountNotFoundError`, `ConnectionConfigError`, etc.
18
+ - **Logging** - `createLogger`, `setGlobalLoggerConfig`, `LogLevel`
19
+ - **Utilities** - `bigIntMultiply`, `bigIntMax`, `lowerAddress`, `assertNever`
20
+
21
+ ## Usage
22
+
23
+ ```ts
24
+ import { alchemyTransport } from "@alchemy/common";
25
+ import { sepolia } from "viem/chains";
26
+ import { createPublicClient } from "viem";
27
+
28
+ const client = createPublicClient({
29
+ chain: sepolia,
30
+ transport: alchemyTransport({ apiKey: "YOUR_API_KEY" }),
31
+ });
32
+ ```
33
+
34
+ ## License
35
+
36
+ MIT
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.0-alpha.20";
1
+ export declare const VERSION = "0.0.0-alpha.22";
@@ -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.22";
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.22\";\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.0-alpha.20";
1
+ export declare const VERSION = "0.0.0-alpha.22";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy/common",
3
- "version": "0.0.0-alpha.21",
3
+ "version": "0.0.0-alpha.23",
4
4
  "description": "A collection of interfaces and utilities to be used by other Alchemy packages",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -61,5 +61,5 @@
61
61
  "url": "https://github.com/alchemyplatform/aa-sdk/issues"
62
62
  },
63
63
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
64
- "gitHead": "b253d0ee34fcb723a72d594d56b484188ac6867b"
64
+ "gitHead": "8763cd81e2e1c42ab39822e12a6093c6d4bc3fef"
65
65
  }
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.23";