@armory-sh/client-viem 0.2.0 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ interface X402ClientConfig {
26
26
  domainVersion?: string;
27
27
  }
28
28
  interface X402Client {
29
- fetch: typeof fetch;
29
+ fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
30
30
  getAddress(): Address;
31
31
  createPayment(amount: string, to: Address, contractAddress: Address, chainId: number, expiry?: number): Promise<PaymentPayloadV1 | PaymentPayloadV2>;
32
32
  signPayment<T extends PaymentPayloadV1 | PaymentPayloadV2>(payload: Omit<T, "signature" | "v" | "r" | "s">): Promise<T>;
@@ -53,7 +53,7 @@ interface PaymentResult {
53
53
  }
54
54
 
55
55
  declare const createX402Client: (config: X402ClientConfig) => X402Client;
56
- declare const createX402Transport: (config: X402TransportConfig) => typeof fetch;
56
+ declare const createX402Transport: (config: X402TransportConfig) => (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
57
57
 
58
58
  declare class X402ClientError extends Error {
59
59
  readonly cause?: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armory-sh/client-viem",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "author": "Sawyer Cutler <sawyer@dirtroad.dev>",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "directory": "packages/client-viem"
28
28
  },
29
29
  "dependencies": {
30
- "@armory-sh/base": "workspace:*",
30
+ "@armory-sh/base": "0.2.2",
31
31
  "viem": "2.45.0"
32
32
  },
33
33
  "devDependencies": {