@ensforge/react 0.0.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/LICENSE +201 -0
- package/README.md +87 -0
- package/dist/atoms/batch.d.ts +14 -0
- package/dist/atoms/batch.d.ts.map +1 -0
- package/dist/atoms/batch.js +16 -0
- package/dist/atoms/batch.js.map +1 -0
- package/dist/atoms/capabilities.d.ts +531 -0
- package/dist/atoms/capabilities.d.ts.map +1 -0
- package/dist/atoms/capabilities.js +21 -0
- package/dist/atoms/capabilities.js.map +1 -0
- package/dist/atoms/dns.d.ts +75 -0
- package/dist/atoms/dns.d.ts.map +1 -0
- package/dist/atoms/dns.js +18 -0
- package/dist/atoms/dns.js.map +1 -0
- package/dist/atoms/events.d.ts +86 -0
- package/dist/atoms/events.d.ts.map +1 -0
- package/dist/atoms/events.js +11 -0
- package/dist/atoms/events.js.map +1 -0
- package/dist/atoms/generic.d.ts +14 -0
- package/dist/atoms/generic.d.ts.map +1 -0
- package/dist/atoms/generic.js +13 -0
- package/dist/atoms/generic.js.map +1 -0
- package/dist/atoms/migration.d.ts +171 -0
- package/dist/atoms/migration.d.ts.map +1 -0
- package/dist/atoms/migration.js +15 -0
- package/dist/atoms/migration.js.map +1 -0
- package/dist/atoms/mutation.d.ts +12 -0
- package/dist/atoms/mutation.d.ts.map +1 -0
- package/dist/atoms/mutation.js +11 -0
- package/dist/atoms/mutation.js.map +1 -0
- package/dist/atoms/name.d.ts +141 -0
- package/dist/atoms/name.d.ts.map +1 -0
- package/dist/atoms/name.js +22 -0
- package/dist/atoms/name.js.map +1 -0
- package/dist/atoms/ownership.d.ts +12 -0
- package/dist/atoms/ownership.d.ts.map +1 -0
- package/dist/atoms/ownership.js +14 -0
- package/dist/atoms/ownership.js.map +1 -0
- package/dist/atoms/permissions.d.ts +16 -0
- package/dist/atoms/permissions.d.ts.map +1 -0
- package/dist/atoms/permissions.js +18 -0
- package/dist/atoms/permissions.js.map +1 -0
- package/dist/atoms/query.d.ts +18 -0
- package/dist/atoms/query.d.ts.map +1 -0
- package/dist/atoms/query.js +30 -0
- package/dist/atoms/query.js.map +1 -0
- package/dist/atoms/records.d.ts +93 -0
- package/dist/atoms/records.d.ts.map +1 -0
- package/dist/atoms/records.js +34 -0
- package/dist/atoms/records.js.map +1 -0
- package/dist/atoms/registration.d.ts +253 -0
- package/dist/atoms/registration.d.ts.map +1 -0
- package/dist/atoms/registration.js +23 -0
- package/dist/atoms/registration.js.map +1 -0
- package/dist/atoms/resolution.d.ts +45 -0
- package/dist/atoms/resolution.d.ts.map +1 -0
- package/dist/atoms/resolution.js +20 -0
- package/dist/atoms/resolution.js.map +1 -0
- package/dist/atoms/reverse.d.ts +14 -0
- package/dist/atoms/reverse.d.ts.map +1 -0
- package/dist/atoms/reverse.js +13 -0
- package/dist/atoms/reverse.js.map +1 -0
- package/dist/atoms/stream.d.ts +11 -0
- package/dist/atoms/stream.d.ts.map +1 -0
- package/dist/atoms/stream.js +23 -0
- package/dist/atoms/stream.js.map +1 -0
- package/dist/atoms/subnames.d.ts +12 -0
- package/dist/atoms/subnames.d.ts.map +1 -0
- package/dist/atoms/subnames.js +14 -0
- package/dist/atoms/subnames.js.map +1 -0
- package/dist/atoms/wrapping.d.ts +13 -0
- package/dist/atoms/wrapping.d.ts.map +1 -0
- package/dist/atoms/wrapping.js +15 -0
- package/dist/atoms/wrapping.js.map +1 -0
- package/dist/atoms.d.ts +19 -0
- package/dist/atoms.js +20 -0
- package/dist/cache/invalidation.d.ts +18 -0
- package/dist/cache/invalidation.d.ts.map +1 -0
- package/dist/cache/invalidation.js +23 -0
- package/dist/cache/invalidation.js.map +1 -0
- package/dist/cache/prefetch.d.ts +10 -0
- package/dist/cache/prefetch.d.ts.map +1 -0
- package/dist/cache/prefetch.js +10 -0
- package/dist/cache/prefetch.js.map +1 -0
- package/dist/cache/registry.d.ts +10 -0
- package/dist/cache/registry.d.ts.map +1 -0
- package/dist/cache/registry.js +12 -0
- package/dist/cache/registry.js.map +1 -0
- package/dist/cache.d.ts +4 -0
- package/dist/cache.js +5 -0
- package/dist/hooks/batch.d.ts +23 -0
- package/dist/hooks/batch.d.ts.map +1 -0
- package/dist/hooks/batch.js +25 -0
- package/dist/hooks/batch.js.map +1 -0
- package/dist/hooks/capabilities.d.ts +2084 -0
- package/dist/hooks/capabilities.d.ts.map +1 -0
- package/dist/hooks/capabilities.js +39 -0
- package/dist/hooks/capabilities.js.map +1 -0
- package/dist/hooks/dns.d.ts +262 -0
- package/dist/hooks/dns.d.ts.map +1 -0
- package/dist/hooks/dns.js +28 -0
- package/dist/hooks/dns.js.map +1 -0
- package/dist/hooks/events.d.ts +275 -0
- package/dist/hooks/events.d.ts.map +1 -0
- package/dist/hooks/events.js +16 -0
- package/dist/hooks/events.js.map +1 -0
- package/dist/hooks/generic.d.ts +12 -0
- package/dist/hooks/generic.d.ts.map +1 -0
- package/dist/hooks/generic.js +13 -0
- package/dist/hooks/generic.js.map +1 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/migration.d.ts +653 -0
- package/dist/hooks/migration.d.ts.map +1 -0
- package/dist/hooks/migration.js +23 -0
- package/dist/hooks/migration.js.map +1 -0
- package/dist/hooks/name.d.ts +522 -0
- package/dist/hooks/name.d.ts.map +1 -0
- package/dist/hooks/name.js +41 -0
- package/dist/hooks/name.js.map +1 -0
- package/dist/hooks/ownership.d.ts +17 -0
- package/dist/hooks/ownership.d.ts.map +1 -0
- package/dist/hooks/ownership.js +19 -0
- package/dist/hooks/ownership.js.map +1 -0
- package/dist/hooks/permissions.d.ts +18 -0
- package/dist/hooks/permissions.d.ts.map +1 -0
- package/dist/hooks/permissions.js +21 -0
- package/dist/hooks/permissions.js.map +1 -0
- package/dist/hooks/records.d.ts +291 -0
- package/dist/hooks/records.d.ts.map +1 -0
- package/dist/hooks/records.js +49 -0
- package/dist/hooks/records.js.map +1 -0
- package/dist/hooks/registration.d.ts +960 -0
- package/dist/hooks/registration.d.ts.map +1 -0
- package/dist/hooks/registration.js +34 -0
- package/dist/hooks/registration.js.map +1 -0
- package/dist/hooks/resolution.d.ts +137 -0
- package/dist/hooks/resolution.d.ts.map +1 -0
- package/dist/hooks/resolution.js +31 -0
- package/dist/hooks/resolution.js.map +1 -0
- package/dist/hooks/reverse.d.ts +28 -0
- package/dist/hooks/reverse.d.ts.map +1 -0
- package/dist/hooks/reverse.js +18 -0
- package/dist/hooks/reverse.js.map +1 -0
- package/dist/hooks/subnames.d.ts +14 -0
- package/dist/hooks/subnames.d.ts.map +1 -0
- package/dist/hooks/subnames.js +17 -0
- package/dist/hooks/subnames.js.map +1 -0
- package/dist/hooks/use-cache.d.ts +11 -0
- package/dist/hooks/use-cache.d.ts.map +1 -0
- package/dist/hooks/use-cache.js +20 -0
- package/dist/hooks/use-cache.js.map +1 -0
- package/dist/hooks/use-mutation.d.ts +8 -0
- package/dist/hooks/use-mutation.d.ts.map +1 -0
- package/dist/hooks/use-mutation.js +79 -0
- package/dist/hooks/use-mutation.js.map +1 -0
- package/dist/hooks/use-query.d.ts +10 -0
- package/dist/hooks/use-query.d.ts.map +1 -0
- package/dist/hooks/use-query.js +81 -0
- package/dist/hooks/use-query.js.map +1 -0
- package/dist/hooks/use-suspense-query.d.ts +15 -0
- package/dist/hooks/use-suspense-query.d.ts.map +1 -0
- package/dist/hooks/use-suspense-query.js +22 -0
- package/dist/hooks/use-suspense-query.js.map +1 -0
- package/dist/hooks/wrapping.d.ts +19 -0
- package/dist/hooks/wrapping.d.ts.map +1 -0
- package/dist/hooks/wrapping.js +21 -0
- package/dist/hooks/wrapping.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +30 -0
- package/dist/internal/action-types.d.ts +8 -0
- package/dist/internal/action-types.d.ts.map +1 -0
- package/dist/internal/runtime.js +9 -0
- package/dist/internal/runtime.js.map +1 -0
- package/dist/mutation/options.d.ts +12 -0
- package/dist/mutation/options.d.ts.map +1 -0
- package/dist/mutation/result.d.ts +25 -0
- package/dist/mutation/result.d.ts.map +1 -0
- package/dist/provider/context.d.ts +9 -0
- package/dist/provider/context.d.ts.map +1 -0
- package/dist/provider/context.js +15 -0
- package/dist/provider/context.js.map +1 -0
- package/dist/provider/ensforge-provider.d.ts +22 -0
- package/dist/provider/ensforge-provider.d.ts.map +1 -0
- package/dist/provider/ensforge-provider.js +31 -0
- package/dist/provider/ensforge-provider.js.map +1 -0
- package/dist/provider/hooks.d.ts +6 -0
- package/dist/provider/hooks.d.ts.map +1 -0
- package/dist/provider/hooks.js +13 -0
- package/dist/provider/hooks.js.map +1 -0
- package/dist/provider/index.d.ts +4 -0
- package/dist/query/keys.d.ts +6 -0
- package/dist/query/keys.d.ts.map +1 -0
- package/dist/query/keys.js +25 -0
- package/dist/query/keys.js.map +1 -0
- package/dist/query/options.d.ts +31 -0
- package/dist/query/options.d.ts.map +1 -0
- package/dist/query/options.js +19 -0
- package/dist/query/options.js.map +1 -0
- package/dist/query/result.d.ts +25 -0
- package/dist/query/result.d.ts.map +1 -0
- package/dist/query/result.js +19 -0
- package/dist/query/result.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
import { UseEnsQueryParameters } from "../query/options.js";
|
|
2
|
+
import { EnsSuspenseQueryResult, UseEnsSuspenseQueryParameters } from "./use-suspense-query.js";
|
|
3
|
+
import { EnsQueryResult } from "../query/result.js";
|
|
4
|
+
import { EnsMutationOptions } from "../mutation/options.js";
|
|
5
|
+
import { EnsMutationResult } from "../mutation/result.js";
|
|
6
|
+
import "../index.js";
|
|
7
|
+
//#region src/hooks/migration.d.ts
|
|
8
|
+
declare const useMigrationEligibility: <Selected = {
|
|
9
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
10
|
+
readonly eligible: boolean;
|
|
11
|
+
readonly status: {
|
|
12
|
+
readonly status: "unsupported";
|
|
13
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
14
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
15
|
+
} | {
|
|
16
|
+
readonly status: "not-required";
|
|
17
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
18
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
19
|
+
} | {
|
|
20
|
+
readonly status: "reserved-unwrapped";
|
|
21
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
22
|
+
} | {
|
|
23
|
+
readonly status: "locked-child-pending-parent";
|
|
24
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
25
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
26
|
+
readonly fuses: number;
|
|
27
|
+
} | {
|
|
28
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
29
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
30
|
+
readonly fuses: number;
|
|
31
|
+
} | {
|
|
32
|
+
readonly status: "reserved-wrapped-locked";
|
|
33
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
34
|
+
readonly fuses: number;
|
|
35
|
+
} | {
|
|
36
|
+
readonly status: "mirrored-child";
|
|
37
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
38
|
+
readonly parentRegistry: `0x${string}`;
|
|
39
|
+
readonly fuses: number;
|
|
40
|
+
} | {
|
|
41
|
+
readonly status: "migrated-unlocked";
|
|
42
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
43
|
+
} | {
|
|
44
|
+
readonly status: "migrated-locked";
|
|
45
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
46
|
+
readonly registry: `0x${string}`;
|
|
47
|
+
};
|
|
48
|
+
readonly target: {
|
|
49
|
+
readonly supported: false;
|
|
50
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
51
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
52
|
+
} | {
|
|
53
|
+
readonly supported: true;
|
|
54
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
55
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
56
|
+
readonly tokenContract: `0x${string}`;
|
|
57
|
+
readonly tokenId: bigint;
|
|
58
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
59
|
+
readonly receiver: `0x${string}`;
|
|
60
|
+
};
|
|
61
|
+
readonly account: `0x${string}`;
|
|
62
|
+
readonly owner: `0x${string}` | null;
|
|
63
|
+
readonly authorized: boolean;
|
|
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: UseEnsQueryParameters<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
66
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
67
|
+
readonly eligible: boolean;
|
|
68
|
+
readonly status: {
|
|
69
|
+
readonly status: "unsupported";
|
|
70
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
71
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
72
|
+
} | {
|
|
73
|
+
readonly status: "not-required";
|
|
74
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
75
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
76
|
+
} | {
|
|
77
|
+
readonly status: "reserved-unwrapped";
|
|
78
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
79
|
+
} | {
|
|
80
|
+
readonly status: "locked-child-pending-parent";
|
|
81
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
82
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
83
|
+
readonly fuses: number;
|
|
84
|
+
} | {
|
|
85
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
86
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
87
|
+
readonly fuses: number;
|
|
88
|
+
} | {
|
|
89
|
+
readonly status: "reserved-wrapped-locked";
|
|
90
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
91
|
+
readonly fuses: number;
|
|
92
|
+
} | {
|
|
93
|
+
readonly status: "mirrored-child";
|
|
94
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
95
|
+
readonly parentRegistry: `0x${string}`;
|
|
96
|
+
readonly fuses: number;
|
|
97
|
+
} | {
|
|
98
|
+
readonly status: "migrated-unlocked";
|
|
99
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
100
|
+
} | {
|
|
101
|
+
readonly status: "migrated-locked";
|
|
102
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
103
|
+
readonly registry: `0x${string}`;
|
|
104
|
+
};
|
|
105
|
+
readonly target: {
|
|
106
|
+
readonly supported: false;
|
|
107
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
108
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
109
|
+
} | {
|
|
110
|
+
readonly supported: true;
|
|
111
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
112
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
113
|
+
readonly tokenContract: `0x${string}`;
|
|
114
|
+
readonly tokenId: bigint;
|
|
115
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
116
|
+
readonly receiver: `0x${string}`;
|
|
117
|
+
};
|
|
118
|
+
readonly account: `0x${string}`;
|
|
119
|
+
readonly owner: `0x${string}` | null;
|
|
120
|
+
readonly authorized: boolean;
|
|
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
|
+
}, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCanonicalResourceError>;
|
|
123
|
+
declare const useMigrationEligibilitySuspense: <Selected = {
|
|
124
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
125
|
+
readonly eligible: boolean;
|
|
126
|
+
readonly status: {
|
|
127
|
+
readonly status: "unsupported";
|
|
128
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
129
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
130
|
+
} | {
|
|
131
|
+
readonly status: "not-required";
|
|
132
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
133
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
134
|
+
} | {
|
|
135
|
+
readonly status: "reserved-unwrapped";
|
|
136
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
137
|
+
} | {
|
|
138
|
+
readonly status: "locked-child-pending-parent";
|
|
139
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
140
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
141
|
+
readonly fuses: number;
|
|
142
|
+
} | {
|
|
143
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
144
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
145
|
+
readonly fuses: number;
|
|
146
|
+
} | {
|
|
147
|
+
readonly status: "reserved-wrapped-locked";
|
|
148
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
149
|
+
readonly fuses: number;
|
|
150
|
+
} | {
|
|
151
|
+
readonly status: "mirrored-child";
|
|
152
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
153
|
+
readonly parentRegistry: `0x${string}`;
|
|
154
|
+
readonly fuses: number;
|
|
155
|
+
} | {
|
|
156
|
+
readonly status: "migrated-unlocked";
|
|
157
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
158
|
+
} | {
|
|
159
|
+
readonly status: "migrated-locked";
|
|
160
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
161
|
+
readonly registry: `0x${string}`;
|
|
162
|
+
};
|
|
163
|
+
readonly target: {
|
|
164
|
+
readonly supported: false;
|
|
165
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
166
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
167
|
+
} | {
|
|
168
|
+
readonly supported: true;
|
|
169
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
170
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
171
|
+
readonly tokenContract: `0x${string}`;
|
|
172
|
+
readonly tokenId: bigint;
|
|
173
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
174
|
+
readonly receiver: `0x${string}`;
|
|
175
|
+
};
|
|
176
|
+
readonly account: `0x${string}`;
|
|
177
|
+
readonly owner: `0x${string}` | null;
|
|
178
|
+
readonly authorized: boolean;
|
|
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: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
181
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
182
|
+
readonly eligible: boolean;
|
|
183
|
+
readonly status: {
|
|
184
|
+
readonly status: "unsupported";
|
|
185
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
186
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
187
|
+
} | {
|
|
188
|
+
readonly status: "not-required";
|
|
189
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
190
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
191
|
+
} | {
|
|
192
|
+
readonly status: "reserved-unwrapped";
|
|
193
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
194
|
+
} | {
|
|
195
|
+
readonly status: "locked-child-pending-parent";
|
|
196
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
197
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
198
|
+
readonly fuses: number;
|
|
199
|
+
} | {
|
|
200
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
201
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
202
|
+
readonly fuses: number;
|
|
203
|
+
} | {
|
|
204
|
+
readonly status: "reserved-wrapped-locked";
|
|
205
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
206
|
+
readonly fuses: number;
|
|
207
|
+
} | {
|
|
208
|
+
readonly status: "mirrored-child";
|
|
209
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
210
|
+
readonly parentRegistry: `0x${string}`;
|
|
211
|
+
readonly fuses: number;
|
|
212
|
+
} | {
|
|
213
|
+
readonly status: "migrated-unlocked";
|
|
214
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
215
|
+
} | {
|
|
216
|
+
readonly status: "migrated-locked";
|
|
217
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
218
|
+
readonly registry: `0x${string}`;
|
|
219
|
+
};
|
|
220
|
+
readonly target: {
|
|
221
|
+
readonly supported: false;
|
|
222
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
223
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
224
|
+
} | {
|
|
225
|
+
readonly supported: true;
|
|
226
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
227
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
228
|
+
readonly tokenContract: `0x${string}`;
|
|
229
|
+
readonly tokenId: bigint;
|
|
230
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
231
|
+
readonly receiver: `0x${string}`;
|
|
232
|
+
};
|
|
233
|
+
readonly account: `0x${string}`;
|
|
234
|
+
readonly owner: `0x${string}` | null;
|
|
235
|
+
readonly authorized: boolean;
|
|
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
|
+
}, Selected>) => EnsSuspenseQueryResult<Selected>;
|
|
238
|
+
declare const useMigrationPlan: <Selected = {
|
|
239
|
+
readonly status: "unsupported";
|
|
240
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
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")[];
|
|
242
|
+
} | {
|
|
243
|
+
readonly status: "not-required";
|
|
244
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
245
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE" | "ALREADY_MIGRATED";
|
|
246
|
+
} | {
|
|
247
|
+
readonly status: "blocked";
|
|
248
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
249
|
+
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")[];
|
|
250
|
+
} | {
|
|
251
|
+
readonly status: "authorization-required";
|
|
252
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
253
|
+
readonly account: `0x${string}`;
|
|
254
|
+
readonly owner: `0x${string}`;
|
|
255
|
+
readonly target: {
|
|
256
|
+
readonly supported: false;
|
|
257
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
258
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
259
|
+
} | {
|
|
260
|
+
readonly supported: true;
|
|
261
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
262
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
263
|
+
readonly tokenContract: `0x${string}`;
|
|
264
|
+
readonly tokenId: bigint;
|
|
265
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
266
|
+
readonly receiver: `0x${string}`;
|
|
267
|
+
};
|
|
268
|
+
} | {
|
|
269
|
+
readonly status: "ready";
|
|
270
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
271
|
+
readonly target: {
|
|
272
|
+
readonly supported: false;
|
|
273
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
274
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
275
|
+
} | {
|
|
276
|
+
readonly supported: true;
|
|
277
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
278
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
279
|
+
readonly tokenContract: `0x${string}`;
|
|
280
|
+
readonly tokenId: bigint;
|
|
281
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
282
|
+
readonly receiver: `0x${string}`;
|
|
283
|
+
};
|
|
284
|
+
readonly migration: {
|
|
285
|
+
readonly label: string;
|
|
286
|
+
readonly owner: `0x${string}`;
|
|
287
|
+
readonly resolver: `0x${string}`;
|
|
288
|
+
readonly subregistry: `0x${string}`;
|
|
289
|
+
};
|
|
290
|
+
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
291
|
+
}>(input: UseEnsQueryParameters<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
292
|
+
readonly status: "unsupported";
|
|
293
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
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")[];
|
|
295
|
+
} | {
|
|
296
|
+
readonly status: "not-required";
|
|
297
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
298
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE" | "ALREADY_MIGRATED";
|
|
299
|
+
} | {
|
|
300
|
+
readonly status: "blocked";
|
|
301
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
302
|
+
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")[];
|
|
303
|
+
} | {
|
|
304
|
+
readonly status: "authorization-required";
|
|
305
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
306
|
+
readonly account: `0x${string}`;
|
|
307
|
+
readonly owner: `0x${string}`;
|
|
308
|
+
readonly target: {
|
|
309
|
+
readonly supported: false;
|
|
310
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
311
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
312
|
+
} | {
|
|
313
|
+
readonly supported: true;
|
|
314
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
315
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
316
|
+
readonly tokenContract: `0x${string}`;
|
|
317
|
+
readonly tokenId: bigint;
|
|
318
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
319
|
+
readonly receiver: `0x${string}`;
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
readonly status: "ready";
|
|
323
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
324
|
+
readonly target: {
|
|
325
|
+
readonly supported: false;
|
|
326
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
327
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
328
|
+
} | {
|
|
329
|
+
readonly supported: true;
|
|
330
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
331
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
332
|
+
readonly tokenContract: `0x${string}`;
|
|
333
|
+
readonly tokenId: bigint;
|
|
334
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
335
|
+
readonly receiver: `0x${string}`;
|
|
336
|
+
};
|
|
337
|
+
readonly migration: {
|
|
338
|
+
readonly label: string;
|
|
339
|
+
readonly owner: `0x${string}`;
|
|
340
|
+
readonly resolver: `0x${string}`;
|
|
341
|
+
readonly subregistry: `0x${string}`;
|
|
342
|
+
};
|
|
343
|
+
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
344
|
+
}, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCanonicalResourceError>;
|
|
345
|
+
declare const useMigrationPlanSuspense: <Selected = {
|
|
346
|
+
readonly status: "unsupported";
|
|
347
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
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")[];
|
|
349
|
+
} | {
|
|
350
|
+
readonly status: "not-required";
|
|
351
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
352
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE" | "ALREADY_MIGRATED";
|
|
353
|
+
} | {
|
|
354
|
+
readonly status: "blocked";
|
|
355
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
356
|
+
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")[];
|
|
357
|
+
} | {
|
|
358
|
+
readonly status: "authorization-required";
|
|
359
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
360
|
+
readonly account: `0x${string}`;
|
|
361
|
+
readonly owner: `0x${string}`;
|
|
362
|
+
readonly target: {
|
|
363
|
+
readonly supported: false;
|
|
364
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
365
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
366
|
+
} | {
|
|
367
|
+
readonly supported: true;
|
|
368
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
369
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
370
|
+
readonly tokenContract: `0x${string}`;
|
|
371
|
+
readonly tokenId: bigint;
|
|
372
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
373
|
+
readonly receiver: `0x${string}`;
|
|
374
|
+
};
|
|
375
|
+
} | {
|
|
376
|
+
readonly status: "ready";
|
|
377
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
378
|
+
readonly target: {
|
|
379
|
+
readonly supported: false;
|
|
380
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
381
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
382
|
+
} | {
|
|
383
|
+
readonly supported: true;
|
|
384
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
385
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
386
|
+
readonly tokenContract: `0x${string}`;
|
|
387
|
+
readonly tokenId: bigint;
|
|
388
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
389
|
+
readonly receiver: `0x${string}`;
|
|
390
|
+
};
|
|
391
|
+
readonly migration: {
|
|
392
|
+
readonly label: string;
|
|
393
|
+
readonly owner: `0x${string}`;
|
|
394
|
+
readonly resolver: `0x${string}`;
|
|
395
|
+
readonly subregistry: `0x${string}`;
|
|
396
|
+
};
|
|
397
|
+
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
398
|
+
}>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
399
|
+
readonly status: "unsupported";
|
|
400
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
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")[];
|
|
402
|
+
} | {
|
|
403
|
+
readonly status: "not-required";
|
|
404
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
405
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE" | "ALREADY_MIGRATED";
|
|
406
|
+
} | {
|
|
407
|
+
readonly status: "blocked";
|
|
408
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
409
|
+
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")[];
|
|
410
|
+
} | {
|
|
411
|
+
readonly status: "authorization-required";
|
|
412
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
413
|
+
readonly account: `0x${string}`;
|
|
414
|
+
readonly owner: `0x${string}`;
|
|
415
|
+
readonly target: {
|
|
416
|
+
readonly supported: false;
|
|
417
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
418
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
419
|
+
} | {
|
|
420
|
+
readonly supported: true;
|
|
421
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
422
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
423
|
+
readonly tokenContract: `0x${string}`;
|
|
424
|
+
readonly tokenId: bigint;
|
|
425
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
426
|
+
readonly receiver: `0x${string}`;
|
|
427
|
+
};
|
|
428
|
+
} | {
|
|
429
|
+
readonly status: "ready";
|
|
430
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
431
|
+
readonly target: {
|
|
432
|
+
readonly supported: false;
|
|
433
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
434
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
435
|
+
} | {
|
|
436
|
+
readonly supported: true;
|
|
437
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
438
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
439
|
+
readonly tokenContract: `0x${string}`;
|
|
440
|
+
readonly tokenId: bigint;
|
|
441
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
442
|
+
readonly receiver: `0x${string}`;
|
|
443
|
+
};
|
|
444
|
+
readonly migration: {
|
|
445
|
+
readonly label: string;
|
|
446
|
+
readonly owner: `0x${string}`;
|
|
447
|
+
readonly resolver: `0x${string}`;
|
|
448
|
+
readonly subregistry: `0x${string}`;
|
|
449
|
+
};
|
|
450
|
+
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
451
|
+
}, Selected>) => EnsSuspenseQueryResult<Selected>;
|
|
452
|
+
declare const useMigrationStatus: <Selected = {
|
|
453
|
+
readonly status: "unsupported";
|
|
454
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
455
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
456
|
+
} | {
|
|
457
|
+
readonly status: "not-required";
|
|
458
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
459
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
460
|
+
} | {
|
|
461
|
+
readonly status: "reserved-unwrapped";
|
|
462
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
463
|
+
} | {
|
|
464
|
+
readonly status: "locked-child-pending-parent";
|
|
465
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
466
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
467
|
+
readonly fuses: number;
|
|
468
|
+
} | {
|
|
469
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
470
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
471
|
+
readonly fuses: number;
|
|
472
|
+
} | {
|
|
473
|
+
readonly status: "reserved-wrapped-locked";
|
|
474
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
475
|
+
readonly fuses: number;
|
|
476
|
+
} | {
|
|
477
|
+
readonly status: "mirrored-child";
|
|
478
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
479
|
+
readonly parentRegistry: `0x${string}`;
|
|
480
|
+
readonly fuses: number;
|
|
481
|
+
} | {
|
|
482
|
+
readonly status: "migrated-unlocked";
|
|
483
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
484
|
+
} | {
|
|
485
|
+
readonly status: "migrated-locked";
|
|
486
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
487
|
+
readonly registry: `0x${string}`;
|
|
488
|
+
}>(input: UseEnsQueryParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
489
|
+
readonly status: "unsupported";
|
|
490
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
491
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
492
|
+
} | {
|
|
493
|
+
readonly status: "not-required";
|
|
494
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
495
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
496
|
+
} | {
|
|
497
|
+
readonly status: "reserved-unwrapped";
|
|
498
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
499
|
+
} | {
|
|
500
|
+
readonly status: "locked-child-pending-parent";
|
|
501
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
502
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
503
|
+
readonly fuses: number;
|
|
504
|
+
} | {
|
|
505
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
506
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
507
|
+
readonly fuses: number;
|
|
508
|
+
} | {
|
|
509
|
+
readonly status: "reserved-wrapped-locked";
|
|
510
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
511
|
+
readonly fuses: number;
|
|
512
|
+
} | {
|
|
513
|
+
readonly status: "mirrored-child";
|
|
514
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
515
|
+
readonly parentRegistry: `0x${string}`;
|
|
516
|
+
readonly fuses: number;
|
|
517
|
+
} | {
|
|
518
|
+
readonly status: "migrated-unlocked";
|
|
519
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
520
|
+
} | {
|
|
521
|
+
readonly status: "migrated-locked";
|
|
522
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
523
|
+
readonly registry: `0x${string}`;
|
|
524
|
+
}, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCanonicalResourceError>;
|
|
525
|
+
declare const useMigrationStatusSuspense: <Selected = {
|
|
526
|
+
readonly status: "unsupported";
|
|
527
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
528
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
529
|
+
} | {
|
|
530
|
+
readonly status: "not-required";
|
|
531
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
532
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
533
|
+
} | {
|
|
534
|
+
readonly status: "reserved-unwrapped";
|
|
535
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
536
|
+
} | {
|
|
537
|
+
readonly status: "locked-child-pending-parent";
|
|
538
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
539
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
540
|
+
readonly fuses: number;
|
|
541
|
+
} | {
|
|
542
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
543
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
544
|
+
readonly fuses: number;
|
|
545
|
+
} | {
|
|
546
|
+
readonly status: "reserved-wrapped-locked";
|
|
547
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
548
|
+
readonly fuses: number;
|
|
549
|
+
} | {
|
|
550
|
+
readonly status: "mirrored-child";
|
|
551
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
552
|
+
readonly parentRegistry: `0x${string}`;
|
|
553
|
+
readonly fuses: number;
|
|
554
|
+
} | {
|
|
555
|
+
readonly status: "migrated-unlocked";
|
|
556
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
557
|
+
} | {
|
|
558
|
+
readonly status: "migrated-locked";
|
|
559
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
560
|
+
readonly registry: `0x${string}`;
|
|
561
|
+
}>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
562
|
+
readonly status: "unsupported";
|
|
563
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
564
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
565
|
+
} | {
|
|
566
|
+
readonly status: "not-required";
|
|
567
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
568
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
569
|
+
} | {
|
|
570
|
+
readonly status: "reserved-unwrapped";
|
|
571
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
572
|
+
} | {
|
|
573
|
+
readonly status: "locked-child-pending-parent";
|
|
574
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
575
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
576
|
+
readonly fuses: number;
|
|
577
|
+
} | {
|
|
578
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
579
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
580
|
+
readonly fuses: number;
|
|
581
|
+
} | {
|
|
582
|
+
readonly status: "reserved-wrapped-locked";
|
|
583
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
584
|
+
readonly fuses: number;
|
|
585
|
+
} | {
|
|
586
|
+
readonly status: "mirrored-child";
|
|
587
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
588
|
+
readonly parentRegistry: `0x${string}`;
|
|
589
|
+
readonly fuses: number;
|
|
590
|
+
} | {
|
|
591
|
+
readonly status: "migrated-unlocked";
|
|
592
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
593
|
+
} | {
|
|
594
|
+
readonly status: "migrated-locked";
|
|
595
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
596
|
+
readonly registry: `0x${string}`;
|
|
597
|
+
}, Selected>) => EnsSuspenseQueryResult<Selected>;
|
|
598
|
+
declare const useMigrationTarget: <Selected = {
|
|
599
|
+
readonly supported: false;
|
|
600
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
601
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
602
|
+
} | {
|
|
603
|
+
readonly supported: true;
|
|
604
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
605
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
606
|
+
readonly tokenContract: `0x${string}`;
|
|
607
|
+
readonly tokenId: bigint;
|
|
608
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
609
|
+
readonly receiver: `0x${string}`;
|
|
610
|
+
}>(input: UseEnsQueryParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
611
|
+
readonly supported: false;
|
|
612
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
613
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
614
|
+
} | {
|
|
615
|
+
readonly supported: true;
|
|
616
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
617
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
618
|
+
readonly tokenContract: `0x${string}`;
|
|
619
|
+
readonly tokenId: bigint;
|
|
620
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
621
|
+
readonly receiver: `0x${string}`;
|
|
622
|
+
}, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCanonicalResourceError>;
|
|
623
|
+
declare const useMigrationTargetSuspense: <Selected = {
|
|
624
|
+
readonly supported: false;
|
|
625
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
626
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
627
|
+
} | {
|
|
628
|
+
readonly supported: true;
|
|
629
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
630
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
631
|
+
readonly tokenContract: `0x${string}`;
|
|
632
|
+
readonly tokenId: bigint;
|
|
633
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
634
|
+
readonly receiver: `0x${string}`;
|
|
635
|
+
}>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
636
|
+
readonly supported: false;
|
|
637
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
638
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
639
|
+
} | {
|
|
640
|
+
readonly supported: true;
|
|
641
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
642
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
643
|
+
readonly tokenContract: `0x${string}`;
|
|
644
|
+
readonly tokenId: bigint;
|
|
645
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
646
|
+
readonly receiver: `0x${string}`;
|
|
647
|
+
}, Selected>) => EnsSuspenseQueryResult<Selected>;
|
|
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>;
|
|
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
|
+
//#endregion
|
|
652
|
+
export { useApproveMigration, useMigrateName, useMigrateNames, useMigrationEligibility, useMigrationEligibilitySuspense, useMigrationPlan, useMigrationPlanSuspense, useMigrationStatus, useMigrationStatusSuspense, useMigrationTarget, useMigrationTargetSuspense };
|
|
653
|
+
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/hooks/migration.ts"],"mappings":";;;;;;;cAea,0BAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,eAAA,mCAAA;cACpE,kCAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,uBAAA;cACpF,mBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,eAAA,mCAAA;cACtD,2BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,uBAAA;cACtE,qBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,eAAA,mCAAA;cAC1D,6BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,cAAA,uBAAA;cAC1E,qBAAkB;;;;;;;;;;;;UAAwC;;;;;;;;;;;;GAAA,cAAA,eAAA,mCAAA;cAC1D,6BAA0B;;;;;;;;;;;;UAAgD;;;;;;;;;;;;GAAA,cAAA,uBAAA;cAE1E,sBAAmB,UAAnB,4CAAmB,qDAAA,8CAAA,gBAAA,2CAAA,qDAAA,8CAAA;cACnB,iBAAc,UAAd,4CAAc,gDAAA,4CAAA,gBAAA,2CAAA,gDAAA,4CAAA;cACd,kBAAe,UAAf,4CAAe,iDAAA,iDAAA,gBAAA,2CAAA,iDAAA,iDAAA"}
|