@ensforge/core 0.0.0 → 0.1.1

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/README.md CHANGED
@@ -15,7 +15,7 @@ Type-safe actions and utilities for building ENS applications.
15
15
  ## Installation
16
16
 
17
17
  ```sh
18
- pnpm add @ensforge/core
18
+ pnpm add @ensforge/core effect@rc viem
19
19
  ```
20
20
 
21
21
  ## Overview
@@ -4,7 +4,7 @@ import { WalletError } from "../../errors/wallet-error.js";
4
4
  import { GetWalletCapabilitiesParameters, WalletCapabilitiesResult } from "../../write/types.js";
5
5
  import "../../index.js";
6
6
  //#region src/actions/batch/get-wallet-capabilities.d.ts
7
- declare const getWalletCapabilities: EnsAction<GetWalletCapabilitiesParameters, WalletCapabilitiesResult, ConfigError | WalletError>;
7
+ declare const getWalletCapabilities: EnsAction<GetWalletCapabilitiesParameters, WalletCapabilitiesResult, WalletError | ConfigError>;
8
8
  //#endregion
9
9
  export { getWalletCapabilities };
10
10
  //# sourceMappingURL=get-wallet-capabilities.d.ts.map
@@ -8,7 +8,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
8
8
  readonly wrapped: false;
9
9
  readonly migrated: false;
10
10
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
11
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
11
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
12
12
  readonly owner: `0x${string}` | null;
13
13
  readonly manager: `0x${string}` | null;
14
14
  readonly registrant: `0x${string}` | null;
@@ -26,7 +26,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
26
26
  readonly wrapped: false;
27
27
  readonly migrated: false;
28
28
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
29
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
29
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
30
30
  readonly owner: `0x${string}` | null;
31
31
  readonly manager: `0x${string}` | null;
32
32
  readonly registrant: `0x${string}` | null;
@@ -44,7 +44,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
44
44
  readonly wrapped: true;
45
45
  readonly migrated: false;
46
46
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
47
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
47
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
48
48
  readonly owner: `0x${string}` | null;
49
49
  readonly manager: `0x${string}` | null;
50
50
  readonly registrant: `0x${string}` | null;
@@ -62,7 +62,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
62
62
  readonly wrapped: boolean;
63
63
  readonly migrated: false;
64
64
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
65
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
65
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
66
66
  readonly owner: `0x${string}` | null;
67
67
  readonly manager: `0x${string}` | null;
68
68
  readonly registrant: `0x${string}` | null;
@@ -80,7 +80,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
80
80
  readonly wrapped: boolean;
81
81
  readonly migrated: true;
82
82
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
83
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
83
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
84
84
  readonly owner: `0x${string}` | null;
85
85
  readonly manager: `0x${string}` | null;
86
86
  readonly registrant: `0x${string}` | null;
