@ensforge/core 0.1.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 +1 -1
- package/dist/actions/batch/get-wallet-capabilities.d.ts +1 -1
- package/dist/actions/migration/get-migration-eligibility/index.d.ts +1 -1
- package/dist/actions/migration/get-migration-plan/index.d.ts +2 -2
- package/dist/actions/name/get-name-state/index.d.ts +6 -6
- package/dist/actions/name/get-name-status/index.d.ts +1 -1
- package/dist/config/config.d.ts +1 -1
- package/dist/config/config.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -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,
|
|
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
|
|
@@ -64,7 +64,7 @@ declare const getMigrationEligibility: EnsReadAction<GetMigrationEligibilityPara
|
|
|
64
64
|
readonly account: `0x${string}`;
|
|
65
65
|
readonly owner: `0x${string}` | null;
|
|
66
66
|
readonly authorized: boolean;
|
|
67
|
-
readonly blockers: readonly ("
|
|
67
|
+
readonly blockers: readonly ("ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED" | "PARENT_NOT_MIGRATED" | "NAME_ALREADY_MIGRATED" | "NAME_AVAILABLE" | "ACCOUNT_NOT_OWNER_OR_OPERATOR" | "INVALID_WRAPPER_STATE" | "FROZEN_TOKEN_APPROVAL" | "TRANSFER_DISABLED")[];
|
|
68
68
|
}, GetNameStateError>;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { type MigrationReadError as GetMigrationEligibilityError, GetMigrationEligibilityParameters, getMigrationEligibility };
|
|
@@ -14,7 +14,7 @@ type GetMigrationPlanParameters = MigrationNameParameters & {
|
|
|
14
14
|
declare const getMigrationPlan: EnsReadAction<GetMigrationPlanParameters, {
|
|
15
15
|
readonly status: "unsupported";
|
|
16
16
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
|
-
readonly blockers: readonly ("
|
|
17
|
+
readonly blockers: readonly ("ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED" | "PARENT_NOT_MIGRATED" | "NAME_ALREADY_MIGRATED" | "NAME_AVAILABLE" | "ACCOUNT_NOT_OWNER_OR_OPERATOR" | "INVALID_WRAPPER_STATE" | "FROZEN_TOKEN_APPROVAL" | "TRANSFER_DISABLED")[];
|
|
18
18
|
} | {
|
|
19
19
|
readonly status: "not-required";
|
|
20
20
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
@@ -22,7 +22,7 @@ declare const getMigrationPlan: EnsReadAction<GetMigrationPlanParameters, {
|
|
|
22
22
|
} | {
|
|
23
23
|
readonly status: "blocked";
|
|
24
24
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
25
|
-
readonly blockers: readonly ("
|
|
25
|
+
readonly blockers: readonly ("ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED" | "PARENT_NOT_MIGRATED" | "NAME_ALREADY_MIGRATED" | "NAME_AVAILABLE" | "ACCOUNT_NOT_OWNER_OR_OPERATOR" | "INVALID_WRAPPER_STATE" | "FROZEN_TOKEN_APPROVAL" | "TRANSFER_DISABLED")[];
|
|
26
26
|
} | {
|
|
27
27
|
readonly status: "authorization-required";
|
|
28
28
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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
|
package/dist/config/config.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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.1.
|
|
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.1.
|
|
44
|
+
"@ensforge/contracts": "0.1.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"effect": "^4.0.0-rc.112",
|