@ensforge/react 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/atoms/capabilities.d.ts +10 -10
- package/dist/atoms/capabilities.d.ts.map +1 -1
- package/dist/atoms/dns.d.ts +9 -7
- package/dist/atoms/dns.d.ts.map +1 -1
- package/dist/atoms/events.d.ts +46 -46
- package/dist/atoms/events.d.ts.map +1 -1
- package/dist/atoms/generic.d.ts +3 -1
- package/dist/atoms/generic.d.ts.map +1 -1
- package/dist/atoms/generic.js.map +1 -1
- package/dist/atoms/migration.d.ts +1 -1
- package/dist/atoms/migration.d.ts.map +1 -1
- package/dist/atoms/name.d.ts +1 -1
- package/dist/atoms/records.d.ts +1 -1
- package/dist/atoms/records.d.ts.map +1 -1
- package/dist/atoms/registration.d.ts +33 -3
- package/dist/atoms/registration.d.ts.map +1 -1
- package/dist/atoms/resolution.d.ts +2 -2
- package/dist/atoms/resolution.d.ts.map +1 -1
- package/dist/atoms/wrapping.d.ts +2 -2
- package/dist/atoms/wrapping.d.ts.map +1 -1
- package/dist/hooks/capabilities.d.ts +36 -36
- package/dist/hooks/capabilities.d.ts.map +1 -1
- package/dist/hooks/dns.d.ts +17 -13
- package/dist/hooks/dns.d.ts.map +1 -1
- package/dist/hooks/events.d.ts +147 -147
- package/dist/hooks/events.d.ts.map +1 -1
- package/dist/hooks/generic.d.ts +3 -1
- package/dist/hooks/generic.d.ts.map +1 -1
- package/dist/hooks/generic.js.map +1 -1
- package/dist/hooks/migration.d.ts +1 -1
- package/dist/hooks/migration.d.ts.map +1 -1
- package/dist/hooks/name.d.ts +4 -4
- package/dist/hooks/records.d.ts +1 -1
- package/dist/hooks/records.d.ts.map +1 -1
- package/dist/hooks/registration.d.ts +63 -3
- package/dist/hooks/registration.d.ts.map +1 -1
- package/dist/hooks/resolution.d.ts +2 -2
- package/dist/hooks/resolution.d.ts.map +1 -1
- package/dist/hooks/wrapping.d.ts +4 -4
- package/dist/hooks/wrapping.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/provider/ensforge-provider.d.ts +2 -1
- package/dist/provider/ensforge-provider.d.ts.map +1 -1
- package/dist/provider/ensforge-provider.js +2 -1
- package/dist/provider/ensforge-provider.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Reactive React hooks for building ENS applications.
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
pnpm add @ensforge/react react effect@rc viem
|
|
17
|
+
pnpm add @ensforge/react react effect@rc viem wagmi
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Overview
|
|
@@ -74,6 +74,13 @@ const updateUrl = () =>
|
|
|
74
74
|
});
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
Hook inputs are inferred automatically. When an action parameter type is needed explicitly, import
|
|
78
|
+
it from the matching SDK group.
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import type { SetTextParameters } from "@ensforge/sdk/records";
|
|
82
|
+
```
|
|
83
|
+
|
|
77
84
|
An existing SDK instance can also be shared through the provider:
|
|
78
85
|
|
|
79
86
|
```tsx
|
|
@@ -24,7 +24,7 @@ declare const getNameCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").G
|
|
|
24
24
|
readonly inherited: boolean;
|
|
25
25
|
readonly extended: boolean;
|
|
26
26
|
readonly permissioned: boolean;
|
|
27
|
-
readonly authorization: "
|
|
27
|
+
readonly authorization: "none" | "unknown" | "role" | "owner-delegate";
|
|
28
28
|
readonly profiles: {
|
|
29
29
|
readonly address: boolean;
|
|
30
30
|
readonly text: boolean;
|
|
@@ -117,7 +117,7 @@ declare const getOperatorApprovalAtom: EnsAtomFactory<import("@ensforge/core").G
|
|
|
117
117
|
readonly owner: `0x${string}`;
|
|
118
118
|
readonly operator: `0x${string}`;
|
|
119
119
|
readonly targets: readonly {
|
|
120
|
-
readonly kind: "
|
|
120
|
+
readonly kind: "resolver" | "registrar" | "registry" | "wrapper";
|
|
121
121
|
readonly address: `0x${string}`;
|
|
122
122
|
readonly supported: boolean;
|
|
123
123
|
readonly approved: boolean;
|
|
@@ -210,7 +210,7 @@ declare const getRegistryCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core
|
|
|
210
210
|
readonly transfer: boolean;
|
|
211
211
|
readonly setExpiry: boolean;
|
|
212
212
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
213
|
-
declare const getRegistryRolesAtom: EnsAtomFactory<import("@ensforge/core").
|
|
213
|
+
declare const getRegistryRolesAtom: EnsAtomFactory<import("@ensforge/core").AccountCapabilityParameters, {
|
|
214
214
|
readonly supported: false;
|
|
215
215
|
readonly protocol: "v1" | "v2";
|
|
216
216
|
readonly reason: "RESOLVER_NOT_FOUND" | "ROLE_BASED_PERMISSIONS_UNSUPPORTED";
|
|
@@ -269,11 +269,11 @@ declare const getRequiredAuthorizationAtom: EnsAtomFactory<import("@ensforge/cor
|
|
|
269
269
|
readonly target: {
|
|
270
270
|
readonly available: false;
|
|
271
271
|
readonly protocol: "v1" | "v2";
|
|
272
|
-
readonly reason: "
|
|
272
|
+
readonly reason: "RESOLVER_NOT_FOUND" | "NAME_NOT_REGISTERED" | "OPERATION_UNSUPPORTED";
|
|
273
273
|
} | {
|
|
274
274
|
readonly available: true;
|
|
275
275
|
readonly protocol: "v1" | "v2";
|
|
276
|
-
readonly kind: "
|
|
276
|
+
readonly kind: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
|
|
277
277
|
readonly address: `0x${string}`;
|
|
278
278
|
readonly operation: {
|
|
279
279
|
readonly type: "address";
|
|
@@ -354,7 +354,7 @@ declare const getRequiredAuthorizationAtom: EnsAtomFactory<import("@ensforge/cor
|
|
|
354
354
|
readonly status: "unknown";
|
|
355
355
|
readonly reason: "CUSTOM_RESOLVER";
|
|
356
356
|
};
|
|
357
|
-
readonly blockers: readonly ("
|
|
357
|
+
readonly blockers: readonly ("RESOLVER_NOT_FOUND" | "NAME_NOT_REGISTERED" | "OPERATION_UNSUPPORTED" | "WRAPPER_FUSE" | "TRANSFER_ROLE")[];
|
|
358
358
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
359
359
|
declare const getResolverCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core").GetRegistryCapabilitiesParameters, {
|
|
360
360
|
readonly address: `0x${string}` | null;
|
|
@@ -362,7 +362,7 @@ declare const getResolverCapabilitiesAtom: EnsAtomFactory<import("@ensforge/core
|
|
|
362
362
|
readonly inherited: boolean;
|
|
363
363
|
readonly extended: boolean;
|
|
364
364
|
readonly permissioned: boolean;
|
|
365
|
-
readonly authorization: "
|
|
365
|
+
readonly authorization: "none" | "unknown" | "role" | "owner-delegate";
|
|
366
366
|
readonly profiles: {
|
|
367
367
|
readonly address: boolean;
|
|
368
368
|
readonly text: boolean;
|
|
@@ -412,7 +412,7 @@ declare const getTokenApprovalAtom: EnsAtomFactory<import("@ensforge/core").GetR
|
|
|
412
412
|
readonly tokenId: bigint;
|
|
413
413
|
readonly approved: `0x${string}` | null;
|
|
414
414
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
415
|
-
declare const getWrapperPermissionsAtom: EnsAtomFactory<import("@ensforge/core").
|
|
415
|
+
declare const getWrapperPermissionsAtom: EnsAtomFactory<import("@ensforge/core").AccountCapabilityParameters, {
|
|
416
416
|
readonly supported: false;
|
|
417
417
|
readonly protocol: "v1" | "v2";
|
|
418
418
|
readonly reason: "NAME_NOT_WRAPPED";
|
|
@@ -447,11 +447,11 @@ declare const getWrapperPermissionsAtom: EnsAtomFactory<import("@ensforge/core")
|
|
|
447
447
|
declare const getWriteTargetAtom: EnsAtomFactory<import("@ensforge/core").GetWriteTargetParameters, {
|
|
448
448
|
readonly available: false;
|
|
449
449
|
readonly protocol: "v1" | "v2";
|
|
450
|
-
readonly reason: "
|
|
450
|
+
readonly reason: "RESOLVER_NOT_FOUND" | "NAME_NOT_REGISTERED" | "OPERATION_UNSUPPORTED";
|
|
451
451
|
} | {
|
|
452
452
|
readonly available: true;
|
|
453
453
|
readonly protocol: "v1" | "v2";
|
|
454
|
-
readonly kind: "
|
|
454
|
+
readonly kind: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
|
|
455
455
|
readonly address: `0x${string}`;
|
|
456
456
|
readonly operation: {
|
|
457
457
|
readonly type: "address";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/atoms/capabilities.ts"],"mappings":";;cAEa,yBAAA,wCAAuB
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../src/atoms/capabilities.ts"],"mappings":";;cAEa,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAwDof;;;eAA6F,sDAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BArDrnB;cACY,yBAAA,wCAAuB;;;;;;;;;4BAGnC;cACY,0BAAA,wCAAwB;;;;;;;;;;;;;;;;;eA0BnC;;;eAE2C,sDAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAzB7C;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;4BAGvC;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,8BAAA,wCAA4B;;;;;;;;;;;;;;aAU1B;;;aAE2B,sDAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAwBwiB;;;eAA6F,sDAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAjChrB;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;;;;;;4BAGvC;cACY,iCAAA,wCAA+B;;;;;;;;;;;4BAG3C;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,sBAAA,wCAAoB;;;;;;;;;;;4BAGhC;cACY,2BAAA,wCAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGrC;cACY,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;;;;aAVZ;;;aAGb,sDAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAUN;cACY,sBAAA,wCAAoB;;;;;;;;;;;;4BAGhC;cACY,sBAAA,wCAAoB;;;;;;;;;;;;4BAGhC"}
|
package/dist/atoms/dns.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const getDnsClaimStatusAtom: EnsAtomFactory<import("@ensforge/core").Get
|
|
|
15
15
|
readonly status: "proof-required";
|
|
16
16
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
17
|
readonly previousInception: bigint;
|
|
18
|
-
}, import("@ensforge/core").
|
|
18
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
19
19
|
declare const getDnsImportPlanAtom: EnsAtomFactory<import("@ensforge/core").GetDnsImportPlanParameters, {
|
|
20
20
|
readonly status: "unsupported";
|
|
21
21
|
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
@@ -36,14 +36,14 @@ declare const getDnsImportPlanAtom: EnsAtomFactory<import("@ensforge/core").GetD
|
|
|
36
36
|
readonly name: `0x${string}` & import("effect/Brand").Brand<"DnsEncodedName">;
|
|
37
37
|
readonly previousInception: bigint;
|
|
38
38
|
};
|
|
39
|
-
}, import("@ensforge/core").
|
|
39
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
40
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
|
-
}, import("@ensforge/core").
|
|
46
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
47
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;
|
|
@@ -54,20 +54,22 @@ declare const getDnsRecordsAtom: EnsAtomFactory<import("@ensforge/core").GetDnsR
|
|
|
54
54
|
readonly resolver: `0x${string}` | null;
|
|
55
55
|
readonly value: `0x${string}` | null;
|
|
56
56
|
}[];
|
|
57
|
-
}, import("@ensforge/core").
|
|
57
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
58
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
|
-
}, import("@ensforge/core").
|
|
62
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
63
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;
|
|
67
67
|
readonly exists: boolean;
|
|
68
|
-
}, import("@ensforge/core").
|
|
68
|
+
}, import("@ensforge/core").DnsReadError>;
|
|
69
69
|
declare const createClaimDnsNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ClaimDnsNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
70
|
-
declare const createImportDnsNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").
|
|
70
|
+
declare const createImportDnsNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ClaimDnsNameParameters & import("@ensforge/core").DnsWriteWalletParameters & {
|
|
71
|
+
readonly resume?: import("@ensforge/core").ImportDnsNameResult;
|
|
72
|
+
}, import("@ensforge/core").ImportDnsNameResult, import("@ensforge/core").WriteError>;
|
|
71
73
|
declare const createSetDnsRecordsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetDnsRecordsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
72
74
|
declare const createSetZoneHashMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetZoneHashParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
73
75
|
//#endregion
|
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,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;
|
|
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;;4BAG3C,8CAAA;cACY,iCAAA,gDAA+B,kDAAA,8CAAA;cAI/B,+BAAA,gDAA6B,gDAAA,8CAAA"}
|
package/dist/atoms/events.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
//#region src/atoms/events.d.ts
|
|
3
3
|
declare const getEnsEventsAtom: EnsAtomFactory<import("@ensforge/core").GetEnsEventsParameters, readonly {
|
|
4
|
-
readonly
|
|
4
|
+
readonly blockNumber: bigint | null;
|
|
5
|
+
readonly transactionHash: `0x${string}` | null;
|
|
6
|
+
readonly transactionIndex: number | null;
|
|
7
|
+
readonly logIndex: number | null;
|
|
5
8
|
readonly raw: {
|
|
6
9
|
readonly topics: readonly `0x${string}`[];
|
|
7
10
|
readonly data: `0x${string}`;
|
|
8
11
|
readonly args: unknown;
|
|
9
12
|
};
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly contract: `0x${string}`;
|
|
14
|
-
readonly transactionIndex: number | null;
|
|
15
|
-
readonly logIndex: number | null;
|
|
16
|
-
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
13
|
+
readonly kind: "commitment" | "registration" | "renewal" | "ownership" | "manager" | "resolver" | "records" | "subname" | "migration" | "other";
|
|
14
|
+
readonly protocol: "v1" | "v2";
|
|
15
|
+
readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
|
|
17
16
|
readonly eventName: string;
|
|
17
|
+
readonly contract: `0x${string}`;
|
|
18
18
|
readonly removed: boolean;
|
|
19
|
-
readonly
|
|
19
|
+
readonly commitment?: `0x${string}` | undefined;
|
|
20
|
+
readonly resolver?: `0x${string}` | undefined;
|
|
20
21
|
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
21
|
-
readonly tokenId?: bigint | undefined;
|
|
22
|
-
readonly owner?: `0x${string}` | undefined;
|
|
23
|
-
readonly from?: `0x${string}` | undefined;
|
|
24
22
|
readonly label?: string | undefined;
|
|
25
|
-
readonly resolver?: `0x${string}` | undefined;
|
|
26
23
|
readonly node?: `0x${string}` | undefined;
|
|
27
|
-
readonly
|
|
28
|
-
}
|
|
24
|
+
readonly owner?: `0x${string}` | undefined;
|
|
25
|
+
readonly from?: `0x${string}` | undefined;
|
|
26
|
+
readonly to?: `0x${string}` | undefined;
|
|
27
|
+
readonly tokenId?: bigint | undefined;
|
|
28
|
+
}[], import("@ensforge/core").EnsEventError>;
|
|
29
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
|
|
32
|
+
readonly blockNumber: bigint | null;
|
|
33
|
+
readonly transactionHash: `0x${string}` | null;
|
|
34
|
+
readonly transactionIndex: number | null;
|
|
35
|
+
readonly logIndex: number | null;
|
|
33
36
|
readonly raw: {
|
|
34
37
|
readonly topics: readonly `0x${string}`[];
|
|
35
38
|
readonly data: `0x${string}`;
|
|
36
39
|
readonly args: unknown;
|
|
37
40
|
};
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly contract: `0x${string}`;
|
|
42
|
-
readonly transactionIndex: number | null;
|
|
43
|
-
readonly logIndex: number | null;
|
|
44
|
-
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
41
|
+
readonly kind: "commitment" | "registration" | "renewal" | "ownership" | "manager" | "resolver" | "records" | "subname" | "migration" | "other";
|
|
42
|
+
readonly protocol: "v1" | "v2";
|
|
43
|
+
readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
|
|
45
44
|
readonly eventName: string;
|
|
45
|
+
readonly contract: `0x${string}`;
|
|
46
46
|
readonly removed: boolean;
|
|
47
|
-
readonly
|
|
47
|
+
readonly commitment?: `0x${string}` | undefined;
|
|
48
|
+
readonly resolver?: `0x${string}` | undefined;
|
|
48
49
|
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
49
|
-
readonly tokenId?: bigint | undefined;
|
|
50
|
-
readonly owner?: `0x${string}` | undefined;
|
|
51
|
-
readonly from?: `0x${string}` | undefined;
|
|
52
50
|
readonly label?: string | undefined;
|
|
53
|
-
readonly resolver?: `0x${string}` | undefined;
|
|
54
51
|
readonly node?: `0x${string}` | undefined;
|
|
55
|
-
readonly
|
|
52
|
+
readonly owner?: `0x${string}` | undefined;
|
|
53
|
+
readonly from?: `0x${string}` | undefined;
|
|
54
|
+
readonly to?: `0x${string}` | undefined;
|
|
55
|
+
readonly tokenId?: bigint | undefined;
|
|
56
56
|
}[];
|
|
57
|
-
}, import("@ensforge/core").
|
|
57
|
+
}, import("@ensforge/core").EnsEventError>;
|
|
58
58
|
declare const watchEnsEventsAtom: EnsAtomFactory<import("@ensforge/core").WatchEnsEventsParameters, {
|
|
59
|
+
readonly kind: "resolver" | "commitment" | "registration" | "renewal" | "ownership" | "manager" | "records" | "subname" | "migration" | "other";
|
|
59
60
|
readonly protocol: "v1" | "v2";
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
readonly args: unknown;
|
|
64
|
-
};
|
|
61
|
+
readonly contractKind: "registry" | "name-wrapper" | "registrar" | "resolver" | "migration-controller";
|
|
62
|
+
readonly eventName: string;
|
|
63
|
+
readonly contract: `0x${string}`;
|
|
65
64
|
readonly blockNumber: bigint | null;
|
|
66
|
-
readonly kind: "migration" | "resolver" | "manager" | "commitment" | "records" | "ownership" | "registration" | "renewal" | "subname" | "other";
|
|
67
65
|
readonly transactionHash: `0x${string}` | null;
|
|
68
|
-
readonly contract: `0x${string}`;
|
|
69
66
|
readonly transactionIndex: number | null;
|
|
70
67
|
readonly logIndex: number | null;
|
|
71
|
-
readonly contractKind: "registry" | "resolver" | "registrar" | "name-wrapper" | "migration-controller";
|
|
72
|
-
readonly eventName: string;
|
|
73
68
|
readonly removed: boolean;
|
|
74
|
-
readonly
|
|
69
|
+
readonly raw: {
|
|
70
|
+
readonly topics: readonly `0x${string}`[];
|
|
71
|
+
readonly data: `0x${string}`;
|
|
72
|
+
readonly args: unknown;
|
|
73
|
+
};
|
|
74
|
+
readonly resolver?: `0x${string}` | undefined;
|
|
75
75
|
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
76
|
-
readonly
|
|
77
|
-
readonly owner?: `0x${string}` | undefined;
|
|
78
|
-
readonly from?: `0x${string}` | undefined;
|
|
76
|
+
readonly commitment?: `0x${string}` | undefined;
|
|
79
77
|
readonly label?: string | undefined;
|
|
80
|
-
readonly resolver?: `0x${string}` | undefined;
|
|
81
78
|
readonly node?: `0x${string}` | undefined;
|
|
82
|
-
readonly
|
|
83
|
-
}
|
|
79
|
+
readonly owner?: `0x${string}` | undefined;
|
|
80
|
+
readonly from?: `0x${string}` | undefined;
|
|
81
|
+
readonly to?: `0x${string}` | undefined;
|
|
82
|
+
readonly tokenId?: bigint | undefined;
|
|
83
|
+
}, import("@ensforge/core").EnsEventError | import("effect/Cause").NoSuchElementError>;
|
|
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,wCAAgB;;;;;;;;;;;;;;;;;;;;;;;;;8BAA4D;cAC5E,oBAAA,wCAAkB
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/atoms/events.ts"],"mappings":";;cAGa,kBAAA,wCAAgB;;;;;;;;;;;;;;;;;;;;;;;;;8BAA4D;cAC5E,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;aAEwtB;aAAmD;aAA+C,wCAAC;aAA2F;aAAwC;aAAgD;aAA+C;aAA6C;aAAkD;;4BAF9jC;cAChF,oBAAA,wCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;4BAA+D,uCAAA"}
|
package/dist/atoms/generic.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EnsAtomOptions } from "../query/options.js";
|
|
2
2
|
import { EnsAtom } from "./query.js";
|
|
3
|
-
import { EnsReadRequest, Ensforge,
|
|
3
|
+
import { EnsReadRequest, Ensforge, RpcError } from "@ensforge/sdk";
|
|
4
|
+
import { ReadBatchError, ReadBatchOptions, ReadBatchResult, ReadBatchSettledResult } from "@ensforge/sdk/batch";
|
|
5
|
+
import { GetRecordsError, GetRecordsParameters, GetRecordsResult, GetRecordsSelection } from "@ensforge/sdk/records";
|
|
4
6
|
//#region src/atoms/generic.d.ts
|
|
5
7
|
type ReadRequests = Readonly<Record<string, EnsReadRequest<unknown, unknown>>>;
|
|
6
8
|
interface ReadBatchAtomParameters<Requests extends ReadRequests> {
|
|
@@ -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":";;;;;;KAkBK,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
|
|
1
|
+
{"version":3,"file":"generic.js","names":[],"sources":["../../src/atoms/generic.ts"],"sourcesContent":["import type { EnsReadRequest, RpcError } from \"@ensforge/sdk\";\nimport type { Ensforge } from \"@ensforge/sdk\";\nimport type {\n ReadBatchError,\n ReadBatchOptions,\n ReadBatchResult,\n ReadBatchSettledResult,\n} from \"@ensforge/sdk/batch\";\nimport type {\n GetRecordsError,\n GetRecordsParameters,\n GetRecordsResult,\n GetRecordsSelection,\n} from \"@ensforge/sdk/records\";\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":";;;AAyBA,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"}
|
|
@@ -164,7 +164,7 @@ declare const getMigrationTargetAtom: EnsAtomFactory<import("@ensforge/core").Ge
|
|
|
164
164
|
readonly receiver: `0x${string}`;
|
|
165
165
|
}, import("@ensforge/core").GetCanonicalResourceError>;
|
|
166
166
|
declare const createApproveMigrationMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ApproveMigrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
167
|
-
declare const createMigrateNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>;
|
|
167
|
+
declare const createMigrateNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").MigrateNameCallParameters & import("@ensforge/core").MigrateNameParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").MigrateNameResult, import("@ensforge/core").WriteError>;
|
|
168
168
|
declare const createMigrateNamesMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").MigrateNamesParameters, import("@ensforge/core").MigrationBatchProgress, import("@ensforge/core").WriteError>;
|
|
169
169
|
//#endregion
|
|
170
170
|
export { createApproveMigrationMutationAtom, createMigrateNameMutationAtom, createMigrateNamesMutationAtom, getMigrationEligibilityAtom, getMigrationPlanAtom, getMigrationStatusAtom, getMigrationTargetAtom };
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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,qDAAA,gDAAA,+CAAA,4CAAA;cAI7B,gCAAA,gDAA8B,iDAAA,iDAAA"}
|
package/dist/atoms/name.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ declare const getOwnerAtom: EnsAtomFactory<import("@ensforge/core").GetOwnerPara
|
|
|
125
125
|
readonly owner: `0x${string}` | null;
|
|
126
126
|
readonly registrant: `0x${string}` | null;
|
|
127
127
|
readonly protocol: "v1" | "v2";
|
|
128
|
-
readonly ownershipLevel: "
|
|
128
|
+
readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
|
|
129
129
|
} | null, import("@ensforge/core").GetOwnerError>;
|
|
130
130
|
declare const getProtocolAtom: EnsAtomFactory<import("@ensforge/core").GetCanonicalResourceParameters, "v1" | "v2", import("@ensforge/core").GetCanonicalResourceError>;
|
|
131
131
|
declare const getRegistrantAtom: EnsAtomFactory<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError>;
|
package/dist/atoms/records.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ declare const createSetDataMutationAtom: EnsMutationAtomFactory<import("@ensforg
|
|
|
85
85
|
declare const createSetInterfaceMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetInterfaceParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
86
86
|
declare const createSetNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
87
87
|
declare const createSetPubkeyMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetPubkeyParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
88
|
-
declare const createSetRecordsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetRecordsParameters, import("@ensforge/core").SetRecordsResult, import("@ensforge/core").WriteError>;
|
|
88
|
+
declare const createSetRecordsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetRecordsParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").SetRecordsResult, import("@ensforge/core").WriteError>;
|
|
89
89
|
declare const createSetTextMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetTextParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
90
90
|
declare const createSetTextsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetTextsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
91
91
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","names":[],"sources":["../../src/atoms/records.ts"],"mappings":";;;cAGa,YAAA,wCAAU;;;;;;;;;;;;4BAAwD;cAClE,gBAAA,wCAAc;;;;;;;;4BAA4D;cAC1E,kBAAA,wCAAgB;;;;;;;;+BAA8D;cAC9E,eAAA,wCAAa;;;;;;;;mCAA2D;cACxE,oBAAA,wCAAkB;;;;;;;;4BAAgE;cAClF,aAAA,wCAAW;;;4BAAyD;cACpE,kBAAA,wCAAgB;;;4BAA8D;cAC9E,aAAA,wCAAW;;4BAAyD;cACpE,eAAA,wCAAa;;;mCAA2D;cACxE,aAAA,wCAAW;;;4BAAyD;cACpE,cAAA,wCAAY;;;8BAA0D;cAEtE,+BAAA,gDAA6B,gDAAA,8CAAA;cAI7B,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,0BAAA,gDAAwB,2CAAA,8CAAA;cACxB,8BAAA,gDAA4B,+CAAA,8CAAA;cAI5B,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,4BAAA,gDAA0B,6CAAA,8CAAA;cAI1B,6BAAA,gDAA2B,8CAAA,8CAAA;cAI3B,kCAAA,gDAAgC,mDAAA,8CAAA;cAIhC,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,6BAAA,gDAA2B,8CAAA,8CAAA;cAI3B,8BAAA,gDAA4B,+CAAA,2CAAA;cAI5B,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,4BAAA,gDAA0B,6CAAA,8CAAA"}
|
|
1
|
+
{"version":3,"file":"records.d.ts","names":[],"sources":["../../src/atoms/records.ts"],"mappings":";;;cAGa,YAAA,wCAAU;;;;;;;;;;;;4BAAwD;cAClE,gBAAA,wCAAc;;;;;;;;4BAA4D;cAC1E,kBAAA,wCAAgB;;;;;;;;+BAA8D;cAC9E,eAAA,wCAAa;;;;;;;;mCAA2D;cACxE,oBAAA,wCAAkB;;;;;;;;4BAAgE;cAClF,aAAA,wCAAW;;;4BAAyD;cACpE,kBAAA,wCAAgB;;;4BAA8D;cAC9E,aAAA,wCAAW;;4BAAyD;cACpE,eAAA,wCAAa;;;mCAA2D;cACxE,aAAA,wCAAW;;;4BAAyD;cACpE,cAAA,wCAAY;;;8BAA0D;cAEtE,+BAAA,gDAA6B,gDAAA,8CAAA;cAI7B,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,0BAAA,gDAAwB,2CAAA,8CAAA;cACxB,8BAAA,gDAA4B,+CAAA,8CAAA;cAI5B,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,4BAAA,gDAA0B,6CAAA,8CAAA;cAI1B,6BAAA,gDAA2B,8CAAA,8CAAA;cAI3B,kCAAA,gDAAgC,mDAAA,8CAAA;cAIhC,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,gCAAA,gDAA8B,iDAAA,8CAAA;cAI9B,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,6BAAA,gDAA2B,8CAAA,8CAAA;cAI3B,8BAAA,gDAA4B,+CAAA,+CAAA,2CAAA;cAI5B,2BAAA,gDAAyB,4CAAA,8CAAA;cACzB,4BAAA,gDAA0B,6CAAA,8CAAA"}
|
|
@@ -243,10 +243,40 @@ declare const makeRegistrationCommitmentAtom: EnsAtomFactory<import("@ensforge/c
|
|
|
243
243
|
declare const createApprovePaymentTokenMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ApprovePaymentTokenParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
244
244
|
declare const createApproveRenewalPaymentMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ApproveRenewalPaymentParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
245
245
|
declare const createCommitNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").CommitNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
246
|
-
declare const createCompleteRegistrationMutationAtom: EnsMutationAtomFactory<
|
|
247
|
-
|
|
246
|
+
declare const createCompleteRegistrationMutationAtom: EnsMutationAtomFactory<{
|
|
247
|
+
readonly resolver?: import("@ensforge/core").EthereumAddress;
|
|
248
|
+
readonly name: string;
|
|
249
|
+
readonly records?: ReadonlyArray<import("@ensforge/core").Hex>;
|
|
250
|
+
readonly owner: import("@ensforge/core").EthereumAddress;
|
|
251
|
+
readonly duration: bigint;
|
|
252
|
+
readonly secret: import("@ensforge/core").Bytes32;
|
|
253
|
+
readonly subregistry?: import("@ensforge/core").EthereumAddress;
|
|
254
|
+
readonly reverseRecord?: 0 | 1 | 2;
|
|
255
|
+
readonly referrer?: import("@ensforge/core").Bytes32;
|
|
256
|
+
} & {
|
|
257
|
+
readonly paymentToken?: import("@ensforge/core").EthereumAddress;
|
|
258
|
+
readonly maxPrice?: bigint;
|
|
259
|
+
}, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
260
|
+
declare const createRegisterNameMutationAtom: EnsMutationAtomFactory<Omit<{
|
|
261
|
+
readonly resolver?: import("@ensforge/core").EthereumAddress;
|
|
262
|
+
readonly name: string;
|
|
263
|
+
readonly records?: ReadonlyArray<import("@ensforge/core").Hex>;
|
|
264
|
+
readonly owner: import("@ensforge/core").EthereumAddress;
|
|
265
|
+
readonly duration: bigint;
|
|
266
|
+
readonly secret: import("@ensforge/core").Bytes32;
|
|
267
|
+
readonly subregistry?: import("@ensforge/core").EthereumAddress;
|
|
268
|
+
readonly reverseRecord?: 0 | 1 | 2;
|
|
269
|
+
readonly referrer?: import("@ensforge/core").Bytes32;
|
|
270
|
+
}, "records"> & import("@ensforge/core").RegistrationWalletParameters & {
|
|
271
|
+
readonly paymentToken?: import("@ensforge/core").EthereumAddress;
|
|
272
|
+
readonly maxPrice?: bigint;
|
|
273
|
+
readonly records?: ReadonlyArray<import("@ensforge/core").SetRecordInput>;
|
|
274
|
+
readonly resume?: import("@ensforge/core").RegisterNameResult;
|
|
275
|
+
}, import("@ensforge/core").RegisterNameResult, import("@ensforge/core").WriteError>;
|
|
248
276
|
declare const createRegisterNamesMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").RegisterNamesParameters, import("@ensforge/core").RegisterNamesResult, import("@ensforge/core").WriteError>;
|
|
249
|
-
declare const createRenewNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").
|
|
277
|
+
declare const createRenewNameMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").RenewNameCallParameters & import("@ensforge/core").RegistrationWalletParameters & {
|
|
278
|
+
readonly resume?: import("@ensforge/core").RenewNameResult;
|
|
279
|
+
}, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").RenewNameResult, import("@ensforge/core").WriteError>;
|
|
250
280
|
declare const createRenewNamesMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").RenewNamesParameters, import("@ensforge/core").RenewNamesResult, import("@ensforge/core").WriteError>;
|
|
251
281
|
//#endregion
|
|
252
282
|
export { createApprovePaymentTokenMutationAtom, createApproveRenewalPaymentMutationAtom, createCommitNameMutationAtom, createCompleteRegistrationMutationAtom, createRegisterNameMutationAtom, createRegisterNamesMutationAtom, createRenewNameMutationAtom, createRenewNamesMutationAtom, getCommitmentStatusAtom, getRegistrationParametersAtom, getRegistrationPlanAtom, getRegistrationPriceAtom, getRenewalPriceAtom, isPaymentTokenSupportedAtom, makeRegistrationCommitmentAtom };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.d.ts","names":[],"sources":["../../src/atoms/registration.ts"],"mappings":";;;cAGa,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;4BAGnC;cACY,+BAAA,wCAA6B;;;;;;;;;;;;;;;;;;;;;;;4BAGzC;cACY,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGnC;cACY,0BAAA,wCAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGpC;cACY,qBAAA,wCAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAG/B;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;;4BAGvC;cACY,gCAAA,wCAA8B;;;;;4BAG1C;cAEY,uCAAA,gDAAqC,wDAAA,8CAAA;cAIrC,yCAAA,gDAAuC,0DAAA,8CAAA;cAIvC,8BAAA,gDAA4B,+CAAA,8CAAA;cAI5B,wCAAA,
|
|
1
|
+
{"version":3,"file":"registration.d.ts","names":[],"sources":["../../src/atoms/registration.ts"],"mappings":";;;cAGa,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;4BAGnC;cACY,+BAAA,wCAA6B;;;;;;;;;;;;;;;;;;;;;;;4BAGzC;cACY,yBAAA,wCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGnC;cACY,0BAAA,wCAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGpC;cACY,qBAAA,wCAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAG/B;cACY,6BAAA,wCAA2B;;;;;;;;;;;;;;;4BAGvC;cACY,gCAAA,wCAA8B;;;;;4BAG1C;cAEY,uCAAA,gDAAqC,wDAAA,8CAAA;cAIrC,yCAAA,gDAAuC,0DAAA,8CAAA;cAIvC,8BAAA,gDAA4B,+CAAA,8CAAA;cAI5B,wCAAA;;;qBAAA;;;;;;;;;;4BAGZ,8CAAA;cACY,uDAA8B;;;;;;;;;;;;;;;4BAG1C,6CAAA;cACY,iCAAA,gDAA+B,kDAAA,8CAAA;cAI/B,6BAAA,gDAA2B,mDAAA;;4BAGvC,+CAAA,0CAAA;cACY,8BAAA,gDAA4B,+CAAA,2CAAA"}
|
|
@@ -35,11 +35,11 @@ declare const resolveWithResolverAtom: EnsAtomFactory<import("@ensforge/core").R
|
|
|
35
35
|
readonly data: `0x${string}`;
|
|
36
36
|
readonly resolverAddress: `0x${string}`;
|
|
37
37
|
}, import("@ensforge/core").ResolveError>;
|
|
38
|
-
declare const createCreateResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").CreateResolverParameters, import("@ensforge/core").CreateResolverResult, import("@ensforge/core").WriteError>;
|
|
38
|
+
declare const createCreateResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").CreateResolverParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").CreateResolverResult, import("@ensforge/core").WriteError>;
|
|
39
39
|
declare const createGetOrCreateResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").GetOrCreateResolverParameters, import("@ensforge/core").GetOrCreateResolverResult, import("@ensforge/core").WriteError>;
|
|
40
40
|
declare const createSetResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetResolverParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
41
41
|
declare const createSetResolverAndRecordsMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetResolverAndRecordsParameters, import("@ensforge/core").SetResolverAndRecordsProgress, import("@ensforge/core").WriteError>;
|
|
42
|
-
declare const createUpgradeResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").UpgradeResolverParameters, import("@ensforge/core").UpgradeResolverResult, import("@ensforge/core").WriteError>;
|
|
42
|
+
declare const createUpgradeResolverMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").UpgradeResolverParameters, import("@ensforge/core").CallExecutionResult | import("@ensforge/core").UpgradeResolverResult, import("@ensforge/core").WriteError>;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { createCreateResolverMutationAtom, createGetOrCreateResolverMutationAtom, createSetResolverAndRecordsMutationAtom, createSetResolverMutationAtom, createUpgradeResolverMutationAtom, getAliasAtom, getResolverAtom, getResolverVersionAtom, predictResolverAddressAtom, resolveAtom, resolveBatchAtom, resolveWithResolverAtom };
|
|
45
45
|
//# sourceMappingURL=resolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolution.d.ts","names":[],"sources":["../../src/atoms/resolution.ts"],"mappings":";;;cAGa,cAAA,wCAAY;;;;;;;;;;;4BAAgE;cAC5E,iBAAA,wCAAe,gDAAA,4CAAA;cACf,wBAAA,wCAAsB;;;;;;;;;;4BAGlC;cACY,4BAAA,wCAA0B,kEAAA;cAI1B,aAAA,wCAAW;;;mCAA+D;cAC1E,kBAAA,wCAAgB,iDAAA,6CAAA;cAChB,yBAAA,wCAAuB;;;4BAGnC;cAEY,kCAAA,gDAAgC,mDAAA,+CAAA;cAIhC,uCAAA,gDAAqC,wDAAA,oDAAA;cAIrC,+BAAA,gDAA6B,gDAAA,8CAAA;cAI7B,yCAAA,gDAAuC,0DAAA,wDAAA;cAIvC,mCAAA,gDAAiC,oDAAA,gDAAA"}
|
|
1
|
+
{"version":3,"file":"resolution.d.ts","names":[],"sources":["../../src/atoms/resolution.ts"],"mappings":";;;cAGa,cAAA,wCAAY;;;;;;;;;;;4BAAgE;cAC5E,iBAAA,wCAAe,gDAAA,4CAAA;cACf,wBAAA,wCAAsB;;;;;;;;;;4BAGlC;cACY,4BAAA,wCAA0B,kEAAA;cAI1B,aAAA,wCAAW;;;mCAA+D;cAC1E,kBAAA,wCAAgB,iDAAA,6CAAA;cAChB,yBAAA,wCAAuB;;;4BAGnC;cAEY,kCAAA,gDAAgC,mDAAA,+CAAA,+CAAA;cAIhC,uCAAA,gDAAqC,wDAAA,oDAAA;cAIrC,+BAAA,gDAA6B,gDAAA,8CAAA;cAI7B,yCAAA,gDAAuC,0DAAA,wDAAA;cAIvC,mCAAA,gDAAiC,oDAAA,+CAAA,gDAAA"}
|
package/dist/atoms/wrapping.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EnsAtomFactory } from "./query.js";
|
|
2
2
|
import { EnsMutationAtomFactory } from "./mutation.js";
|
|
3
3
|
//#region src/atoms/wrapping.d.ts
|
|
4
|
-
declare const getFusesAtom: EnsAtomFactory<import("@ensforge/core").
|
|
5
|
-
declare const getWrapperExpiryAtom: EnsAtomFactory<import("@ensforge/core").
|
|
4
|
+
declare const getFusesAtom: EnsAtomFactory<import("@ensforge/core").GetFusesParameters, import("@ensforge/core").GetFusesResult, import("@ensforge/core").GetCanonicalResourceError>;
|
|
5
|
+
declare const getWrapperExpiryAtom: EnsAtomFactory<import("@ensforge/core").GetFusesParameters, import("@ensforge/core").GetWrapperExpiryResult, import("@ensforge/core").GetCanonicalResourceError>;
|
|
6
6
|
declare const createExtendSubnameExpiryMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").ExtendSubnameExpiryParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
7
7
|
declare const createSetChildFusesMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetChildFusesParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
8
8
|
declare const createSetFusesMutationAtom: EnsMutationAtomFactory<import("@ensforge/core").SetFusesParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapping.d.ts","names":[],"sources":["../../src/atoms/wrapping.ts"],"mappings":";;;cAGa,cAAA,wCAAY,
|
|
1
|
+
{"version":3,"file":"wrapping.d.ts","names":[],"sources":["../../src/atoms/wrapping.ts"],"mappings":";;;cAGa,cAAA,wCAAY,6CAAA,yCAAA;cACZ,sBAAA,wCAAoB,6CAAA,iDAAA;cAKpB,uCAAA,gDAAqC,wDAAA,8CAAA;cAIrC,iCAAA,gDAA+B,kDAAA,8CAAA;cAI/B,4BAAA,gDAA0B,6CAAA,8CAAA;cAI1B,8BAAA,gDAA4B,+CAAA,8CAAA;cAI5B,4BAAA,gDAA0B,6CAAA,yCAAA"}
|