@ensforge/sdk 0.0.0 → 0.1.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.
@@ -120,7 +120,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
120
120
  readonly owner: `0x${string}`;
121
121
  readonly operator: `0x${string}`;
122
122
  readonly targets: readonly {
123
- readonly kind: "registry" | "resolver" | "registrar" | "wrapper";
123
+ readonly kind: "resolver" | "registrar" | "registry" | "wrapper";
124
124
  readonly address: `0x${string}`;
125
125
  readonly supported: boolean;
126
126
  readonly approved: boolean;
@@ -276,7 +276,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
276
276
  } | {
277
277
  readonly available: true;
278
278
  readonly protocol: "v1" | "v2";
279
- readonly kind: "registry" | "name-wrapper" | "wrapper-registry" | "resolver" | "registrar";
279
+ readonly kind: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
280
280
  readonly address: `0x${string}`;
281
281
  readonly operation: {
282
282
  readonly type: "address";
@@ -410,7 +410,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
410
410
  } | {
411
411
  readonly supported: true;
412
412
  readonly protocol: "v1";
413
- readonly kind: "name-wrapper" | "registrar";
413
+ readonly kind: "registrar" | "name-wrapper";
414
414
  readonly contract: `0x${string}`;
415
415
  readonly tokenId: bigint;
416
416
  readonly approved: `0x${string}` | null;
@@ -454,7 +454,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
454
454
  } | {
455
455
  readonly available: true;
456
456
  readonly protocol: "v1" | "v2";
457
- readonly kind: "registry" | "name-wrapper" | "wrapper-registry" | "resolver" | "registrar";
457
+ readonly kind: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
458
458
  readonly address: `0x${string}`;
459
459
  readonly operation: {
460
460
  readonly type: "address";
@@ -4,27 +4,27 @@ import { EnsforgeConfig } from "@ensforge/core";
4
4
  //#region src/groups/events.d.ts
5
5
  declare const makeEventsActions: (config: EnsforgeConfig) => Readonly<{
6
6
  getEnsEvents: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetEnsEventsParameters, readonly {
7
- readonly blockNumber: bigint | null;
8
- readonly transactionHash: `0x${string}` | null;
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 kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
13
+ readonly blockNumber: bigint | null;
14
+ readonly transactionHash: `0x${string}` | null;
15
+ readonly kind: "resolver" | "records" | "ownership" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
16
16
  readonly contract: `0x${string}`;
17
17
  readonly transactionIndex: number | null;
18
18
  readonly logIndex: number | null;
19
- readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
19
+ readonly contractKind: "resolver" | "registrar" | "registry" | "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 resolver?: `0x${string}` | undefined;
25
+ readonly owner?: `0x${string}` | undefined;
24
26
  readonly from?: `0x${string}` | undefined;
25
27
  readonly node?: `0x${string}` | undefined;
26
- readonly owner?: `0x${string}` | undefined;
27
- readonly resolver?: `0x${string}` | undefined;
28
28
  readonly label?: string | undefined;
29
29
  readonly tokenId?: bigint | undefined;
30
30
  readonly commitment?: `0x${string}` | undefined;
@@ -32,27 +32,27 @@ declare const makeEventsActions: (config: EnsforgeConfig) => Readonly<{
32
32
  getNameHistory: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetNameHistoryParameters, {
33
33
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
34
34
  readonly events: readonly {
35
- readonly blockNumber: bigint | null;
36
- readonly transactionHash: `0x${string}` | null;
37
35
  readonly protocol: "v1" | "v2";
38
36
  readonly raw: {
39
37
  readonly topics: readonly `0x${string}`[];
40
38
  readonly data: `0x${string}`;
41
39
  readonly args: unknown;
42
40
  };
43
- readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
41
+ readonly blockNumber: bigint | null;
42
+ readonly transactionHash: `0x${string}` | null;
43
+ readonly kind: "resolver" | "records" | "ownership" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
44
44
  readonly contract: `0x${string}`;
45
45
  readonly transactionIndex: number | null;
46
46
  readonly logIndex: number | null;
47
- readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
47
+ readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
48
48
  readonly eventName: string;
49
49
  readonly removed: boolean;
50
- readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
51
50
  readonly to?: `0x${string}` | undefined;
51
+ readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
52
+ readonly resolver?: `0x${string}` | undefined;
53
+ readonly owner?: `0x${string}` | undefined;
52
54
  readonly from?: `0x${string}` | undefined;
53
55
  readonly node?: `0x${string}` | undefined;
54
- readonly owner?: `0x${string}` | undefined;
55
- readonly resolver?: `0x${string}` | undefined;
56
56
  readonly label?: string | undefined;
57
57
  readonly tokenId?: bigint | undefined;
58
58
  readonly commitment?: `0x${string}` | undefined;
@@ -128,7 +128,7 @@ declare const makeNameActions: (config: EnsforgeConfig) => Readonly<{
128
128
  readonly owner: `0x${string}` | null;
129
129
  readonly registrant: `0x${string}` | null;
130
130
  readonly protocol: "v1" | "v2";
131
- readonly ownershipLevel: "registry" | "registrar" | "nameWrapper";
131
+ readonly ownershipLevel: "registrar" | "registry" | "nameWrapper";
132
132
  } | null, import("@ensforge/core").GetOwnerError>>;
133
133
  getProtocol: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, "v1" | "v2", import("@ensforge/core").GetCanonicalResourceError>>;
134
134
  getRegistrant: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensforge/sdk",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "A type-safe TypeScript SDK for ENS",
5
5
  "keywords": [
6
6
  "ens",
@@ -37,7 +37,7 @@
37
37
  "provenance": true
38
38
  },
39
39
  "dependencies": {
40
- "@ensforge/core": "0.0.0"
40
+ "@ensforge/core": "0.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "effect": "^4.0.0-rc.112",