@ensforge/react 0.0.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/atoms/batch.d.ts +6 -6
- package/dist/atoms/batch.d.ts.map +1 -1
- package/dist/atoms/capabilities.d.ts +20 -20
- package/dist/atoms/capabilities.d.ts.map +1 -1
- package/dist/atoms/dns.d.ts +7 -7
- package/dist/atoms/dns.d.ts.map +1 -1
- package/dist/atoms/events.d.ts +29 -29
- package/dist/atoms/events.d.ts.map +1 -1
- package/dist/atoms/generic.d.ts +5 -4
- package/dist/atoms/generic.d.ts.map +1 -1
- package/dist/atoms/generic.js.map +1 -1
- package/dist/atoms/migration.d.ts +5 -5
- package/dist/atoms/migration.d.ts.map +1 -1
- package/dist/atoms/name.d.ts +23 -23
- 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 +12 -12
- package/dist/atoms/records.d.ts.map +1 -1
- package/dist/atoms/registration.d.ts +8 -8
- package/dist/atoms/registration.d.ts.map +1 -1
- package/dist/atoms/resolution.d.ts +8 -8
- 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 +107 -107
- package/dist/hooks/capabilities.d.ts.map +1 -1
- package/dist/hooks/dns.d.ts +39 -39
- package/dist/hooks/dns.d.ts.map +1 -1
- package/dist/hooks/events.d.ts +98 -98
- package/dist/hooks/events.d.ts.map +1 -1
- package/dist/hooks/generic.d.ts +5 -5
- 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 +27 -27
- package/dist/hooks/migration.d.ts.map +1 -1
- package/dist/hooks/name.d.ts +73 -73
- 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 +69 -69
- package/dist/hooks/records.d.ts.map +1 -1
- package/dist/hooks/registration.d.ts +45 -45
- package/dist/hooks/registration.d.ts.map +1 -1
- package/dist/hooks/resolution.d.ts +33 -33
- 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 +11 -11
- 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/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/hooks/capabilities.ts"],"mappings":";;;;;cAqBa,sBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/hooks/capabilities.ts"],"mappings":";;;;;cAqBa,sBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;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AAsC;;;;;;;;;;;;4BAAA,2BAAA,YAAA,cAAA,iCAAA;cACzD,8BAA2B;;;;;;;;;;;;UAA8C;;;;;;;;;;;;4BAAA,2BAAA,YAAA,sBAAA"}
|
package/dist/hooks/dns.d.ts
CHANGED
|
@@ -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/dns.d.ts
|
|
8
|
-
declare const useDnsClaimStatus: <
|
|
8
|
+
declare const useDnsClaimStatus: <Mapped = {
|
|
9
9
|
readonly status: "unsupported";
|
|
10
10
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
11
11
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -19,7 +19,7 @@ declare const useDnsClaimStatus: <Selected = {
|
|
|
19
19
|
readonly status: "proof-required";
|
|
20
20
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
21
21
|
readonly previousInception: bigint;
|
|
22
|
-
}>(input:
|
|
22
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetDnsClaimStatusParameters, {
|
|
23
23
|
readonly status: "unsupported";
|
|
24
24
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
25
25
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -33,8 +33,8 @@ declare const useDnsClaimStatus: <Selected = {
|
|
|
33
33
|
readonly status: "proof-required";
|
|
34
34
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
35
35
|
readonly previousInception: bigint;
|
|
36
|
-
},
|
|
37
|
-
declare const useDnsClaimStatusSuspense: <
|
|
36
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
37
|
+
declare const useDnsClaimStatusSuspense: <Mapped = {
|
|
38
38
|
readonly status: "unsupported";
|
|
39
39
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
40
40
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -48,7 +48,7 @@ declare const useDnsClaimStatusSuspense: <Selected = {
|
|
|
48
48
|
readonly status: "proof-required";
|
|
49
49
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
50
50
|
readonly previousInception: bigint;
|
|
51
|
-
}>(input:
|
|
51
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetDnsClaimStatusParameters, {
|
|
52
52
|
readonly status: "unsupported";
|
|
53
53
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
54
54
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -62,8 +62,8 @@ declare const useDnsClaimStatusSuspense: <Selected = {
|
|
|
62
62
|
readonly status: "proof-required";
|
|
63
63
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
64
64
|
readonly previousInception: bigint;
|
|
65
|
-
},
|
|
66
|
-
declare const useDnsImportPlan: <
|
|
65
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
66
|
+
declare const useDnsImportPlan: <Mapped = {
|
|
67
67
|
readonly status: "unsupported";
|
|
68
68
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
69
69
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -83,7 +83,7 @@ declare const useDnsImportPlan: <Selected = {
|
|
|
83
83
|
readonly name: `0x${string}` & import("effect/Brand").Brand<"DnsEncodedName">;
|
|
84
84
|
readonly previousInception: bigint;
|
|
85
85
|
};
|
|
86
|
-
}>(input:
|
|
86
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetDnsImportPlanParameters, {
|
|
87
87
|
readonly status: "unsupported";
|
|
88
88
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
89
89
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -103,8 +103,8 @@ declare const useDnsImportPlan: <Selected = {
|
|
|
103
103
|
readonly name: `0x${string}` & import("effect/Brand").Brand<"DnsEncodedName">;
|
|
104
104
|
readonly previousInception: bigint;
|
|
105
105
|
};
|
|
106
|
-
},
|
|
107
|
-
declare const useDnsImportPlanSuspense: <
|
|
106
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
107
|
+
declare const useDnsImportPlanSuspense: <Mapped = {
|
|
108
108
|
readonly status: "unsupported";
|
|
109
109
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
110
110
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -124,7 +124,7 @@ declare const useDnsImportPlanSuspense: <Selected = {
|
|
|
124
124
|
readonly name: `0x${string}` & import("effect/Brand").Brand<"DnsEncodedName">;
|
|
125
125
|
readonly previousInception: bigint;
|
|
126
126
|
};
|
|
127
|
-
}>(input:
|
|
127
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetDnsImportPlanParameters, {
|
|
128
128
|
readonly status: "unsupported";
|
|
129
129
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
130
130
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -144,34 +144,34 @@ declare const useDnsImportPlanSuspense: <Selected = {
|
|
|
144
144
|
readonly name: `0x${string}` & import("effect/Brand").Brand<"DnsEncodedName">;
|
|
145
145
|
readonly previousInception: bigint;
|
|
146
146
|
};
|
|
147
|
-
},
|
|
148
|
-
declare const useDnsRecord: <
|
|
147
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
148
|
+
declare const useDnsRecord: <Mapped = {
|
|
149
149
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
150
150
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
151
151
|
readonly resource: number;
|
|
152
152
|
readonly resolver: `0x${string}` | null;
|
|
153
153
|
readonly value: `0x${string}` | null;
|
|
154
|
-
}>(input:
|
|
154
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetDnsRecordParameters, {
|
|
155
155
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
156
156
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
157
157
|
readonly resource: number;
|
|
158
158
|
readonly resolver: `0x${string}` | null;
|
|
159
159
|
readonly value: `0x${string}` | null;
|
|
160
|
-
},
|
|
161
|
-
declare const useDnsRecordSuspense: <
|
|
160
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
161
|
+
declare const useDnsRecordSuspense: <Mapped = {
|
|
162
162
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
163
163
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
164
164
|
readonly resource: number;
|
|
165
165
|
readonly resolver: `0x${string}` | null;
|
|
166
166
|
readonly value: `0x${string}` | null;
|
|
167
|
-
}>(input:
|
|
167
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetDnsRecordParameters, {
|
|
168
168
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
169
169
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
170
170
|
readonly resource: number;
|
|
171
171
|
readonly resolver: `0x${string}` | null;
|
|
172
172
|
readonly value: `0x${string}` | null;
|
|
173
|
-
},
|
|
174
|
-
declare const useDnsRecords: <
|
|
173
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
174
|
+
declare const useDnsRecords: <Mapped = {
|
|
175
175
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
176
176
|
readonly resolver: `0x${string}` | null;
|
|
177
177
|
readonly records: readonly {
|
|
@@ -181,7 +181,7 @@ declare const useDnsRecords: <Selected = {
|
|
|
181
181
|
readonly resolver: `0x${string}` | null;
|
|
182
182
|
readonly value: `0x${string}` | null;
|
|
183
183
|
}[];
|
|
184
|
-
}>(input:
|
|
184
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetDnsRecordsParameters, {
|
|
185
185
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
186
186
|
readonly resolver: `0x${string}` | null;
|
|
187
187
|
readonly records: readonly {
|
|
@@ -191,8 +191,8 @@ declare const useDnsRecords: <Selected = {
|
|
|
191
191
|
readonly resolver: `0x${string}` | null;
|
|
192
192
|
readonly value: `0x${string}` | null;
|
|
193
193
|
}[];
|
|
194
|
-
},
|
|
195
|
-
declare const useDnsRecordsSuspense: <
|
|
194
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
195
|
+
declare const useDnsRecordsSuspense: <Mapped = {
|
|
196
196
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
197
197
|
readonly resolver: `0x${string}` | null;
|
|
198
198
|
readonly records: readonly {
|
|
@@ -202,7 +202,7 @@ declare const useDnsRecordsSuspense: <Selected = {
|
|
|
202
202
|
readonly resolver: `0x${string}` | null;
|
|
203
203
|
readonly value: `0x${string}` | null;
|
|
204
204
|
}[];
|
|
205
|
-
}>(input:
|
|
205
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetDnsRecordsParameters, {
|
|
206
206
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
207
207
|
readonly resolver: `0x${string}` | null;
|
|
208
208
|
readonly records: readonly {
|
|
@@ -212,47 +212,47 @@ declare const useDnsRecordsSuspense: <Selected = {
|
|
|
212
212
|
readonly resolver: `0x${string}` | null;
|
|
213
213
|
readonly value: `0x${string}` | null;
|
|
214
214
|
}[];
|
|
215
|
-
},
|
|
216
|
-
declare const useZoneHash: <
|
|
215
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
216
|
+
declare const useZoneHash: <Mapped = {
|
|
217
217
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
218
218
|
readonly resolver: `0x${string}` | null;
|
|
219
219
|
readonly value: `0x${string}` | null;
|
|
220
|
-
}>(input:
|
|
220
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetZoneHashParameters, {
|
|
221
221
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
222
222
|
readonly resolver: `0x${string}` | null;
|
|
223
223
|
readonly value: `0x${string}` | null;
|
|
224
|
-
},
|
|
225
|
-
declare const useZoneHashSuspense: <
|
|
224
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
225
|
+
declare const useZoneHashSuspense: <Mapped = {
|
|
226
226
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
227
227
|
readonly resolver: `0x${string}` | null;
|
|
228
228
|
readonly value: `0x${string}` | null;
|
|
229
|
-
}>(input:
|
|
229
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetZoneHashParameters, {
|
|
230
230
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
231
231
|
readonly resolver: `0x${string}` | null;
|
|
232
232
|
readonly value: `0x${string}` | null;
|
|
233
|
-
},
|
|
234
|
-
declare const useHasDnsRecords: <
|
|
233
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
234
|
+
declare const useHasDnsRecords: <Mapped = {
|
|
235
235
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
236
236
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
237
237
|
readonly resolver: `0x${string}` | null;
|
|
238
238
|
readonly exists: boolean;
|
|
239
|
-
}>(input:
|
|
239
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").HasDnsRecordsParameters, {
|
|
240
240
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
241
241
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
242
242
|
readonly resolver: `0x${string}` | null;
|
|
243
243
|
readonly exists: boolean;
|
|
244
|
-
},
|
|
245
|
-
declare const useHasDnsRecordsSuspense: <
|
|
244
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
245
|
+
declare const useHasDnsRecordsSuspense: <Mapped = {
|
|
246
246
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
247
247
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
248
248
|
readonly resolver: `0x${string}` | null;
|
|
249
249
|
readonly exists: boolean;
|
|
250
|
-
}>(input:
|
|
250
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").HasDnsRecordsParameters, {
|
|
251
251
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
252
252
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
253
253
|
readonly resolver: `0x${string}` | null;
|
|
254
254
|
readonly exists: boolean;
|
|
255
|
-
},
|
|
255
|
+
}, import("@ensforge/core").GetDnsClaimStatusError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
256
256
|
declare const useClaimDnsName: (options?: EnsMutationOptions<import("@ensforge/core").ClaimDnsNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").ClaimDnsNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
257
257
|
declare const useImportDnsName: (options?: EnsMutationOptions<import("@ensforge/core").ImportDnsNameParameters, import("@ensforge/core").ImportDnsNameResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").ImportDnsNameParameters, import("@ensforge/core").ImportDnsNameResult, import("@ensforge/core").WriteError>;
|
|
258
258
|
declare const useSetDnsRecords: (options?: EnsMutationOptions<import("@ensforge/core").SetDnsRecordsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").SetDnsRecordsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
package/dist/hooks/dns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dns.d.ts","names":[],"sources":["../../src/hooks/dns.ts"],"mappings":";;;;;;;cAkBa,oBAAiB;;;;;;;;;;;;;;UAAuC;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"dns.d.ts","names":[],"sources":["../../src/hooks/dns.ts"],"mappings":";;;;;;;cAkBa,oBAAiB;;;;;;;;;;;;;;UAAuC;;;;;;;;;;;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cACxD,4BAAyB;;;;;;;;;;;;;;UAA+C;;;;;;;;;;;;;;4BAAA,wBAAA,YAAA,sBAAA;cACxE,mBAAgB;;;;;;;;;;;;;;;;;;;;UAAsC;;;;;;;;;;;;;;;;;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cACtD,2BAAwB;;;;;;;;;;;;;;;;;;;;UAA8C;;;;;;;;;;;;;;;;;;;;4BAAA,wBAAA,YAAA,sBAAA;cACtE,eAAY;;;;;;UAAkC;;;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cAC9C,uBAAoB;;;;;;UAA0C;;;;;;4BAAA,wBAAA,YAAA,sBAAA;cAC9D,gBAAa;;;;;;;;;;UAAmC;;;;;;;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cAChD,wBAAqB;;;;;;;;;;UAA2C;;;;;;;;;;4BAAA,wBAAA,YAAA,sBAAA;cAChE,cAAW;;;;UAAiC;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cAC5C,sBAAmB;;;;UAAyC;;;;4BAAA,wBAAA,YAAA,sBAAA;cAC5D,mBAAgB;;;;;UAAmC;;;;;4BAAA,wBAAA,YAAA,cAAA,iCAAA;cACnD,2BAAwB;;;;;UAA2C;;;;;4BAAA,wBAAA,YAAA,sBAAA;cAEnE,kBAAe,UAAf,4CAAe,iDAAA,8CAAA,gBAAA,2CAAA,iDAAA,8CAAA;cACf,mBAAgB,UAAhB,4CAAgB,kDAAA,8CAAA,gBAAA,2CAAA,kDAAA,8CAAA;cAChB,mBAAgB,UAAhB,4CAAgB,kDAAA,8CAAA,gBAAA,2CAAA,kDAAA,8CAAA;cAChB,iBAAc,UAAd,4CAAc,gDAAA,8CAAA,gBAAA,2CAAA,gDAAA,8CAAA"}
|
package/dist/hooks/events.d.ts
CHANGED
|
@@ -1,275 +1,275 @@
|
|
|
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/events.d.ts
|
|
6
|
-
declare const useEnsEvents: <
|
|
7
|
-
readonly blockNumber: bigint | null;
|
|
8
|
-
readonly transactionHash: `0x${string}` | null;
|
|
6
|
+
declare const useEnsEvents: <Mapped = readonly {
|
|
9
7
|
readonly protocol: "v1" | "v2";
|
|
10
8
|
readonly raw: {
|
|
11
9
|
readonly topics: readonly `0x${string}`[];
|
|
12
10
|
readonly data: `0x${string}`;
|
|
13
11
|
readonly args: unknown;
|
|
14
12
|
};
|
|
15
|
-
readonly
|
|
13
|
+
readonly blockNumber: bigint | null;
|
|
14
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
15
|
+
readonly transactionHash: `0x${string}` | null;
|
|
16
16
|
readonly contract: `0x${string}`;
|
|
17
17
|
readonly transactionIndex: number | null;
|
|
18
18
|
readonly logIndex: number | null;
|
|
19
|
-
readonly contractKind: "
|
|
19
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
20
20
|
readonly eventName: string;
|
|
21
21
|
readonly removed: boolean;
|
|
22
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
23
22
|
readonly to?: `0x${string}` | undefined;
|
|
23
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
24
|
+
readonly tokenId?: bigint | undefined;
|
|
25
|
+
readonly owner?: `0x${string}` | undefined;
|
|
24
26
|
readonly from?: `0x${string}` | undefined;
|
|
27
|
+
readonly label?: string | undefined;
|
|
25
28
|
readonly resolver?: `0x${string}` | undefined;
|
|
26
|
-
readonly owner?: `0x${string}` | undefined;
|
|
27
29
|
readonly node?: `0x${string}` | undefined;
|
|
28
|
-
readonly label?: string | undefined;
|
|
29
|
-
readonly tokenId?: bigint | undefined;
|
|
30
30
|
readonly commitment?: `0x${string}` | undefined;
|
|
31
|
-
}[]>(input:
|
|
32
|
-
readonly blockNumber: bigint | null;
|
|
33
|
-
readonly transactionHash: `0x${string}` | null;
|
|
31
|
+
}[]>(input: UseEnsAtomParameters<import("@ensforge/core").GetEnsEventsParameters, readonly {
|
|
34
32
|
readonly protocol: "v1" | "v2";
|
|
35
33
|
readonly raw: {
|
|
36
34
|
readonly topics: readonly `0x${string}`[];
|
|
37
35
|
readonly data: `0x${string}`;
|
|
38
36
|
readonly args: unknown;
|
|
39
37
|
};
|
|
40
|
-
readonly
|
|
38
|
+
readonly blockNumber: bigint | null;
|
|
39
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
40
|
+
readonly transactionHash: `0x${string}` | null;
|
|
41
41
|
readonly contract: `0x${string}`;
|
|
42
42
|
readonly transactionIndex: number | null;
|
|
43
43
|
readonly logIndex: number | null;
|
|
44
|
-
readonly contractKind: "
|
|
44
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
45
45
|
readonly eventName: string;
|
|
46
46
|
readonly removed: boolean;
|
|
47
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
48
47
|
readonly to?: `0x${string}` | undefined;
|
|
48
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
49
|
+
readonly tokenId?: bigint | undefined;
|
|
50
|
+
readonly owner?: `0x${string}` | undefined;
|
|
49
51
|
readonly from?: `0x${string}` | undefined;
|
|
52
|
+
readonly label?: string | undefined;
|
|
50
53
|
readonly resolver?: `0x${string}` | undefined;
|
|
51
|
-
readonly owner?: `0x${string}` | undefined;
|
|
52
54
|
readonly node?: `0x${string}` | undefined;
|
|
53
|
-
readonly label?: string | undefined;
|
|
54
|
-
readonly tokenId?: bigint | undefined;
|
|
55
55
|
readonly commitment?: `0x${string}` | undefined;
|
|
56
|
-
}[],
|
|
57
|
-
declare const useEnsEventsSuspense: <
|
|
58
|
-
readonly blockNumber: bigint | null;
|
|
59
|
-
readonly transactionHash: `0x${string}` | null;
|
|
56
|
+
}[], import("@ensforge/core").GetEnsEventsError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetEnsEventsError>;
|
|
57
|
+
declare const useEnsEventsSuspense: <Mapped = readonly {
|
|
60
58
|
readonly protocol: "v1" | "v2";
|
|
61
59
|
readonly raw: {
|
|
62
60
|
readonly topics: readonly `0x${string}`[];
|
|
63
61
|
readonly data: `0x${string}`;
|
|
64
62
|
readonly args: unknown;
|
|
65
63
|
};
|
|
66
|
-
readonly
|
|
64
|
+
readonly blockNumber: bigint | null;
|
|
65
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
66
|
+
readonly transactionHash: `0x${string}` | null;
|
|
67
67
|
readonly contract: `0x${string}`;
|
|
68
68
|
readonly transactionIndex: number | null;
|
|
69
69
|
readonly logIndex: number | null;
|
|
70
|
-
readonly contractKind: "
|
|
70
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
71
71
|
readonly eventName: string;
|
|
72
72
|
readonly removed: boolean;
|
|
73
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
74
73
|
readonly to?: `0x${string}` | undefined;
|
|
74
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
75
|
+
readonly tokenId?: bigint | undefined;
|
|
76
|
+
readonly owner?: `0x${string}` | undefined;
|
|
75
77
|
readonly from?: `0x${string}` | undefined;
|
|
78
|
+
readonly label?: string | undefined;
|
|
76
79
|
readonly resolver?: `0x${string}` | undefined;
|
|
77
|
-
readonly owner?: `0x${string}` | undefined;
|
|
78
80
|
readonly node?: `0x${string}` | undefined;
|
|
79
|
-
readonly label?: string | undefined;
|
|
80
|
-
readonly tokenId?: bigint | undefined;
|
|
81
81
|
readonly commitment?: `0x${string}` | undefined;
|
|
82
|
-
}[]>(input:
|
|
83
|
-
readonly blockNumber: bigint | null;
|
|
84
|
-
readonly transactionHash: `0x${string}` | null;
|
|
82
|
+
}[]>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetEnsEventsParameters, readonly {
|
|
85
83
|
readonly protocol: "v1" | "v2";
|
|
86
84
|
readonly raw: {
|
|
87
85
|
readonly topics: readonly `0x${string}`[];
|
|
88
86
|
readonly data: `0x${string}`;
|
|
89
87
|
readonly args: unknown;
|
|
90
88
|
};
|
|
91
|
-
readonly
|
|
89
|
+
readonly blockNumber: bigint | null;
|
|
90
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
91
|
+
readonly transactionHash: `0x${string}` | null;
|
|
92
92
|
readonly contract: `0x${string}`;
|
|
93
93
|
readonly transactionIndex: number | null;
|
|
94
94
|
readonly logIndex: number | null;
|
|
95
|
-
readonly contractKind: "
|
|
95
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
96
96
|
readonly eventName: string;
|
|
97
97
|
readonly removed: boolean;
|
|
98
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
99
98
|
readonly to?: `0x${string}` | undefined;
|
|
99
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
100
|
+
readonly tokenId?: bigint | undefined;
|
|
101
|
+
readonly owner?: `0x${string}` | undefined;
|
|
100
102
|
readonly from?: `0x${string}` | undefined;
|
|
103
|
+
readonly label?: string | undefined;
|
|
101
104
|
readonly resolver?: `0x${string}` | undefined;
|
|
102
|
-
readonly owner?: `0x${string}` | undefined;
|
|
103
105
|
readonly node?: `0x${string}` | undefined;
|
|
104
|
-
readonly label?: string | undefined;
|
|
105
|
-
readonly tokenId?: bigint | undefined;
|
|
106
106
|
readonly commitment?: `0x${string}` | undefined;
|
|
107
|
-
}[],
|
|
108
|
-
declare const useNameHistory: <
|
|
107
|
+
}[], import("@ensforge/core").GetEnsEventsError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
108
|
+
declare const useNameHistory: <Mapped = {
|
|
109
109
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
110
110
|
readonly events: readonly {
|
|
111
|
-
readonly blockNumber: bigint | null;
|
|
112
|
-
readonly transactionHash: `0x${string}` | null;
|
|
113
111
|
readonly protocol: "v1" | "v2";
|
|
114
112
|
readonly raw: {
|
|
115
113
|
readonly topics: readonly `0x${string}`[];
|
|
116
114
|
readonly data: `0x${string}`;
|
|
117
115
|
readonly args: unknown;
|
|
118
116
|
};
|
|
119
|
-
readonly
|
|
117
|
+
readonly blockNumber: bigint | null;
|
|
118
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
119
|
+
readonly transactionHash: `0x${string}` | null;
|
|
120
120
|
readonly contract: `0x${string}`;
|
|
121
121
|
readonly transactionIndex: number | null;
|
|
122
122
|
readonly logIndex: number | null;
|
|
123
|
-
readonly contractKind: "
|
|
123
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
124
124
|
readonly eventName: string;
|
|
125
125
|
readonly removed: boolean;
|
|
126
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
127
126
|
readonly to?: `0x${string}` | undefined;
|
|
127
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
128
|
+
readonly tokenId?: bigint | undefined;
|
|
129
|
+
readonly owner?: `0x${string}` | undefined;
|
|
128
130
|
readonly from?: `0x${string}` | undefined;
|
|
131
|
+
readonly label?: string | undefined;
|
|
129
132
|
readonly resolver?: `0x${string}` | undefined;
|
|
130
|
-
readonly owner?: `0x${string}` | undefined;
|
|
131
133
|
readonly node?: `0x${string}` | undefined;
|
|
132
|
-
readonly label?: string | undefined;
|
|
133
|
-
readonly tokenId?: bigint | undefined;
|
|
134
134
|
readonly commitment?: `0x${string}` | undefined;
|
|
135
135
|
}[];
|
|
136
|
-
}>(input:
|
|
136
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").GetNameHistoryParameters, {
|
|
137
137
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
138
138
|
readonly events: readonly {
|
|
139
|
-
readonly blockNumber: bigint | null;
|
|
140
|
-
readonly transactionHash: `0x${string}` | null;
|
|
141
139
|
readonly protocol: "v1" | "v2";
|
|
142
140
|
readonly raw: {
|
|
143
141
|
readonly topics: readonly `0x${string}`[];
|
|
144
142
|
readonly data: `0x${string}`;
|
|
145
143
|
readonly args: unknown;
|
|
146
144
|
};
|
|
147
|
-
readonly
|
|
145
|
+
readonly blockNumber: bigint | null;
|
|
146
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
147
|
+
readonly transactionHash: `0x${string}` | null;
|
|
148
148
|
readonly contract: `0x${string}`;
|
|
149
149
|
readonly transactionIndex: number | null;
|
|
150
150
|
readonly logIndex: number | null;
|
|
151
|
-
readonly contractKind: "
|
|
151
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
152
152
|
readonly eventName: string;
|
|
153
153
|
readonly removed: boolean;
|
|
154
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
155
154
|
readonly to?: `0x${string}` | undefined;
|
|
155
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
156
|
+
readonly tokenId?: bigint | undefined;
|
|
157
|
+
readonly owner?: `0x${string}` | undefined;
|
|
156
158
|
readonly from?: `0x${string}` | undefined;
|
|
159
|
+
readonly label?: string | undefined;
|
|
157
160
|
readonly resolver?: `0x${string}` | undefined;
|
|
158
|
-
readonly owner?: `0x${string}` | undefined;
|
|
159
161
|
readonly node?: `0x${string}` | undefined;
|
|
160
|
-
readonly label?: string | undefined;
|
|
161
|
-
readonly tokenId?: bigint | undefined;
|
|
162
162
|
readonly commitment?: `0x${string}` | undefined;
|
|
163
163
|
}[];
|
|
164
|
-
},
|
|
165
|
-
declare const useNameHistorySuspense: <
|
|
164
|
+
}, import("@ensforge/core").GetEnsEventsError, Mapped>) => EnsAtomResult<Mapped, import("@ensforge/core").GetEnsEventsError>;
|
|
165
|
+
declare const useNameHistorySuspense: <Mapped = {
|
|
166
166
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
167
167
|
readonly events: readonly {
|
|
168
|
-
readonly blockNumber: bigint | null;
|
|
169
|
-
readonly transactionHash: `0x${string}` | null;
|
|
170
168
|
readonly protocol: "v1" | "v2";
|
|
171
169
|
readonly raw: {
|
|
172
170
|
readonly topics: readonly `0x${string}`[];
|
|
173
171
|
readonly data: `0x${string}`;
|
|
174
172
|
readonly args: unknown;
|
|
175
173
|
};
|
|
176
|
-
readonly
|
|
174
|
+
readonly blockNumber: bigint | null;
|
|
175
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
176
|
+
readonly transactionHash: `0x${string}` | null;
|
|
177
177
|
readonly contract: `0x${string}`;
|
|
178
178
|
readonly transactionIndex: number | null;
|
|
179
179
|
readonly logIndex: number | null;
|
|
180
|
-
readonly contractKind: "
|
|
180
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
181
181
|
readonly eventName: string;
|
|
182
182
|
readonly removed: boolean;
|
|
183
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
184
183
|
readonly to?: `0x${string}` | undefined;
|
|
184
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
185
|
+
readonly tokenId?: bigint | undefined;
|
|
186
|
+
readonly owner?: `0x${string}` | undefined;
|
|
185
187
|
readonly from?: `0x${string}` | undefined;
|
|
188
|
+
readonly label?: string | undefined;
|
|
186
189
|
readonly resolver?: `0x${string}` | undefined;
|
|
187
|
-
readonly owner?: `0x${string}` | undefined;
|
|
188
190
|
readonly node?: `0x${string}` | undefined;
|
|
189
|
-
readonly label?: string | undefined;
|
|
190
|
-
readonly tokenId?: bigint | undefined;
|
|
191
191
|
readonly commitment?: `0x${string}` | undefined;
|
|
192
192
|
}[];
|
|
193
|
-
}>(input:
|
|
193
|
+
}>(input: UseEnsSuspenseAtomParameters<import("@ensforge/core").GetNameHistoryParameters, {
|
|
194
194
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
195
195
|
readonly events: readonly {
|
|
196
|
-
readonly blockNumber: bigint | null;
|
|
197
|
-
readonly transactionHash: `0x${string}` | null;
|
|
198
196
|
readonly protocol: "v1" | "v2";
|
|
199
197
|
readonly raw: {
|
|
200
198
|
readonly topics: readonly `0x${string}`[];
|
|
201
199
|
readonly data: `0x${string}`;
|
|
202
200
|
readonly args: unknown;
|
|
203
201
|
};
|
|
204
|
-
readonly
|
|
202
|
+
readonly blockNumber: bigint | null;
|
|
203
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
204
|
+
readonly transactionHash: `0x${string}` | null;
|
|
205
205
|
readonly contract: `0x${string}`;
|
|
206
206
|
readonly transactionIndex: number | null;
|
|
207
207
|
readonly logIndex: number | null;
|
|
208
|
-
readonly contractKind: "
|
|
208
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
209
209
|
readonly eventName: string;
|
|
210
210
|
readonly removed: boolean;
|
|
211
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
212
211
|
readonly to?: `0x${string}` | undefined;
|
|
212
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
213
|
+
readonly tokenId?: bigint | undefined;
|
|
214
|
+
readonly owner?: `0x${string}` | undefined;
|
|
213
215
|
readonly from?: `0x${string}` | undefined;
|
|
216
|
+
readonly label?: string | undefined;
|
|
214
217
|
readonly resolver?: `0x${string}` | undefined;
|
|
215
|
-
readonly owner?: `0x${string}` | undefined;
|
|
216
218
|
readonly node?: `0x${string}` | undefined;
|
|
217
|
-
readonly label?: string | undefined;
|
|
218
|
-
readonly tokenId?: bigint | undefined;
|
|
219
219
|
readonly commitment?: `0x${string}` | undefined;
|
|
220
220
|
}[];
|
|
221
|
-
},
|
|
222
|
-
declare const useWatchEnsEvents: <
|
|
223
|
-
readonly blockNumber: bigint | null;
|
|
224
|
-
readonly transactionHash: `0x${string}` | null;
|
|
221
|
+
}, import("@ensforge/core").GetEnsEventsError, Mapped>) => EnsSuspenseAtomResult<Mapped>;
|
|
222
|
+
declare const useWatchEnsEvents: <Mapped = {
|
|
225
223
|
readonly protocol: "v1" | "v2";
|
|
226
224
|
readonly raw: {
|
|
227
225
|
readonly topics: readonly `0x${string}`[];
|
|
228
226
|
readonly data: `0x${string}`;
|
|
229
227
|
readonly args: unknown;
|
|
230
228
|
};
|
|
231
|
-
readonly
|
|
229
|
+
readonly blockNumber: bigint | null;
|
|
230
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
231
|
+
readonly transactionHash: `0x${string}` | null;
|
|
232
232
|
readonly contract: `0x${string}`;
|
|
233
233
|
readonly transactionIndex: number | null;
|
|
234
234
|
readonly logIndex: number | null;
|
|
235
|
-
readonly contractKind: "
|
|
235
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
236
236
|
readonly eventName: string;
|
|
237
237
|
readonly removed: boolean;
|
|
238
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
239
238
|
readonly to?: `0x${string}` | undefined;
|
|
239
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
240
|
+
readonly tokenId?: bigint | undefined;
|
|
241
|
+
readonly owner?: `0x${string}` | undefined;
|
|
240
242
|
readonly from?: `0x${string}` | undefined;
|
|
243
|
+
readonly label?: string | undefined;
|
|
241
244
|
readonly resolver?: `0x${string}` | undefined;
|
|
242
|
-
readonly owner?: `0x${string}` | undefined;
|
|
243
245
|
readonly node?: `0x${string}` | undefined;
|
|
244
|
-
readonly label?: string | undefined;
|
|
245
|
-
readonly tokenId?: bigint | undefined;
|
|
246
246
|
readonly commitment?: `0x${string}` | undefined;
|
|
247
|
-
}>(input:
|
|
248
|
-
readonly blockNumber: bigint | null;
|
|
249
|
-
readonly transactionHash: `0x${string}` | null;
|
|
247
|
+
}>(input: UseEnsAtomParameters<import("@ensforge/core").WatchEnsEventsParameters, {
|
|
250
248
|
readonly protocol: "v1" | "v2";
|
|
251
249
|
readonly raw: {
|
|
252
250
|
readonly topics: readonly `0x${string}`[];
|
|
253
251
|
readonly data: `0x${string}`;
|
|
254
252
|
readonly args: unknown;
|
|
255
253
|
};
|
|
256
|
-
readonly
|
|
254
|
+
readonly blockNumber: bigint | null;
|
|
255
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
256
|
+
readonly transactionHash: `0x${string}` | null;
|
|
257
257
|
readonly contract: `0x${string}`;
|
|
258
258
|
readonly transactionIndex: number | null;
|
|
259
259
|
readonly logIndex: number | null;
|
|
260
|
-
readonly contractKind: "
|
|
260
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
261
261
|
readonly eventName: string;
|
|
262
262
|
readonly removed: boolean;
|
|
263
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
264
263
|
readonly to?: `0x${string}` | undefined;
|
|
264
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
265
|
+
readonly tokenId?: bigint | undefined;
|
|
266
|
+
readonly owner?: `0x${string}` | undefined;
|
|
265
267
|
readonly from?: `0x${string}` | undefined;
|
|
268
|
+
readonly label?: string | undefined;
|
|
266
269
|
readonly resolver?: `0x${string}` | undefined;
|
|
267
|
-
readonly owner?: `0x${string}` | undefined;
|
|
268
270
|
readonly node?: `0x${string}` | undefined;
|
|
269
|
-
readonly label?: string | undefined;
|
|
270
|
-
readonly tokenId?: bigint | undefined;
|
|
271
271
|
readonly commitment?: `0x${string}` | undefined;
|
|
272
|
-
},
|
|
272
|
+
}, import("effect/Cause").NoSuchElementError | import("@ensforge/core").GetEnsEventsError, Mapped>) => EnsAtomResult<Mapped, import("effect/Cause").NoSuchElementError | import("@ensforge/core").GetEnsEventsError>;
|
|
273
273
|
//#endregion
|
|
274
274
|
export { useEnsEvents, useEnsEventsSuspense, useNameHistory, useNameHistorySuspense, useWatchEnsEvents };
|
|
275
275
|
//# sourceMappingURL=events.d.ts.map
|