@@ -98,7 +98,7 @@ declare const getNameState: EnsReadAction<GetNameStateParameters, {
98
98
  readonly wrapped: boolean;
99
99
  readonly migrated: false;
100
100
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
101
- readonly status: "available" | "reserved" | "active" | "grace" | "expired";
101
+ readonly status: "available" | "active" | "grace" | "expired" | "reserved";
102
102
  readonly owner: `0x${string}` | null;
103
103
  readonly manager: `0x${string}` | null;
104
104
  readonly registrant: `0x${string}` | null;
@@ -2,7 +2,7 @@ import { EnsReadAction } from "../../../action/read-request.js";
2
2
  import { GetNameStateError, GetNameStateParameters, NameStatus } from "../get-name-state/types.js";
3
3
  import "../../../index.js";
4
4
  //#region src/actions/name/get-name-status/index.d.ts
5
- declare const getNameStatus: EnsReadAction<GetNameStateParameters, "available" | "reserved" | "active" | "grace" | "expired", GetNameStateError>;
5
+ declare const getNameStatus: EnsReadAction<GetNameStateParameters, "available" | "active" | "grace" | "expired" | "reserved", GetNameStateError>;
6
6
  //#endregion
7
7
  export { type GetNameStateError as GetNameStatusError, type GetNameStateParameters as GetNameStatusParameters, type NameStatus as GetNameStatusResult, getNameStatus };
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -35,7 +35,7 @@ interface CreateWagmiConfigParameters extends SharedCreateConfigParameters {
35
35
  readonly walletClient?: never;
36
36
  }
37
37
  type CreateConfigParameters = CreateViemConfigParameters | CreateWagmiConfigParameters;
38
- /** Immutable, single-network configuration consumed by every Ensforge action. */
38
+ /** Immutable, single-network configuration consumed by every ensforge action. */
39
39
  interface EnsforgeConfig {
40
40
  readonly [EnsforgeConfigTypeId]: typeof EnsforgeConfigTypeId;
41
41
  readonly network: EnsNetwork;
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":[],"sources":["../../src/config/config.ts"],"sourcesContent":["import type { EnsV1Deployment, EnsV2Deployment } from \"@ensforge/contracts/deployments\";\nimport type { PublicClient, WalletClient } from \"viem\";\nimport type { Config as WagmiConfig } from \"wagmi\";\n\nimport type { EnsProtocol } from \"../schemas/protocol.js\";\nimport type { GatewayOptions, ResolvedGatewayOptions } from \"./gateway-options.js\";\nimport type { EnsChainId, EnsNetwork } from \"./network.js\";\nimport type { ReadOptions, ResolvedReadOptions } from \"./read-options.js\";\nimport type { ResolvedWriteOptions, WriteOptions } from \"./write-options.js\";\n\nexport const EnsforgeConfigTypeId: unique symbol = Symbol.for(\"@ensforge/core/EnsforgeConfig\");\n\nexport type EnsDeployment = EnsV1Deployment | EnsV2Deployment;\n\nexport type EnsDeploymentProfile =\n | {\n readonly protocol: Extract<EnsProtocol, \"v1\">;\n readonly v1: EnsV1Deployment;\n readonly v2?: never;\n }\n | {\n readonly protocol: Extract<EnsProtocol, \"v2\">;\n readonly v1?: EnsV1Deployment;\n readonly v2: EnsV2Deployment;\n };\n\ninterface SharedCreateConfigParameters {\n readonly network: EnsNetwork;\n readonly reads?: ReadOptions;\n readonly writes?: WriteOptions;\n readonly gateways?: GatewayOptions;\n}\n\nexport interface CreateViemConfigParameters extends SharedCreateConfigParameters {\n readonly publicClient: PublicClient;\n readonly walletClient?: WalletClient;\n readonly wagmiConfig?: never;\n}\n\nexport interface CreateWagmiConfigParameters extends SharedCreateConfigParameters {\n readonly wagmiConfig: WagmiConfig;\n readonly publicClient?: never;\n readonly walletClient?: never;\n}\n\nexport type CreateConfigParameters = CreateViemConfigParameters | CreateWagmiConfigParameters;\n\nexport type EnsRuntimeNetwork = EnsNetwork | \"devnet\";\nexport type EnsRuntimeChainId = EnsChainId | 31337;\n\n/** Immutable, single-network configuration consumed by every Ensforge action. */\nexport interface EnsforgeConfig {\n readonly [EnsforgeConfigTypeId]: typeof EnsforgeConfigTypeId;\n readonly network: EnsNetwork;\n readonly chainId: EnsChainId;\n readonly publicClient: PublicClient;\n readonly walletClient?: WalletClient;\n readonly reads: ResolvedReadOptions;\n readonly writes: ResolvedWriteOptions;\n readonly gateways: ResolvedGatewayOptions;\n readonly deployments: EnsDeploymentProfile;\n}\n"],"mappings":";AAUA,MAAa,uBAAsC,OAAO,IAAI,+BAA+B"}
1
+ {"version":3,"file":"config.js","names":[],"sources":["../../src/config/config.ts"],"sourcesContent":["import type { EnsV1Deployment, EnsV2Deployment } from \"@ensforge/contracts/deployments\";\nimport type { PublicClient, WalletClient } from \"viem\";\nimport type { Config as WagmiConfig } from \"wagmi\";\n\nimport type { EnsProtocol } from \"../schemas/protocol.js\";\nimport type { GatewayOptions, ResolvedGatewayOptions } from \"./gateway-options.js\";\nimport type { EnsChainId, EnsNetwork } from \"./network.js\";\nimport type { ReadOptions, ResolvedReadOptions } from \"./read-options.js\";\nimport type { ResolvedWriteOptions, WriteOptions } from \"./write-options.js\";\n\nexport const EnsforgeConfigTypeId: unique symbol = Symbol.for(\"@ensforge/core/EnsforgeConfig\");\n\nexport type EnsDeployment = EnsV1Deployment | EnsV2Deployment;\n\nexport type EnsDeploymentProfile =\n | {\n readonly protocol: Extract<EnsProtocol, \"v1\">;\n readonly v1: EnsV1Deployment;\n readonly v2?: never;\n }\n | {\n readonly protocol: Extract<EnsProtocol, \"v2\">;\n readonly v1?: EnsV1Deployment;\n readonly v2: EnsV2Deployment;\n };\n\ninterface SharedCreateConfigParameters {\n readonly network: EnsNetwork;\n readonly reads?: ReadOptions;\n readonly writes?: WriteOptions;\n readonly gateways?: GatewayOptions;\n}\n\nexport interface CreateViemConfigParameters extends SharedCreateConfigParameters {\n readonly publicClient: PublicClient;\n readonly walletClient?: WalletClient;\n readonly wagmiConfig?: never;\n}\n\nexport interface CreateWagmiConfigParameters extends SharedCreateConfigParameters {\n readonly wagmiConfig: WagmiConfig;\n readonly publicClient?: never;\n readonly walletClient?: never;\n}\n\nexport type CreateConfigParameters = CreateViemConfigParameters | CreateWagmiConfigParameters;\n\nexport type EnsRuntimeNetwork = EnsNetwork | \"devnet\";\nexport type EnsRuntimeChainId = EnsChainId | 31337;\n\n/** Immutable, single-network configuration consumed by every ensforge action. */\nexport interface EnsforgeConfig {\n readonly [EnsforgeConfigTypeId]: typeof EnsforgeConfigTypeId;\n readonly network: EnsNetwork;\n readonly chainId: EnsChainId;\n readonly publicClient: PublicClient;\n readonly walletClient?: WalletClient;\n readonly reads: ResolvedReadOptions;\n readonly writes: ResolvedWriteOptions;\n readonly gateways: ResolvedGatewayOptions;\n readonly deployments: EnsDeploymentProfile;\n}\n"],"mappings":";AAUA,MAAa,uBAAsC,OAAO,IAAI,+BAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensforge/core",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "Type-safe actions and utilities for ENS",
5
5
  "keywords": [
6
6
  "ens",
@@ -41,7 +41,7 @@
41
41
  "@ensdomains/content-hash": "3.1.1",
42
42
  "cborg": "6.1.1",
43
43
  "fflate": "0.8.3",
44
- "@ensforge/contracts": "0.0.0"
44
+ "@ensforge/contracts": "0.1.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "effect": "^4.0.0-rc.112",