@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
package/README.md
CHANGED
|
@@ -4,17 +4,17 @@ Reactive React hooks for building ENS applications.
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- Provider setup from an
|
|
7
|
+
- Effect Atom reads and mutations for the full ensforge action surface
|
|
8
|
+
- Shared execution, typed retry schedules, SWR, and idle lifecycle controls
|
|
9
|
+
- Refresh and Suspense variants for read hooks
|
|
10
|
+
- Native `AsyncResult` state with convenient React projections
|
|
11
|
+
- Provider setup from an ensforge config or existing SDK instance
|
|
12
12
|
- Shared cache primitives for prefetching and advanced composition
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
pnpm add @ensforge/react
|
|
17
|
+
pnpm add @ensforge/react react effect@rc viem
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Overview
|
|
@@ -35,7 +35,7 @@ import { EnsforgeProvider } from "@ensforge/react";
|
|
|
35
35
|
</EnsforgeProvider>;
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Use
|
|
38
|
+
Use read hooks anywhere below the provider:
|
|
39
39
|
|
|
40
40
|
```tsx
|
|
41
41
|
import { useAvatar, useOwner } from "@ensforge/react";
|
|
@@ -44,11 +44,11 @@ function Profile({ name }: { name: string }) {
|
|
|
44
44
|
const owner = useOwner({ name });
|
|
45
45
|
const avatar = useAvatar({
|
|
46
46
|
name,
|
|
47
|
-
|
|
47
|
+
atom: { swr: { staleTime: "1 minute" } },
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
if (owner.
|
|
51
|
-
if (owner.
|
|
50
|
+
if (owner.isInitial || avatar.isInitial) return <span>Loading…</span>;
|
|
51
|
+
if (owner.isFailure) return <span>{owner.error.message}</span>;
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
54
|
<section>
|
package/dist/atoms/batch.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
import { EnsMutationAtomFactory } from "./mutation.js";
|
|
3
3
|
//#region src/atoms/batch.d.ts
|
|
4
|
-
declare const estimateCallsAtom:
|
|
5
|
-
declare const getCallsStatusAtom:
|
|
6
|
-
declare const getWalletCapabilitiesAtom:
|
|
7
|
-
declare const prepareCallsAtom:
|
|
8
|
-
declare const simulateCallsAtom:
|
|
4
|
+
declare const estimateCallsAtom: EnsAtomFactory<import("@ensforge/core").EstimateCallsParameters, import("@ensforge/core").EstimateCallsResult, import("@ensforge/core").WriteError>;
|
|
5
|
+
declare const getCallsStatusAtom: EnsAtomFactory<import("@ensforge/core").GetCallsStatusParameters, import("@ensforge/core").CallsStatusResult, import("@ensforge/core").WriteError>;
|
|
6
|
+
declare const getWalletCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").GetWalletCapabilitiesParameters, import("@ensforge/core").WalletCapabilitiesResult, import("@ensforge/core").ConfigError | import("@ensforge/core").WalletError>;
|
|
7
|
+
declare const prepareCallsAtom: EnsAtomFactory<import("@ensforge/core").PrepareCallsParameters, readonly import("@ensforge/core").PreparedWriteCall[], import("@ensforge/core").WriteError>;
|
|
8
|
+
declare const simulateCallsAtom: EnsAtomFactory<import("@ensforge/core").SimulateCallsParameters, readonly import("@ensforge/core").SimulatedWriteCall[], import("@ensforge/core").WriteError>;
|
|
9
9
|
declare const createExecuteWritePlanMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ExecuteWritePlanParameters, import("@ensforge/core").WritePlanProgress, import("@ensforge/core").WriteError>;
|
|
10
10
|
declare const createResumeCallsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ResumeCallsParameters, import("@ensforge/core").NativeBatchResult, import("@ensforge/core").WriteError>;
|
|
11
11
|
declare const createSendCallsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SendCallsParameters, import("@ensforge/core").SendCallsResult, import("@ensforge/core").WriteError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","names":[],"sources":["../../src/atoms/batch.ts"],"mappings":";;;cAGa,mBAAA,
|
|
1
|
+
{"version":3,"file":"batch.d.ts","names":[],"sources":["../../src/atoms/batch.ts"],"mappings":";;;cAGa,mBAAA,wCAAiB,kDAAA,8CAAA;cACjB,oBAAA,wCAAkB,mDAAA,4CAAA;cAClB,2BAAA,wCAAyB,0DAAA,mDAAA,uCAAA;cAIzB,kBAAA,wCAAgB,0DAAA,8CAAA;cAChB,mBAAA,wCAAiB,2DAAA,+CAAA;cAEjB,oCAAA,gDAAkC,qDAAA,4CAAA;cAIlC,+BAAA,gDAA6B,gDAAA,4CAAA;cAI7B,6BAAA,gDAA2B,8CAAA,0CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
//#region src/atoms/capabilities.d.ts
|
|
3
|
-
declare const getNameCapabilitiesAtom:
|
|
3
|
+
declare const getNameCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").GetNameCapabilitiesParameters, {
|
|
4
4
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
5
5
|
readonly account: `0x${string}`;
|
|
6
6
|
readonly registry: {
|
|
@@ -24,7 +24,7 @@ declare const getNameCapabilitiesAtom: EnsQueryAtomFactory<import("@ensforge/cor
|
|
|
24
24
|
readonly inherited: boolean;
|
|
25
25
|
readonly extended: boolean;
|
|
26
26
|
readonly permissioned: boolean;
|
|
27
|
-
readonly authorization: "unknown" | "none" | "owner-delegate"
|
|
27
|
+
readonly authorization: "role" | "unknown" | "none" | "owner-delegate";
|
|
28
28
|
readonly profiles: {
|
|
29
29
|
readonly address: boolean;
|
|
30
30
|
readonly text: boolean;
|
|
@@ -113,17 +113,17 @@ declare const getNameCapabilitiesAtom: EnsQueryAtomFactory<import("@ensforge/cor
|
|
|
113
113
|
readonly setExpiry: boolean;
|
|
114
114
|
};
|
|
115
115
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
116
|
-
declare const getOperatorApprovalAtom:
|
|
116
|
+
declare const getOperatorApprovalAtom: EnsAtomFactory<import("@ensforge/core").GetOperatorApprovalParameters, {
|
|
117
117
|
readonly owner: `0x${string}`;
|
|
118
118
|
readonly operator: `0x${string}`;
|
|
119
119
|
readonly targets: readonly {
|
|
120
|
-
readonly kind: "
|
|
120
|
+
readonly kind: "registry" | "resolver" | "registrar" | "wrapper";
|
|
121
121
|
readonly address: `0x${string}`;
|
|
122
122
|
readonly supported: boolean;
|
|
123
123
|
readonly approved: boolean;
|
|
124
124
|
}[];
|
|
125
125
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
126
|
-
declare const getRecordPermissionsAtom:
|
|
126
|
+
declare const getRecordPermissionsAtom: EnsAtomFactory<import("@ensforge/core").GetRecordPermissionsParameters, {
|
|
127
127
|
readonly resolver: `0x${string}` | null;
|
|
128
128
|
readonly inherited: boolean;
|
|
129
129
|
readonly account: `0x${string}`;
|
|
@@ -195,7 +195,7 @@ declare const getRecordPermissionsAtom: EnsQueryAtomFactory<import("@ensforge/co
|
|
|
195
195
|
readonly resource: bigint | null;
|
|
196
196
|
}[];
|
|
197
197
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
198
|
-
declare const getRegistryCapabilitiesAtom:
|
|
198
|
+
declare const getRegistryCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryCapabilitiesParameters, {
|
|
199
199
|
readonly address: `0x${string}`;
|
|
200
200
|
readonly protocol: "v1" | "v2";
|
|
201
201
|
readonly kind: "registry" | "name-wrapper" | "permissioned-registry" | "wrapper-registry";
|
|
@@ -210,7 +210,7 @@ declare const getRegistryCapabilitiesAtom: EnsQueryAtomFactory<import("@ensforge
|
|
|
210
210
|
readonly transfer: boolean;
|
|
211
211
|
readonly setExpiry: boolean;
|
|
212
212
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
213
|
-
declare const getRegistryRolesAtom:
|
|
213
|
+
declare const getRegistryRolesAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryRolesParameters, {
|
|
214
214
|
readonly supported: false;
|
|
215
215
|
readonly protocol: "v1" | "v2";
|
|
216
216
|
readonly reason: "RESOLVER_NOT_FOUND" | "ROLE_BASED_PERMISSIONS_UNSUPPORTED";
|
|
@@ -222,7 +222,7 @@ declare const getRegistryRolesAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
222
222
|
readonly account: `0x${string}`;
|
|
223
223
|
readonly roles: bigint;
|
|
224
224
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
225
|
-
declare const getRequiredAuthorizationAtom:
|
|
225
|
+
declare const getRequiredAuthorizationAtom: EnsAtomFactory<import("@ensforge/core").GetRequiredAuthorizationParameters, {
|
|
226
226
|
readonly account: `0x${string}`;
|
|
227
227
|
readonly operation: {
|
|
228
228
|
readonly type: "address";
|
|
@@ -273,7 +273,7 @@ declare const getRequiredAuthorizationAtom: EnsQueryAtomFactory<import("@ensforg
|
|
|
273
273
|
} | {
|
|
274
274
|
readonly available: true;
|
|
275
275
|
readonly protocol: "v1" | "v2";
|
|
276
|
-
readonly kind: "
|
|
276
|
+
readonly kind: "registry" | "resolver" | "registrar" | "name-wrapper" | "wrapper-registry";
|
|
277
277
|
readonly address: `0x${string}`;
|
|
278
278
|
readonly operation: {
|
|
279
279
|
readonly type: "address";
|
|
@@ -356,13 +356,13 @@ declare const getRequiredAuthorizationAtom: EnsQueryAtomFactory<import("@ensforg
|
|
|
356
356
|
};
|
|
357
357
|
readonly blockers: readonly ("NAME_NOT_REGISTERED" | "RESOLVER_NOT_FOUND" | "OPERATION_UNSUPPORTED" | "WRAPPER_FUSE" | "TRANSFER_ROLE")[];
|
|
358
358
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
359
|
-
declare const getResolverCapabilitiesAtom:
|
|
359
|
+
declare const getResolverCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryCapabilitiesParameters, {
|
|
360
360
|
readonly address: `0x${string}` | null;
|
|
361
361
|
readonly node: `0x${string}` & import("effect/Brand").Brand<"Namehash">;
|
|
362
362
|
readonly inherited: boolean;
|
|
363
363
|
readonly extended: boolean;
|
|
364
364
|
readonly permissioned: boolean;
|
|
365
|
-
readonly authorization: "unknown" | "none" | "owner-delegate"
|
|
365
|
+
readonly authorization: "role" | "unknown" | "none" | "owner-delegate";
|
|
366
366
|
readonly profiles: {
|
|
367
367
|
readonly address: boolean;
|
|
368
368
|
readonly text: boolean;
|
|
@@ -376,7 +376,7 @@ declare const getResolverCapabilitiesAtom: EnsQueryAtomFactory<import("@ensforge
|
|
|
376
376
|
readonly dnsZone: boolean;
|
|
377
377
|
};
|
|
378
378
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
379
|
-
declare const getResolverDelegateApprovalAtom:
|
|
379
|
+
declare const getResolverDelegateApprovalAtom: EnsAtomFactory<import("@ensforge/core").GetResolverDelegateApprovalParameters, {
|
|
380
380
|
readonly supported: false;
|
|
381
381
|
readonly protocol: "v1" | "v2";
|
|
382
382
|
readonly reason: "RESOLVER_NOT_FOUND" | "DELEGATE_APPROVAL_UNSUPPORTED";
|
|
@@ -388,7 +388,7 @@ declare const getResolverDelegateApprovalAtom: EnsQueryAtomFactory<import("@ensf
|
|
|
388
388
|
readonly delegate: `0x${string}`;
|
|
389
389
|
readonly approved: boolean;
|
|
390
390
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
391
|
-
declare const getResolverRolesAtom:
|
|
391
|
+
declare const getResolverRolesAtom: EnsAtomFactory<import("@ensforge/core").GetResolverRolesParameters, {
|
|
392
392
|
readonly supported: false;
|
|
393
393
|
readonly protocol: "v1" | "v2";
|
|
394
394
|
readonly reason: "RESOLVER_NOT_FOUND" | "ROLE_BASED_PERMISSIONS_UNSUPPORTED";
|
|
@@ -400,7 +400,7 @@ declare const getResolverRolesAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
400
400
|
readonly account: `0x${string}`;
|
|
401
401
|
readonly roles: bigint;
|
|
402
402
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
403
|
-
declare const getTokenApprovalAtom:
|
|
403
|
+
declare const getTokenApprovalAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryCapabilitiesParameters, {
|
|
404
404
|
readonly supported: false;
|
|
405
405
|
readonly protocol: "v1" | "v2";
|
|
406
406
|
readonly reason: "PER_TOKEN_APPROVAL_UNSUPPORTED" | "NAME_NOT_TOKENIZED";
|
|
@@ -412,7 +412,7 @@ declare const getTokenApprovalAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
412
412
|
readonly tokenId: bigint;
|
|
413
413
|
readonly approved: `0x${string}` | null;
|
|
414
414
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
415
|
-
declare const getWrapperPermissionsAtom:
|
|
415
|
+
declare const getWrapperPermissionsAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryRolesParameters, {
|
|
416
416
|
readonly supported: false;
|
|
417
417
|
readonly protocol: "v1" | "v2";
|
|
418
418
|
readonly reason: "NAME_NOT_WRAPPED";
|
|
@@ -444,14 +444,14 @@ declare const getWrapperPermissionsAtom: EnsQueryAtomFactory<import("@ensforge/c
|
|
|
444
444
|
readonly roles: bigint;
|
|
445
445
|
readonly operatorApproved: boolean;
|
|
446
446
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
447
|
-
declare const getWriteTargetAtom:
|
|
447
|
+
declare const getWriteTargetAtom: EnsAtomFactory<import("@ensforge/core").GetWriteTargetParameters, {
|
|
448
448
|
readonly available: false;
|
|
449
449
|
readonly protocol: "v1" | "v2";
|
|
450
450
|
readonly reason: "NAME_NOT_REGISTERED" | "RESOLVER_NOT_FOUND" | "OPERATION_UNSUPPORTED";
|
|
451
451
|
} | {
|
|
452
452
|
readonly available: true;
|
|
453
453
|
readonly protocol: "v1" | "v2";
|
|
454
|
-
readonly kind: "
|
|
454
|
+
readonly kind: "registry" | "resolver" | "registrar" | "name-wrapper" | "wrapper-registry";
|
|
455
455
|
readonly address: `0x${string}`;
|
|
456
456
|
readonly operation: {
|
|
457
457
|
readonly type: "address";
|
|
@@ -500,7 +500,7 @@ declare const getWriteTargetAtom: EnsQueryAtomFactory<import("@ensforge/core").G
|
|
|
500
500
|
readonly resource: bigint | null;
|
|
501
501
|
readonly inheritedResolver: boolean;
|
|
502
502
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
503
|
-
declare const hasRegistryRolesAtom:
|
|
503
|
+
declare const hasRegistryRolesAtom: EnsAtomFactory<import("@ensforge/core").HasRegistryRolesParameters, {
|
|
504
504
|
readonly supported: false;
|
|
505
505
|
readonly protocol: "v1" | "v2";
|
|
506
506
|
readonly reason: "RESOLVER_NOT_FOUND" | "ROLE_BASED_PERMISSIONS_UNSUPPORTED";
|
|
@@ -513,7 +513,7 @@ declare const hasRegistryRolesAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
513
513
|
readonly roles: bigint;
|
|
514
514
|
readonly authorized: boolean;
|
|
515
515
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
516
|
-
declare const hasResolverRolesAtom:
|
|
516
|
+
declare const hasResolverRolesAtom: EnsAtomFactory<import("@ensforge/core").HasResolverRolesParameters, {
|
|
517
517
|
readonly supported: false;
|
|
518
518
|
readonly protocol: "v1" | "v2";
|
|
519
519
|
readonly reason: "RESOLVER_NOT_FOUND" | "ROLE_BASED_PERMISSIONS_UNSUPPORTED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/atoms/capabilities.ts"],"mappings":";;cAEa,yBAAA,
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/atoms/capabilities.ts"],"mappings":";;cAEa,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGnC;cACY,yBAAA,wCAAuB;;;;;;;;;4BAGnC;cACY,0BAAA,wCAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGpC;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;4BAGvC;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,8BAAA,wCAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGxC;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;;;;;;4BAGvC;cACY,iCAAA,wCAA+B;;;;;;;;;;;4BAG3C;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,2BAAA,wCAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGrC;cACY,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAG9B;cACY,sBAAA,wCAAoB;;;;;;;;;;;;4BAGhC;cACY,sBAAA,wCAAoB;;;;;;;;;;;;4BAGhC"}
|
package/dist/atoms/dns.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
import { EnsMutationAtomFactory } from "./mutation.js";
|
|
3
3
|
//#region src/atoms/dns.d.ts
|
|
4
|
-
declare const getDnsClaimStatusAtom:
|
|
4
|
+
declare const getDnsClaimStatusAtom: EnsAtomFactory<import("@ensforge/core").GetDnsClaimStatusParameters, {
|
|
5
5
|
readonly status: "unsupported";
|
|
6
6
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
7
7
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -16,7 +16,7 @@ declare const getDnsClaimStatusAtom: EnsQueryAtomFactory<import("@ensforge/core"
|
|
|
16
16
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
17
|
readonly previousInception: bigint;
|
|
18
18
|
}, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
19
|
-
declare const getDnsImportPlanAtom:
|
|
19
|
+
declare const getDnsImportPlanAtom: EnsAtomFactory<import("@ensforge/core").GetDnsImportPlanParameters, {
|
|
20
20
|
readonly status: "unsupported";
|
|
21
21
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
22
22
|
readonly reason: "DNS_REGISTRAR_UNAVAILABLE";
|
|
@@ -37,14 +37,14 @@ declare const getDnsImportPlanAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
37
37
|
readonly previousInception: bigint;
|
|
38
38
|
};
|
|
39
39
|
}, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
40
|
-
declare const getDnsRecordAtom:
|
|
40
|
+
declare const getDnsRecordAtom: EnsAtomFactory<import("@ensforge/core").GetDnsRecordParameters, {
|
|
41
41
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
42
42
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
43
43
|
readonly resource: number;
|
|
44
44
|
readonly resolver: `0x${string}` | null;
|
|
45
45
|
readonly value: `0x${string}` | null;
|
|
46
46
|
}, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
47
|
-
declare const getDnsRecordsAtom:
|
|
47
|
+
declare const getDnsRecordsAtom: EnsAtomFactory<import("@ensforge/core").GetDnsRecordsParameters, {
|
|
48
48
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
49
49
|
readonly resolver: `0x${string}` | null;
|
|
50
50
|
readonly records: readonly {
|
|
@@ -55,12 +55,12 @@ declare const getDnsRecordsAtom: EnsQueryAtomFactory<import("@ensforge/core").Ge
|
|
|
55
55
|
readonly value: `0x${string}` | null;
|
|
56
56
|
}[];
|
|
57
57
|
}, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
58
|
-
declare const getZoneHashAtom:
|
|
58
|
+
declare const getZoneHashAtom: EnsAtomFactory<import("@ensforge/core").GetZoneHashParameters, {
|
|
59
59
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
60
60
|
readonly resolver: `0x${string}` | null;
|
|
61
61
|
readonly value: `0x${string}` | null;
|
|
62
62
|
}, import("@ensforge/core").GetDnsClaimStatusError>;
|
|
63
|
-
declare const hasDnsRecordsAtom:
|
|
63
|
+
declare const hasDnsRecordsAtom: EnsAtomFactory<import("@ensforge/core").HasDnsRecordsParameters, {
|
|
64
64
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
65
65
|
readonly recordName: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
66
66
|
readonly resolver: `0x${string}` | null;
|
package/dist/atoms/dns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dns.d.ts","names":[],"sources":["../../src/atoms/dns.ts"],"mappings":";;;cAGa,uBAAA,
|
|
1
|
+
{"version":3,"file":"dns.d.ts","names":[],"sources":["../../src/atoms/dns.ts"],"mappings":";;;cAGa,uBAAA,wCAAqB;;;;;;;;;;;;;;4BAA2D;cAChF,sBAAA,wCAAoB;;;;;;;;;;;;;;;;;;;;4BAA0D;cAC9E,kBAAA,wCAAgB;;;;;;4BAAsD;cACtE,mBAAA,wCAAiB;;;;;;;;;;4BAAuD;cACxE,iBAAA,wCAAe;;;;4BAAqD;cACpE,mBAAA,wCAAiB;;;;;4BAAuD;cAExE,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,iCAAA,gDAA+B,kDAAA,8CAAA;cAI/B,iCAAA,gDAA+B,kDAAA,8CAAA;cAI/B,+BAAA,gDAA6B,gDAAA,8CAAA"}
|
package/dist/atoms/events.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
//#region src/atoms/events.d.ts
|
|
3
|
-
declare const getEnsEventsAtom:
|
|
4
|
-
readonly blockNumber: bigint | null;
|
|
5
|
-
readonly transactionHash: `0x${string}` | null;
|
|
3
|
+
declare const getEnsEventsAtom: EnsAtomFactory<import("@ensforge/core").GetEnsEventsParameters, readonly {
|
|
6
4
|
readonly protocol: "v1" | "v2";
|
|
7
5
|
readonly raw: {
|
|
8
6
|
readonly topics: readonly `0x${string}`[];
|
|
9
7
|
readonly data: `0x${string}`;
|
|
10
8
|
readonly args: unknown;
|
|
11
9
|
};
|
|
12
|
-
readonly
|
|
10
|
+
readonly blockNumber: bigint | null;
|
|
11
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
12
|
+
readonly transactionHash: `0x${string}` | null;
|
|
13
13
|
readonly contract: `0x${string}`;
|
|
14
14
|
readonly transactionIndex: number | null;
|
|
15
15
|
readonly logIndex: number | null;
|
|
16
|
-
readonly contractKind: "
|
|
16
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
17
17
|
readonly eventName: string;
|
|
18
18
|
readonly removed: boolean;
|
|
19
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
20
19
|
readonly to?: `0x${string}` | undefined;
|
|
20
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
21
|
+
readonly tokenId?: bigint | undefined;
|
|
22
|
+
readonly owner?: `0x${string}` | undefined;
|
|
21
23
|
readonly from?: `0x${string}` | undefined;
|
|
24
|
+
readonly label?: string | undefined;
|
|
22
25
|
readonly resolver?: `0x${string}` | undefined;
|
|
23
|
-
readonly owner?: `0x${string}` | undefined;
|
|
24
26
|
readonly node?: `0x${string}` | undefined;
|
|
25
|
-
readonly label?: string | undefined;
|
|
26
|
-
readonly tokenId?: bigint | undefined;
|
|
27
27
|
readonly commitment?: `0x${string}` | undefined;
|
|
28
28
|
}[], import("@ensforge/core").GetEnsEventsError>;
|
|
29
|
-
declare const getNameHistoryAtom:
|
|
29
|
+
declare const getNameHistoryAtom: EnsAtomFactory<import("@ensforge/core").GetNameHistoryParameters, {
|
|
30
30
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
31
31
|
readonly events: readonly {
|
|
32
|
-
readonly blockNumber: bigint | null;
|
|
33
|
-
readonly transactionHash: `0x${string}` | null;
|
|
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
56
|
}[];
|
|
57
57
|
}, import("@ensforge/core").GetEnsEventsError>;
|
|
58
|
-
declare const watchEnsEventsAtom:
|
|
59
|
-
readonly blockNumber: bigint | null;
|
|
60
|
-
readonly transactionHash: `0x${string}` | null;
|
|
58
|
+
declare const watchEnsEventsAtom: EnsAtomFactory<import("@ensforge/core").WatchEnsEventsParameters, {
|
|
61
59
|
readonly protocol: "v1" | "v2";
|
|
62
60
|
readonly raw: {
|
|
63
61
|
readonly topics: readonly `0x${string}`[];
|
|
64
62
|
readonly data: `0x${string}`;
|
|
65
63
|
readonly args: unknown;
|
|
66
64
|
};
|
|
67
|
-
readonly
|
|
65
|
+
readonly blockNumber: bigint | null;
|
|
66
|
+
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
67
|
+
readonly transactionHash: `0x${string}` | null;
|
|
68
68
|
readonly contract: `0x${string}`;
|
|
69
69
|
readonly transactionIndex: number | null;
|
|
70
70
|
readonly logIndex: number | null;
|
|
71
|
-
readonly contractKind: "
|
|
71
|
+
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
72
72
|
readonly eventName: string;
|
|
73
73
|
readonly removed: boolean;
|
|
74
|
-
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
75
74
|
readonly to?: `0x${string}` | undefined;
|
|
75
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
76
|
+
readonly tokenId?: bigint | undefined;
|
|
77
|
+
readonly owner?: `0x${string}` | undefined;
|
|
76
78
|
readonly from?: `0x${string}` | undefined;
|
|
79
|
+
readonly label?: string | undefined;
|
|
77
80
|
readonly resolver?: `0x${string}` | undefined;
|
|
78
|
-
readonly owner?: `0x${string}` | undefined;
|
|
79
81
|
readonly node?: `0x${string}` | undefined;
|
|
80
|
-
readonly label?: string | undefined;
|
|
81
|
-
readonly tokenId?: bigint | undefined;
|
|
82
82
|
readonly commitment?: `0x${string}` | undefined;
|
|
83
|
-
}, import("
|
|
83
|
+
}, import("effect/Cause").NoSuchElementError | import("@ensforge/core").GetEnsEventsError>;
|
|
84
84
|
//#endregion
|
|
85
85
|
export { getEnsEventsAtom, getNameHistoryAtom, watchEnsEventsAtom };
|
|
86
86
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/atoms/events.ts"],"mappings":";;cAGa,kBAAA,
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/atoms/events.ts"],"mappings":";;cAGa,kBAAA,wCAAgB;;;;;;;;;;;;;;;;;;;;;;;;;8BAA4D;cAC5E,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAA8D;cAChF,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;0BAA+D,8CAAA"}
|
package/dist/atoms/generic.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomOptions } from "../query/options.js";
|
|
2
|
+
import { EnsAtom } from "./query.js";
|
|
2
3
|
import { EnsReadRequest, Ensforge, GetRecordsError, GetRecordsParameters, GetRecordsResult, GetRecordsSelection, ReadBatchError, ReadBatchOptions, ReadBatchResult, ReadBatchSettledResult, RpcError } from "@ensforge/sdk";
|
|
3
4
|
//#region src/atoms/generic.d.ts
|
|
4
5
|
type ReadRequests = Readonly<Record<string, EnsReadRequest<unknown, unknown>>>;
|
|
@@ -6,9 +7,9 @@ interface ReadBatchAtomParameters<Requests extends ReadRequests> {
|
|
|
6
7
|
readonly options?: ReadBatchOptions;
|
|
7
8
|
readonly requests: Requests;
|
|
8
9
|
}
|
|
9
|
-
declare const getRecordsAtom: <const Selection extends GetRecordsSelection>(sdk: Ensforge, parameters: GetRecordsParameters<Selection>, options
|
|
10
|
-
declare const readBatchAtom: <const Requests extends ReadRequests>(sdk: Ensforge, parameters: ReadBatchAtomParameters<Requests>, options
|
|
11
|
-
declare const readBatchSettledAtom: <const Requests extends ReadRequests>(sdk: Ensforge, parameters: ReadBatchAtomParameters<Requests>, options
|
|
10
|
+
declare const getRecordsAtom: <const Selection extends GetRecordsSelection>(sdk: Ensforge, parameters: GetRecordsParameters<Selection>, options?: EnsAtomOptions<GetRecordsError>) => EnsAtom<GetRecordsResult<Selection>, GetRecordsError>;
|
|
11
|
+
declare const readBatchAtom: <const Requests extends ReadRequests>(sdk: Ensforge, parameters: ReadBatchAtomParameters<Requests>, options?: EnsAtomOptions<ReadBatchError<Requests>>) => EnsAtom<ReadBatchResult<Requests>, ReadBatchError<Requests>>;
|
|
12
|
+
declare const readBatchSettledAtom: <const Requests extends ReadRequests>(sdk: Ensforge, parameters: ReadBatchAtomParameters<Requests>, options?: EnsAtomOptions<RpcError>) => EnsAtom<ReadBatchSettledResult<Requests>, RpcError>;
|
|
12
13
|
//#endregion
|
|
13
14
|
export { ReadBatchAtomParameters, getRecordsAtom, readBatchAtom, readBatchSettledAtom };
|
|
14
15
|
//# sourceMappingURL=generic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.d.ts","names":[],"sources":["../../src/atoms/generic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generic.d.ts","names":[],"sources":["../../src/atoms/generic.ts"],"mappings":";;;;KAiBK,eAAe,SAAS,eAAe;UAE3B,wBAAwB,iBAAiB;WAC/C,UAAU;WACV,UAAU;;cAQR,uBAAwB,kBAAkB,qBACrD,KAAK,UACL,YAAY,qBAAqB,YACjC,UAAU,eAAe,qBACxB,QAAQ,iBAAiB,YAAY;cAc3B,sBAAuB,iBAAiB,cACnD,KAAK,UACL,YAAY,wBAAwB,WACpC,UAAU,eAAe,eAAe,eACvC,QAAQ,gBAAgB,WAAW,eAAe;cAcxC,6BAA8B,iBAAiB,cAC1D,KAAK,UACL,YAAY,wBAAwB,WACpC,UAAU,eAAe,cACxB,QAAQ,uBAAuB,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.js","names":[],"sources":["../../src/atoms/generic.ts"],"sourcesContent":["import type {\n EnsReadRequest,\n GetRecordsError,\n GetRecordsParameters,\n GetRecordsResult,\n GetRecordsSelection,\n ReadBatchError,\n ReadBatchOptions,\n ReadBatchResult,\n ReadBatchSettledResult,\n RpcError,\n} from \"@ensforge/sdk\";\nimport type { Ensforge } from \"@ensforge/sdk\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"generic.js","names":[],"sources":["../../src/atoms/generic.ts"],"sourcesContent":["import type {\n EnsReadRequest,\n GetRecordsError,\n GetRecordsParameters,\n GetRecordsResult,\n GetRecordsSelection,\n ReadBatchError,\n ReadBatchOptions,\n ReadBatchResult,\n ReadBatchSettledResult,\n RpcError,\n} from \"@ensforge/sdk\";\nimport type { Ensforge } from \"@ensforge/sdk\";\n\nimport type { EnsAtomOptions } from \"../query/options.js\";\nimport { makeQueryAtom, type EnsAtom } from \"./query.js\";\n\ntype ReadRequests = Readonly<Record<string, EnsReadRequest<unknown, unknown>>>;\n\nexport interface ReadBatchAtomParameters<Requests extends ReadRequests> {\n readonly options?: ReadBatchOptions;\n readonly requests: Requests;\n}\n\nconst getRecordsAtomBase = makeQueryAtom<GetRecordsParameters, GetRecordsResult, GetRecordsError>(\n \"records\",\n (sdk) => sdk.records.getRecords,\n);\n\nexport const getRecordsAtom = <const Selection extends GetRecordsSelection>(\n sdk: Ensforge,\n parameters: GetRecordsParameters<Selection>,\n options?: EnsAtomOptions<GetRecordsError>,\n): EnsAtom<GetRecordsResult<Selection>, GetRecordsError> =>\n getRecordsAtomBase(sdk, parameters, options) as EnsAtom<\n GetRecordsResult<Selection>,\n GetRecordsError\n >;\n\nconst readBatchAtomBase = makeQueryAtom<\n ReadBatchAtomParameters<ReadRequests>,\n ReadBatchResult<ReadRequests>,\n ReadBatchError<ReadRequests>\n>(\"batch\", (sdk) => ({\n effect: ({ options, requests }) => sdk.batch.readBatch.effect(requests, options),\n}));\n\nexport const readBatchAtom = <const Requests extends ReadRequests>(\n sdk: Ensforge,\n parameters: ReadBatchAtomParameters<Requests>,\n options?: EnsAtomOptions<ReadBatchError<Requests>>,\n): EnsAtom<ReadBatchResult<Requests>, ReadBatchError<Requests>> =>\n readBatchAtomBase(sdk, parameters, options as EnsAtomOptions<unknown>) as EnsAtom<\n ReadBatchResult<Requests>,\n ReadBatchError<Requests>\n >;\n\nconst readBatchSettledAtomBase = makeQueryAtom<\n ReadBatchAtomParameters<ReadRequests>,\n ReadBatchSettledResult<ReadRequests>,\n RpcError\n>(\"batch\", (sdk) => ({\n effect: ({ options, requests }) => sdk.batch.readBatchSettled.effect(requests, options),\n}));\n\nexport const readBatchSettledAtom = <const Requests extends ReadRequests>(\n sdk: Ensforge,\n parameters: ReadBatchAtomParameters<Requests>,\n options?: EnsAtomOptions<RpcError>,\n): EnsAtom<ReadBatchSettledResult<Requests>, RpcError> =>\n readBatchSettledAtomBase(sdk, parameters, options) as EnsAtom<\n ReadBatchSettledResult<Requests>,\n RpcError\n >;\n"],"mappings":";;;AAwBA,MAAM,qBAAqB,cACzB,YACC,QAAQ,IAAI,QAAQ,UACvB;AAEA,MAAa,kBACX,KACA,YACA,YAEA,mBAAmB,KAAK,YAAY,OAAO;AAK7C,MAAM,oBAAoB,cAIxB,UAAU,SAAS,EACnB,SAAS,EAAE,SAAS,eAAe,IAAI,MAAM,UAAU,OAAO,UAAU,OAAO,EACjF,EAAE;AAEF,MAAa,iBACX,KACA,YACA,YAEA,kBAAkB,KAAK,YAAY,OAAkC;AAKvE,MAAM,2BAA2B,cAI/B,UAAU,SAAS,EACnB,SAAS,EAAE,SAAS,eAAe,IAAI,MAAM,iBAAiB,OAAO,UAAU,OAAO,EACxF,EAAE;AAEF,MAAa,wBACX,KACA,YACA,YAEA,yBAAyB,KAAK,YAAY,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
import { EnsMutationAtomFactory } from "./mutation.js";
|
|
3
3
|
//#region src/atoms/migration.d.ts
|
|
4
|
-
declare const getMigrationEligibilityAtom:
|
|
4
|
+
declare const getMigrationEligibilityAtom: EnsAtomFactory<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
5
5
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
6
6
|
readonly eligible: boolean;
|
|
7
7
|
readonly status: {
|
|
@@ -59,7 +59,7 @@ declare const getMigrationEligibilityAtom: EnsQueryAtomFactory<import("@ensforge
|
|
|
59
59
|
readonly authorized: boolean;
|
|
60
60
|
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")[];
|
|
61
61
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
62
|
-
declare const getMigrationPlanAtom:
|
|
62
|
+
declare const getMigrationPlanAtom: EnsAtomFactory<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
63
63
|
readonly status: "unsupported";
|
|
64
64
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
65
65
|
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")[];
|
|
@@ -113,7 +113,7 @@ declare const getMigrationPlanAtom: EnsQueryAtomFactory<import("@ensforge/core")
|
|
|
113
113
|
};
|
|
114
114
|
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
115
115
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
116
|
-
declare const getMigrationStatusAtom:
|
|
116
|
+
declare const getMigrationStatusAtom: EnsAtomFactory<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
117
117
|
readonly status: "unsupported";
|
|
118
118
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
119
119
|
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
@@ -150,7 +150,7 @@ declare const getMigrationStatusAtom: EnsQueryAtomFactory<import("@ensforge/core
|
|
|
150
150
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
151
151
|
readonly registry: `0x${string}`;
|
|
152
152
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
153
|
-
declare const getMigrationTargetAtom:
|
|
153
|
+
declare const getMigrationTargetAtom: EnsAtomFactory<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
154
154
|
readonly supported: false;
|
|
155
155
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
156
156
|
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/atoms/migration.ts"],"mappings":";;;cAGa,6BAAA,
|
|
1
|
+
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/atoms/migration.ts"],"mappings":";;;cAGa,6BAAA,wCAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGvC;cACY,sBAAA,wCAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGhC;cACY,wBAAA,wCAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGlC;cACY,wBAAA,wCAAsB;;;;;;;;;;;;4BAGlC;cAEY,oCAAA,gDAAkC,qDAAA,8CAAA;cAIlC,+BAAA,gDAA6B,gDAAA,4CAAA;cAI7B,gCAAA,gDAA8B,iDAAA,iDAAA"}
|