@ensforge/react 0.1.0 → 0.2.0
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 +17 -10
- package/dist/atoms/batch.d.ts +6 -6
- package/dist/atoms/batch.d.ts.map +1 -1
- package/dist/atoms/capabilities.d.ts +23 -23
- package/dist/atoms/capabilities.d.ts.map +1 -1
- package/dist/atoms/dns.d.ts +16 -14
- package/dist/atoms/dns.d.ts.map +1 -1
- package/dist/atoms/events.d.ts +42 -42
- package/dist/atoms/events.d.ts.map +1 -1
- package/dist/atoms/generic.d.ts +8 -5
- package/dist/atoms/generic.d.ts.map +1 -1
- package/dist/atoms/generic.js.map +1 -1
- package/dist/atoms/migration.d.ts +6 -6
- package/dist/atoms/migration.d.ts.map +1 -1
- package/dist/atoms/name.d.ts +24 -24
- package/dist/atoms/name.d.ts.map +1 -1
- package/dist/atoms/ownership.d.ts +2 -2
- package/dist/atoms/ownership.d.ts.map +1 -1
- package/dist/atoms/query.d.ts +6 -11
- package/dist/atoms/query.d.ts.map +1 -1
- package/dist/atoms/query.js +14 -11
- package/dist/atoms/query.js.map +1 -1
- package/dist/atoms/records.d.ts +13 -13
- package/dist/atoms/records.d.ts.map +1 -1
- package/dist/atoms/registration.d.ts +41 -11
- package/dist/atoms/registration.d.ts.map +1 -1
- package/dist/atoms/resolution.d.ts +10 -10
- package/dist/atoms/resolution.d.ts.map +1 -1
- package/dist/atoms/reverse.d.ts +2 -2
- package/dist/atoms/reverse.d.ts.map +1 -1
- package/dist/atoms/stream.d.ts +2 -2
- package/dist/atoms/stream.d.ts.map +1 -1
- package/dist/atoms/stream.js +6 -4
- package/dist/atoms/stream.js.map +1 -1
- package/dist/atoms/wrapping.d.ts +3 -3
- package/dist/atoms/wrapping.d.ts.map +1 -1
- package/dist/atoms.d.ts +3 -2
- package/dist/atoms.js +3 -2
- package/dist/cache/invalidation.d.ts +5 -5
- package/dist/cache/invalidation.d.ts.map +1 -1
- package/dist/cache/invalidation.js +3 -3
- package/dist/cache/invalidation.js.map +1 -1
- package/dist/cache/prefetch.d.ts +5 -4
- package/dist/cache/prefetch.d.ts.map +1 -1
- package/dist/cache/prefetch.js +3 -3
- package/dist/cache/prefetch.js.map +1 -1
- package/dist/cache/registry.d.ts +3 -3
- package/dist/cache/registry.d.ts.map +1 -1
- package/dist/cache/registry.js +2 -2
- package/dist/cache/registry.js.map +1 -1
- package/dist/cache.d.ts +4 -4
- package/dist/cache.js +4 -4
- package/dist/hooks/batch.d.ts +13 -13
- package/dist/hooks/batch.d.ts.map +1 -1
- package/dist/hooks/capabilities.d.ts +119 -119
- package/dist/hooks/capabilities.d.ts.map +1 -1
- package/dist/hooks/dns.d.ts +44 -40
- package/dist/hooks/dns.d.ts.map +1 -1
- package/dist/hooks/events.d.ts +132 -132
- package/dist/hooks/events.d.ts.map +1 -1
- package/dist/hooks/generic.d.ts +8 -6
- package/dist/hooks/generic.d.ts.map +1 -1
- package/dist/hooks/generic.js.map +1 -1
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/migration.d.ts +28 -28
- package/dist/hooks/migration.d.ts.map +1 -1
- package/dist/hooks/name.d.ts +77 -77
- package/dist/hooks/name.d.ts.map +1 -1
- package/dist/hooks/ownership.d.ts +5 -5
- package/dist/hooks/ownership.d.ts.map +1 -1
- package/dist/hooks/records.d.ts +70 -70
- package/dist/hooks/records.d.ts.map +1 -1
- package/dist/hooks/registration.d.ts +108 -48
- package/dist/hooks/registration.d.ts.map +1 -1
- package/dist/hooks/resolution.d.ts +35 -35
- package/dist/hooks/resolution.d.ts.map +1 -1
- package/dist/hooks/reverse.d.ts +9 -9
- package/dist/hooks/reverse.d.ts.map +1 -1
- package/dist/hooks/use-cache.d.ts +6 -6
- package/dist/hooks/use-cache.d.ts.map +1 -1
- package/dist/hooks/use-cache.js +4 -4
- package/dist/hooks/use-cache.js.map +1 -1
- package/dist/hooks/use-mutation.js +16 -31
- package/dist/hooks/use-mutation.js.map +1 -1
- package/dist/hooks/use-query.d.ts +6 -6
- package/dist/hooks/use-query.d.ts.map +1 -1
- package/dist/hooks/use-query.js +24 -52
- package/dist/hooks/use-query.js.map +1 -1
- package/dist/hooks/use-suspense-query.d.ts +9 -8
- package/dist/hooks/use-suspense-query.d.ts.map +1 -1
- package/dist/hooks/use-suspense-query.js +5 -5
- package/dist/hooks/use-suspense-query.js.map +1 -1
- package/dist/hooks/wrapping.d.ts +7 -7
- package/dist/hooks/wrapping.d.ts.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +7 -7
- package/dist/mutation/options.d.ts +9 -7
- package/dist/mutation/options.d.ts.map +1 -1
- package/dist/mutation/result.d.ts +8 -10
- package/dist/mutation/result.d.ts.map +1 -1
- package/dist/provider/context.d.ts +4 -2
- package/dist/provider/context.d.ts.map +1 -1
- package/dist/provider/context.js.map +1 -1
- package/dist/provider/ensforge-provider.d.ts +2 -1
- package/dist/provider/ensforge-provider.d.ts.map +1 -1
- package/dist/provider/ensforge-provider.js +2 -1
- package/dist/provider/ensforge-provider.js.map +1 -1
- package/dist/query/options.d.ts +27 -24
- package/dist/query/options.d.ts.map +1 -1
- package/dist/query/options.js +26 -12
- package/dist/query/options.js.map +1 -1
- package/dist/query/result.d.ts +7 -13
- package/dist/query/result.d.ts.map +1 -1
- package/dist/query/result.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UseEnsAtomParameters } from "../query/options.js";
|
|
2
|
+
import { EnsSuspenseAtomResult, UseEnsSuspenseAtomParameters } from "./use-suspense-query.js";
|
|
3
|
+
import { EnsAtomResult } from "../query/result.js";
|
|
4
4
|
import { EnsMutationOptions } from "../mutation/options.js";
|
|
5
5
|
import { EnsMutationResult } from "../mutation/result.js";
|
|
6
6
|
import "../index.js";
|
|
7
7
|
//#region src/hooks/migration.d.ts
|
|
8
|
-
declare const useMigrationEligibility: <
|
|
8
|
+
declare const useMigrationEligibility: <Mapped = {
|
|
9
9
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
10
10
|
readonly eligible: boolean;
|
|
11
11
|
readonly status: {
|
|
@@ -62,7 +62,7 @@ declare const useMigrationEligibility: <Selected = {
|
|
|
62
62
|
readonly owner: `0x${string}` | null;
|
|
63
63
|
readonly authorized: boolean;
|
|
64
64
|
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")[];
|
|
65
|
-
}>(input:
|
|
65
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
66
66
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
67
67
|
readonly eligible: boolean;
|
|
68
68
|
readonly status: {
|
|
@@ -119,8 +119,8 @@ declare const useMigrationEligibility: <Selected = {
|
|
|
119
119
|
readonly owner: `0x${string}` | null;
|
|
120
120
|
readonly authorized: boolean;
|
|
121
121
|
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")[];
|
|
122
|
-
},
|
|
123
|
-
declare const useMigrationEligibilitySuspense: <
|
|
122
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
123
|
+
declare const useMigrationEligibilitySuspense: <Mapped = {
|
|
124
124
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
125
125
|
readonly eligible: boolean;
|
|
126
126
|
readonly status: {
|
|
@@ -177,7 +177,7 @@ declare const useMigrationEligibilitySuspense: <Selected = {
|
|
|
177
177
|
readonly owner: `0x${string}` | null;
|
|
178
178
|
readonly authorized: boolean;
|
|
179
179
|
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")[];
|
|
180
|
-
}>(input:
|
|
180
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
181
181
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
182
182
|
readonly eligible: boolean;
|
|
183
183
|
readonly status: {
|
|
@@ -234,8 +234,8 @@ declare const useMigrationEligibilitySuspense: <Selected = {
|
|
|
234
234
|
readonly owner: `0x${string}` | null;
|
|
235
235
|
readonly authorized: boolean;
|
|
236
236
|
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")[];
|
|
237
|
-
},
|
|
238
|
-
declare const useMigrationPlan: <
|
|
237
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
238
|
+
declare const useMigrationPlan: <Mapped = {
|
|
239
239
|
readonly status: "unsupported";
|
|
240
240
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
241
241
|
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")[];
|
|
@@ -288,7 +288,7 @@ declare const useMigrationPlan: <Selected = {
|
|
|
288
288
|
readonly subregistry: `0x${string}`;
|
|
289
289
|
};
|
|
290
290
|
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
291
|
-
}>(input:
|
|
291
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
292
292
|
readonly status: "unsupported";
|
|
293
293
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
294
294
|
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")[];
|
|
@@ -341,8 +341,8 @@ declare const useMigrationPlan: <Selected = {
|
|
|
341
341
|
readonly subregistry: `0x${string}`;
|
|
342
342
|
};
|
|
343
343
|
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
344
|
-
},
|
|
345
|
-
declare const useMigrationPlanSuspense: <
|
|
344
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
345
|
+
declare const useMigrationPlanSuspense: <Mapped = {
|
|
346
346
|
readonly status: "unsupported";
|
|
347
347
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
348
348
|
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")[];
|
|
@@ -395,7 +395,7 @@ declare const useMigrationPlanSuspense: <Selected = {
|
|
|
395
395
|
readonly subregistry: `0x${string}`;
|
|
396
396
|
};
|
|
397
397
|
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
398
|
-
}>(input:
|
|
398
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
399
399
|
readonly status: "unsupported";
|
|
400
400
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
401
401
|
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")[];
|
|
@@ -448,8 +448,8 @@ declare const useMigrationPlanSuspense: <Selected = {
|
|
|
448
448
|
readonly subregistry: `0x${string}`;
|
|
449
449
|
};
|
|
450
450
|
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
451
|
-
},
|
|
452
|
-
declare const useMigrationStatus: <
|
|
451
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
452
|
+
declare const useMigrationStatus: <Mapped = {
|
|
453
453
|
readonly status: "unsupported";
|
|
454
454
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
455
455
|
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
@@ -485,7 +485,7 @@ declare const useMigrationStatus: <Selected = {
|
|
|
485
485
|
readonly status: "migrated-locked";
|
|
486
486
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
487
487
|
readonly registry: `0x${string}`;
|
|
488
|
-
}>(input:
|
|
488
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
489
489
|
readonly status: "unsupported";
|
|
490
490
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
491
491
|
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
@@ -521,8 +521,8 @@ declare const useMigrationStatus: <Selected = {
|
|
|
521
521
|
readonly status: "migrated-locked";
|
|
522
522
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
523
523
|
readonly registry: `0x${string}`;
|
|
524
|
-
},
|
|
525
|
-
declare const useMigrationStatusSuspense: <
|
|
524
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
525
|
+
declare const useMigrationStatusSuspense: <Mapped = {
|
|
526
526
|
readonly status: "unsupported";
|
|
527
527
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
528
528
|
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
@@ -558,7 +558,7 @@ declare const useMigrationStatusSuspense: <Selected = {
|
|
|
558
558
|
readonly status: "migrated-locked";
|
|
559
559
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
560
560
|
readonly registry: `0x${string}`;
|
|
561
|
-
}>(input:
|
|
561
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
562
562
|
readonly status: "unsupported";
|
|
563
563
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
564
564
|
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
@@ -594,8 +594,8 @@ declare const useMigrationStatusSuspense: <Selected = {
|
|
|
594
594
|
readonly status: "migrated-locked";
|
|
595
595
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
596
596
|
readonly registry: `0x${string}`;
|
|
597
|
-
},
|
|
598
|
-
declare const useMigrationTarget: <
|
|
597
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
598
|
+
declare const useMigrationTarget: <Mapped = {
|
|
599
599
|
readonly supported: false;
|
|
600
600
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
601
601
|
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
@@ -607,7 +607,7 @@ declare const useMigrationTarget: <Selected = {
|
|
|
607
607
|
readonly tokenId: bigint;
|
|
608
608
|
readonly tokenStandard: "erc721" | "erc1155";
|
|
609
609
|
readonly receiver: `0x${string}`;
|
|
610
|
-
}>(input:
|
|
610
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
611
611
|
readonly supported: false;
|
|
612
612
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
613
613
|
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
@@ -619,8 +619,8 @@ declare const useMigrationTarget: <Selected = {
|
|
|
619
619
|
readonly tokenId: bigint;
|
|
620
620
|
readonly tokenStandard: "erc721" | "erc1155";
|
|
621
621
|
readonly receiver: `0x${string}`;
|
|
622
|
-
},
|
|
623
|
-
declare const useMigrationTargetSuspense: <
|
|
622
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
623
|
+
declare const useMigrationTargetSuspense: <Mapped = {
|
|
624
624
|
readonly supported: false;
|
|
625
625
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
626
626
|
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
@@ -632,7 +632,7 @@ declare const useMigrationTargetSuspense: <Selected = {
|
|
|
632
632
|
readonly tokenId: bigint;
|
|
633
633
|
readonly tokenStandard: "erc721" | "erc1155";
|
|
634
634
|
readonly receiver: `0x${string}`;
|
|
635
|
-
}>(input:
|
|
635
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
636
636
|
readonly supported: false;
|
|
637
637
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
638
638
|
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
@@ -644,9 +644,9 @@ declare const useMigrationTargetSuspense: <Selected = {
|
|
|
644
644
|
readonly tokenId: bigint;
|
|
645
645
|
readonly tokenStandard: "erc721" | "erc1155";
|
|
646
646
|
readonly receiver: `0x${string}`;
|
|
647
|
-
},
|
|
647
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
648
648
|
declare const useApproveMigration: (options?: EnsMutationOptions<import("@ensforge/core").ApproveMigrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").ApproveMigrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
649
|
-
declare const useMigrateName: (options?: EnsMutationOptions<import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>;
|
|
649
|
+
declare const useMigrateName: (options?: EnsMutationOptions<import("@ensforge/core").MigrateNameCallParameters & import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").MigrateNameCallParameters & import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>;
|
|
650
650
|
declare const useMigrateNames: (options?: EnsMutationOptions<import("@ensforge/core").MigrateNamesParameters, import("@ensforge/core").MigrationBatchProgress, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").MigrateNamesParameters, import("@ensforge/core").MigrationBatchProgress, import("@ensforge/core").WriteError>;
|
|
651
651
|
//#endregion
|
|
652
652
|
export { useApproveMigration, useMigrateName, useMigrateNames, useMigrationEligibility, useMigrationEligibilitySuspense, useMigrationPlan, useMigrationPlanSuspense, useMigrationStatus, useMigrationStatusSuspense, useMigrationTarget, useMigrationTargetSuspense };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/hooks/migration.ts"],"mappings":";;;;;;;cAea,0BAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/hooks/migration.ts"],"mappings":";;;;;;;cAea,0BAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,cAAA,iCAAA;cACpE,kCAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,sBAAA;cACpF,mBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,cAAA,iCAAA;cACtD,2BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,sBAAA;cACtE,qBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,cAAA,iCAAA;cAC1D,6BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAA,2BAAA,YAAA,sBAAA;cAC1E,qBAAkB;;;;;;;;;;;;UAAwC;;;;;;;;;;;;4BAAA,2BAAA,YAAA,cAAA,iCAAA;cAC1D,6BAA0B;;;;;;;;;;;;UAAgD;;;;;;;;;;;;4BAAA,2BAAA,YAAA,sBAAA;cAE1E,sBAAmB,UAAnB,4CAAmB,qDAAA,8CAAA,gBAAA,2CAAA,qDAAA,8CAAA;cACnB,iBAAc,UAAd,4CAAc,qDAAA,gDAAA,+CAAA,4CAAA,gBAAA,2CAAA,qDAAA,gDAAA,+CAAA,4CAAA;cACd,kBAAe,UAAf,4CAAe,iDAAA,iDAAA,gBAAA,2CAAA,iDAAA,iDAAA"}
|
package/dist/hooks/name.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UseEnsAtomParameters } from "../query/options.js";
|
|
2
|
+
import { EnsSuspenseAtomResult, UseEnsSuspenseAtomParameters } from "./use-suspense-query.js";
|
|
3
|
+
import { EnsAtomResult } from "../query/result.js";
|
|
4
4
|
import "../index.js";
|
|
5
5
|
//#region src/hooks/name.d.ts
|
|
6
|
-
declare const useCanonicalResource: <
|
|
7
|
-
declare const useCanonicalResourceSuspense: <
|
|
8
|
-
declare const useExpiry: <
|
|
6
|
+
declare const useCanonicalResource: <Mapped = bigint | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
7
|
+
declare const useCanonicalResourceSuspense: <Mapped = bigint | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
8
|
+
declare const useExpiry: <Mapped = {
|
|
9
9
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
10
10
|
readonly expiry: bigint;
|
|
11
11
|
readonly gracePeriod: bigint;
|
|
12
12
|
readonly gracePeriodEnd: bigint;
|
|
13
13
|
readonly protocol: "v1" | "v2";
|
|
14
|
-
readonly source: "
|
|
15
|
-
} | null>(input:
|
|
14
|
+
readonly source: "registry" | "nameWrapper" | "baseRegistrar";
|
|
15
|
+
} | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetExpiryParameters, {
|
|
16
16
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
17
|
readonly expiry: bigint;
|
|
18
18
|
readonly gracePeriod: bigint;
|
|
19
19
|
readonly gracePeriodEnd: bigint;
|
|
20
20
|
readonly protocol: "v1" | "v2";
|
|
21
|
-
readonly source: "
|
|
22
|
-
} | null,
|
|
23
|
-
declare const useExpirySuspense: <
|
|
21
|
+
readonly source: "registry" | "nameWrapper" | "baseRegistrar";
|
|
22
|
+
} | null, import("@ensforge/core").GetExpiryError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetExpiryError>;
|
|
23
|
+
declare const useExpirySuspense: <Mapped = {
|
|
24
24
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
25
25
|
readonly expiry: bigint;
|
|
26
26
|
readonly gracePeriod: bigint;
|
|
27
27
|
readonly gracePeriodEnd: bigint;
|
|
28
28
|
readonly protocol: "v1" | "v2";
|
|
29
|
-
readonly source: "
|
|
30
|
-
} | null>(input:
|
|
29
|
+
readonly source: "registry" | "nameWrapper" | "baseRegistrar";
|
|
30
|
+
} | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetExpiryParameters, {
|
|
31
31
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
32
32
|
readonly expiry: bigint;
|
|
33
33
|
readonly gracePeriod: bigint;
|
|
34
34
|
readonly gracePeriodEnd: bigint;
|
|
35
35
|
readonly protocol: "v1" | "v2";
|
|
36
|
-
readonly source: "
|
|
37
|
-
} | null,
|
|
38
|
-
declare const useManager: <
|
|
39
|
-
declare const useManagerSuspense: <
|
|
40
|
-
declare const useNameState: <
|
|
36
|
+
readonly source: "registry" | "nameWrapper" | "baseRegistrar";
|
|
37
|
+
} | null, import("@ensforge/core").GetExpiryError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
38
|
+
declare const useManager: <Mapped = `0x${string}` | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
39
|
+
declare const useManagerSuspense: <Mapped = `0x${string}` | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
40
|
+
declare const useNameState: <Mapped = {
|
|
41
41
|
readonly kind: "available";
|
|
42
42
|
readonly protocol: "v1" | "v2";
|
|
43
43
|
readonly wrapped: false;
|
|
44
44
|
readonly migrated: false;
|
|
45
45
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
46
|
-
readonly status: "available" | "
|
|
46
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
47
47
|
readonly owner: `0x${string}` | null;
|
|
48
48
|
readonly manager: `0x${string}` | null;
|
|
49
49
|
readonly registrant: `0x${string}` | null;
|
|
@@ -61,7 +61,7 @@ declare const useNameState: <Selected = {
|
|
|
61
61
|
readonly wrapped: false;
|
|
62
62
|
readonly migrated: false;
|
|
63
63
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
64
|
-
readonly status: "available" | "
|
|
64
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
65
65
|
readonly owner: `0x${string}` | null;
|
|
66
66
|
readonly manager: `0x${string}` | null;
|
|
67
67
|
readonly registrant: `0x${string}` | null;
|
|
@@ -79,7 +79,7 @@ declare const useNameState: <Selected = {
|
|
|
79
79
|
readonly wrapped: true;
|
|
80
80
|
readonly migrated: false;
|
|
81
81
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
82
|
-
readonly status: "available" | "
|
|
82
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
83
83
|
readonly owner: `0x${string}` | null;
|
|
84
84
|
readonly manager: `0x${string}` | null;
|
|
85
85
|
readonly registrant: `0x${string}` | null;
|
|
@@ -97,7 +97,7 @@ declare const useNameState: <Selected = {
|
|
|
97
97
|
readonly wrapped: boolean;
|
|
98
98
|
readonly migrated: false;
|
|
99
99
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
100
|
-
readonly status: "available" | "
|
|
100
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
101
101
|
readonly owner: `0x${string}` | null;
|
|
102
102
|
readonly manager: `0x${string}` | null;
|
|
103
103
|
readonly registrant: `0x${string}` | null;
|
|
@@ -115,7 +115,7 @@ declare const useNameState: <Selected = {
|
|
|
115
115
|
readonly wrapped: boolean;
|
|
116
116
|
readonly migrated: true;
|
|
117
117
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
118
|
-
readonly status: "available" | "
|
|
118
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
119
119
|
readonly owner: `0x${string}` | null;
|
|
120
120
|
readonly manager: `0x${string}` | null;
|
|
121
121
|
readonly registrant: `0x${string}` | null;
|
|
@@ -133,7 +133,7 @@ declare const useNameState: <Selected = {
|
|
|
133
133
|
readonly wrapped: boolean;
|
|
134
134
|
readonly migrated: false;
|
|
135
135
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
136
|
-
readonly status: "available" | "
|
|
136
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
137
137
|
readonly owner: `0x${string}` | null;
|
|
138
138
|
readonly manager: `0x${string}` | null;
|
|
139
139
|
readonly registrant: `0x${string}` | null;
|
|
@@ -145,13 +145,13 @@ declare const useNameState: <Selected = {
|
|
|
145
145
|
readonly resource: bigint | null;
|
|
146
146
|
readonly available: boolean;
|
|
147
147
|
readonly renewable: boolean;
|
|
148
|
-
}>(input:
|
|
148
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, {
|
|
149
149
|
readonly kind: "available";
|
|
150
150
|
readonly protocol: "v1" | "v2";
|
|
151
151
|
readonly wrapped: false;
|
|
152
152
|
readonly migrated: false;
|
|
153
153
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
154
|
-
readonly status: "available" | "
|
|
154
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
155
155
|
readonly owner: `0x${string}` | null;
|
|
156
156
|
readonly manager: `0x${string}` | null;
|
|
157
157
|
readonly registrant: `0x${string}` | null;
|
|
@@ -169,7 +169,7 @@ declare const useNameState: <Selected = {
|
|
|
169
169
|
readonly wrapped: false;
|
|
170
170
|
readonly migrated: false;
|
|
171
171
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
172
|
-
readonly status: "available" | "
|
|
172
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
173
173
|
readonly owner: `0x${string}` | null;
|
|
174
174
|
readonly manager: `0x${string}` | null;
|
|
175
175
|
readonly registrant: `0x${string}` | null;
|
|
@@ -187,7 +187,7 @@ declare const useNameState: <Selected = {
|
|
|
187
187
|
readonly wrapped: true;
|
|
188
188
|
readonly migrated: false;
|
|
189
189
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
190
|
-
readonly status: "available" | "
|
|
190
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
191
191
|
readonly owner: `0x${string}` | null;
|
|
192
192
|
readonly manager: `0x${string}` | null;
|
|
193
193
|
readonly registrant: `0x${string}` | null;
|
|
@@ -205,7 +205,7 @@ declare const useNameState: <Selected = {
|
|
|
205
205
|
readonly wrapped: boolean;
|
|
206
206
|
readonly migrated: false;
|
|
207
207
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
208
|
-
readonly status: "available" | "
|
|
208
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
209
209
|
readonly owner: `0x${string}` | null;
|
|
210
210
|
readonly manager: `0x${string}` | null;
|
|
211
211
|
readonly registrant: `0x${string}` | null;
|
|
@@ -223,7 +223,7 @@ declare const useNameState: <Selected = {
|
|
|
223
223
|
readonly wrapped: boolean;
|
|
224
224
|
readonly migrated: true;
|
|
225
225
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
226
|
-
readonly status: "available" | "
|
|
226
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
227
227
|
readonly owner: `0x${string}` | null;
|
|
228
228
|
readonly manager: `0x${string}` | null;
|
|
229
229
|
readonly registrant: `0x${string}` | null;
|
|
@@ -241,7 +241,7 @@ declare const useNameState: <Selected = {
|
|
|
241
241
|
readonly wrapped: boolean;
|
|
242
242
|
readonly migrated: false;
|
|
243
243
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
244
|
-
readonly status: "available" | "
|
|
244
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
245
245
|
readonly owner: `0x${string}` | null;
|
|
246
246
|
readonly manager: `0x${string}` | null;
|
|
247
247
|
readonly registrant: `0x${string}` | null;
|
|
@@ -253,14 +253,14 @@ declare const useNameState: <Selected = {
|
|
|
253
253
|
readonly resource: bigint | null;
|
|
254
254
|
readonly available: boolean;
|
|
255
255
|
readonly renewable: boolean;
|
|
256
|
-
},
|
|
257
|
-
declare const useNameStateSuspense: <
|
|
256
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
257
|
+
declare const useNameStateSuspense: <Mapped = {
|
|
258
258
|
readonly kind: "available";
|
|
259
259
|
readonly protocol: "v1" | "v2";
|
|
260
260
|
readonly wrapped: false;
|
|
261
261
|
readonly migrated: false;
|
|
262
262
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
263
|
-
readonly status: "available" | "
|
|
263
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
264
264
|
readonly owner: `0x${string}` | null;
|
|
265
265
|
readonly manager: `0x${string}` | null;
|
|
266
266
|
readonly registrant: `0x${string}` | null;
|
|
@@ -278,7 +278,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
278
278
|
readonly wrapped: false;
|
|
279
279
|
readonly migrated: false;
|
|
280
280
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
281
|
-
readonly status: "available" | "
|
|
281
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
282
282
|
readonly owner: `0x${string}` | null;
|
|
283
283
|
readonly manager: `0x${string}` | null;
|
|
284
284
|
readonly registrant: `0x${string}` | null;
|
|
@@ -296,7 +296,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
296
296
|
readonly wrapped: true;
|
|
297
297
|
readonly migrated: false;
|
|
298
298
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
299
|
-
readonly status: "available" | "
|
|
299
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
300
300
|
readonly owner: `0x${string}` | null;
|
|
301
301
|
readonly manager: `0x${string}` | null;
|
|
302
302
|
readonly registrant: `0x${string}` | null;
|
|
@@ -314,7 +314,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
314
314
|
readonly wrapped: boolean;
|
|
315
315
|
readonly migrated: false;
|
|
316
316
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
317
|
-
readonly status: "available" | "
|
|
317
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
318
318
|
readonly owner: `0x${string}` | null;
|
|
319
319
|
readonly manager: `0x${string}` | null;
|
|
320
320
|
readonly registrant: `0x${string}` | null;
|
|
@@ -332,7 +332,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
332
332
|
readonly wrapped: boolean;
|
|
333
333
|
readonly migrated: true;
|
|
334
334
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
335
|
-
readonly status: "available" | "
|
|
335
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
336
336
|
readonly owner: `0x${string}` | null;
|
|
337
337
|
readonly manager: `0x${string}` | null;
|
|
338
338
|
readonly registrant: `0x${string}` | null;
|
|
@@ -350,7 +350,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
350
350
|
readonly wrapped: boolean;
|
|
351
351
|
readonly migrated: false;
|
|
352
352
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
353
|
-
readonly status: "available" | "
|
|
353
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
354
354
|
readonly owner: `0x${string}` | null;
|
|
355
355
|
readonly manager: `0x${string}` | null;
|
|
356
356
|
readonly registrant: `0x${string}` | null;
|
|
@@ -362,13 +362,13 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
362
362
|
readonly resource: bigint | null;
|
|
363
363
|
readonly available: boolean;
|
|
364
364
|
readonly renewable: boolean;
|
|
365
|
-
}>(input:
|
|
365
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, {
|
|
366
366
|
readonly kind: "available";
|
|
367
367
|
readonly protocol: "v1" | "v2";
|
|
368
368
|
readonly wrapped: false;
|
|
369
369
|
readonly migrated: false;
|
|
370
370
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
371
|
-
readonly status: "available" | "
|
|
371
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
372
372
|
readonly owner: `0x${string}` | null;
|
|
373
373
|
readonly manager: `0x${string}` | null;
|
|
374
374
|
readonly registrant: `0x${string}` | null;
|
|
@@ -386,7 +386,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
386
386
|
readonly wrapped: false;
|
|
387
387
|
readonly migrated: false;
|
|
388
388
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
389
|
-
readonly status: "available" | "
|
|
389
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
390
390
|
readonly owner: `0x${string}` | null;
|
|
391
391
|
readonly manager: `0x${string}` | null;
|
|
392
392
|
readonly registrant: `0x${string}` | null;
|
|
@@ -404,7 +404,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
404
404
|
readonly wrapped: true;
|
|
405
405
|
readonly migrated: false;
|
|
406
406
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
407
|
-
readonly status: "available" | "
|
|
407
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
408
408
|
readonly owner: `0x${string}` | null;
|
|
409
409
|
readonly manager: `0x${string}` | null;
|
|
410
410
|
readonly registrant: `0x${string}` | null;
|
|
@@ -422,7 +422,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
422
422
|
readonly wrapped: boolean;
|
|
423
423
|
readonly migrated: false;
|
|
424
424
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
425
|
-
readonly status: "available" | "
|
|
425
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
426
426
|
readonly owner: `0x${string}` | null;
|
|
427
427
|
readonly manager: `0x${string}` | null;
|
|
428
428
|
readonly registrant: `0x${string}` | null;
|
|
@@ -440,7 +440,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
440
440
|
readonly wrapped: boolean;
|
|
441
441
|
readonly migrated: true;
|
|
442
442
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
443
|
-
readonly status: "available" | "
|
|
443
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
444
444
|
readonly owner: `0x${string}` | null;
|
|
445
445
|
readonly manager: `0x${string}` | null;
|
|
446
446
|
readonly registrant: `0x${string}` | null;
|
|
@@ -458,7 +458,7 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
458
458
|
readonly wrapped: boolean;
|
|
459
459
|
readonly migrated: false;
|
|
460
460
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
461
|
-
readonly status: "available" | "
|
|
461
|
+
readonly status: "available" | "active" | "grace" | "expired" | "reserved";
|
|
462
462
|
readonly owner: `0x${string}` | null;
|
|
463
463
|
readonly manager: `0x${string}` | null;
|
|
464
464
|
readonly registrant: `0x${string}` | null;
|
|
@@ -470,53 +470,53 @@ declare const useNameStateSuspense: <Selected = {
|
|
|
470
470
|
readonly resource: bigint | null;
|
|
471
471
|
readonly available: boolean;
|
|
472
472
|
readonly renewable: boolean;
|
|
473
|
-
},
|
|
474
|
-
declare const useNameStatus: <
|
|
475
|
-
declare const useNameStatusSuspense: <
|
|
476
|
-
declare const useOwner: <
|
|
473
|
+
}, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
474
|
+
declare const useNameStatus: <Mapped = "available" | "active" | "grace" | "expired" | "reserved">(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, "available" | "active" | "grace" | "expired" | "reserved", import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
475
|
+
declare const useNameStatusSuspense: <Mapped = "available" | "active" | "grace" | "expired" | "reserved">(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, "available" | "active" | "grace" | "expired" | "reserved", import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
476
|
+
declare const useOwner: <Mapped = {
|
|
477
477
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
478
478
|
readonly owner: `0x${string}` | null;
|
|
479
479
|
readonly registrant: `0x${string}` | null;
|
|
480
480
|
readonly protocol: "v1" | "v2";
|
|
481
|
-
readonly ownershipLevel: "
|
|
482
|
-
} | null>(input:
|
|
481
|
+
readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
|
|
482
|
+
} | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetOwnerParameters, {
|
|
483
483
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
484
484
|
readonly owner: `0x${string}` | null;
|
|
485
485
|
readonly registrant: `0x${string}` | null;
|
|
486
486
|
readonly protocol: "v1" | "v2";
|
|
487
|
-
readonly ownershipLevel: "
|
|
488
|
-
} | null,
|
|
489
|
-
declare const useOwnerSuspense: <
|
|
487
|
+
readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
|
|
488
|
+
} | null, import("@ensforge/core").GetOwnerError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetOwnerError>;
|
|
489
|
+
declare const useOwnerSuspense: <Mapped = {
|
|
490
490
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
491
491
|
readonly owner: `0x${string}` | null;
|
|
492
492
|
readonly registrant: `0x${string}` | null;
|
|
493
493
|
readonly protocol: "v1" | "v2";
|
|
494
|
-
readonly ownershipLevel: "
|
|
495
|
-
} | null>(input:
|
|
494
|
+
readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
|
|
495
|
+
} | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetOwnerParameters, {
|
|
496
496
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
497
497
|
readonly owner: `0x${string}` | null;
|
|
498
498
|
readonly registrant: `0x${string}` | null;
|
|
499
499
|
readonly protocol: "v1" | "v2";
|
|
500
|
-
readonly ownershipLevel: "
|
|
501
|
-
} | null,
|
|
502
|
-
declare const useProtocol: <
|
|
503
|
-
declare const useProtocolSuspense: <
|
|
504
|
-
declare const useRegistrant: <
|
|
505
|
-
declare const useRegistrantSuspense: <
|
|
506
|
-
declare const useRegistry: <
|
|
507
|
-
declare const useRegistrySuspense: <
|
|
508
|
-
declare const useTokenId: <
|
|
509
|
-
declare const useTokenIdSuspense: <
|
|
510
|
-
declare const useIsAvailable: <
|
|
511
|
-
declare const useIsAvailableSuspense: <
|
|
512
|
-
declare const useIsMigrated: <
|
|
513
|
-
declare const useIsMigratedSuspense: <
|
|
514
|
-
declare const useIsRenewable: <
|
|
515
|
-
declare const useIsRenewableSuspense: <
|
|
516
|
-
declare const useIsReserved: <
|
|
517
|
-
declare const useIsReservedSuspense: <
|
|
518
|
-
declare const useIsWrapped: <
|
|
519
|
-
declare const useIsWrappedSuspense: <
|
|
500
|
+
readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
|
|
501
|
+
} | null, import("@ensforge/core").GetOwnerError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
502
|
+
declare const useProtocol: <Mapped = "v1" | "v2">(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, "v1" | "v2", import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
503
|
+
declare const useProtocolSuspense: <Mapped = "v1" | "v2">(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, "v1" | "v2", import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
504
|
+
declare const useRegistrant: <Mapped = `0x${string}` | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
505
|
+
declare const useRegistrantSuspense: <Mapped = `0x${string}` | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
506
|
+
declare const useRegistry: <Mapped = `0x${string}`>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}`, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
507
|
+
declare const useRegistrySuspense: <Mapped = `0x${string}`>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}`, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
508
|
+
declare const useTokenId: <Mapped = bigint | null>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
509
|
+
declare const useTokenIdSuspense: <Mapped = bigint | null>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
510
|
+
declare const useIsAvailable: <Mapped = boolean>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
511
|
+
declare const useIsAvailableSuspense: <Mapped = boolean>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
512
|
+
declare const useIsMigrated: <Mapped = boolean>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
513
|
+
declare const useIsMigratedSuspense: <Mapped = boolean>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
514
|
+
declare const useIsRenewable: <Mapped = boolean>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
515
|
+
declare const useIsRenewableSuspense: <Mapped = boolean>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
516
|
+
declare const useIsReserved: <Mapped = boolean>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
517
|
+
declare const useIsReservedSuspense: <Mapped = boolean>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
518
|
+
declare const useIsWrapped: <Mapped = boolean>(input: UseEnsAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetCanonicalResourceError>;
|
|
519
|
+
declare const useIsWrappedSuspense: <Mapped = boolean>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
520
520
|
//#endregion
|
|
521
521
|
export { useCanonicalResource, useCanonicalResourceSuspense, useExpiry, useExpirySuspense, useIsAvailable, useIsAvailableSuspense, useIsMigrated, useIsMigratedSuspense, useIsRenewable, useIsRenewableSuspense, useIsReserved, useIsReservedSuspense, useIsWrapped, useIsWrappedSuspense, useManager, useManagerSuspense, useNameState, useNameStateSuspense, useNameStatus, useNameStatusSuspense, useOwner, useOwnerSuspense, useProtocol, useProtocolSuspense, useRegistrant, useRegistrantSuspense, useRegistry, useRegistrySuspense, useTokenId, useTokenIdSuspense };
|
|
522
522
|
//# sourceMappingURL=name.d.ts.map
|