@ensforge/sdk 0.1.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 CHANGED
@@ -13,7 +13,7 @@ A type-safe client for building ENS applications.
13
13
  ## Installation
14
14
 
15
15
  ```sh
16
- pnpm add @ensforge/sdk
16
+ pnpm add @ensforge/sdk effect@rc viem
17
17
  ```
18
18
 
19
19
  ## Overview
@@ -27,7 +27,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
27
27
  readonly inherited: boolean;
28
28
  readonly extended: boolean;
29
29
  readonly permissioned: boolean;
30
- readonly authorization: "unknown" | "none" | "owner-delegate" | "role";
30
+ readonly authorization: "none" | "owner-delegate" | "role" | "unknown";
31
31
  readonly profiles: {
32
32
  readonly address: boolean;
33
33
  readonly text: boolean;
@@ -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: "resolver" | "registrar" | "registry" | "wrapper";
123
+ readonly kind: "registry" | "resolver" | "registrar" | "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: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
279
+ readonly kind: "registry" | "name-wrapper" | "wrapper-registry" | "resolver" | "registrar";
280
280
  readonly address: `0x${string}`;
281
281
  readonly operation: {
282
282
  readonly type: "address";
@@ -365,7 +365,7 @@ declare const makeCapabilitiesActions: (config: EnsforgeConfig) => Readonly<{
365
365
  readonly inherited: boolean;
366
366
  readonly extended: boolean;
367
367
  readonly permissioned: boolean;
368
- readonly authorization: "unknown" | "none" | "owner-delegate" | "role";
368
+ readonly authorization: "none" | "owner-delegate" | "role" | "unknown";
369
369
  readonly profiles: {
370
370
  readonly address: boolean;
371
371
  readonly text: boolean;
@@ -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: "registrar" | "name-wrapper";
413
+ readonly kind: "name-wrapper" | "registrar";
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: "resolver" | "registrar" | "registry" | "name-wrapper" | "wrapper-registry";
457
+ readonly kind: "registry" | "name-wrapper" | "wrapper-registry" | "resolver" | "registrar";
458
458
  readonly address: `0x${string}`;
459
459
  readonly operation: {
460
460
  readonly type: "address";
@@ -5,26 +5,26 @@ import { EnsforgeConfig } from "@ensforge/core";
5
5
  declare const makeEventsActions: (config: EnsforgeConfig) => Readonly<{
6
6
  getEnsEvents: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetEnsEventsParameters, readonly {
7
7
  readonly protocol: "v1" | "v2";
8
+ readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
9
+ readonly blockNumber: bigint | null;
10
+ readonly contract: `0x${string}`;
8
11
  readonly raw: {
9
12
  readonly topics: readonly `0x${string}`[];
10
13
  readonly data: `0x${string}`;
11
14
  readonly args: unknown;
12
15
  };
13
- readonly blockNumber: bigint | null;
14
16
  readonly transactionHash: `0x${string}` | null;
15
- readonly kind: "resolver" | "records" | "ownership" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
16
- readonly contract: `0x${string}`;
17
17
  readonly transactionIndex: number | null;
18
18
  readonly logIndex: number | null;
19
- readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
19
+ readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
20
20
  readonly eventName: string;
21
21
  readonly removed: boolean;
22
- readonly to?: `0x${string}` | undefined;
23
22
  readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
24
- readonly resolver?: `0x${string}` | undefined;
23
+ readonly node?: `0x${string}` | undefined;
25
24
  readonly owner?: `0x${string}` | undefined;
25
+ readonly resolver?: `0x${string}` | undefined;
26
+ readonly to?: `0x${string}` | undefined;
26
27
  readonly from?: `0x${string}` | undefined;
27
- readonly node?: `0x${string}` | undefined;
28
28
  readonly label?: string | undefined;
29
29
  readonly tokenId?: bigint | undefined;
30
30
  readonly commitment?: `0x${string}` | undefined;
@@ -33,26 +33,26 @@ declare const makeEventsActions: (config: EnsforgeConfig) => Readonly<{
33
33
  readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
34
34
  readonly events: readonly {
35
35
  readonly protocol: "v1" | "v2";
36
+ readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
37
+ readonly blockNumber: bigint | null;
38
+ readonly contract: `0x${string}`;
36
39
  readonly raw: {
37
40
  readonly topics: readonly `0x${string}`[];
38
41
  readonly data: `0x${string}`;
39
42
  readonly args: unknown;
40
43
  };
41
- readonly blockNumber: bigint | null;
42
44
  readonly transactionHash: `0x${string}` | null;
43
- readonly kind: "resolver" | "records" | "ownership" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
44
- readonly contract: `0x${string}`;
45
45
  readonly transactionIndex: number | null;
46
46
  readonly logIndex: number | null;
47
- readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
47
+ readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
48
48
  readonly eventName: string;
49
49
  readonly removed: boolean;
50
- readonly to?: `0x${string}` | undefined;
51
50
  readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
52
- readonly resolver?: `0x${string}` | undefined;
51
+ readonly node?: `0x${string}` | undefined;
53
52
  readonly owner?: `0x${string}` | undefined;
53
+ readonly resolver?: `0x${string}` | undefined;
54
+ readonly to?: `0x${string}` | undefined;
54
55
  readonly from?: `0x${string}` | undefined;
55
- readonly node?: `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: "registrar" | "registry" | "nameWrapper";
131
+ readonly ownershipLevel: "registry" | "registrar" | "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.1.0",
3
+ "version": "0.1.1",
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.1.0"
40
+ "@ensforge/core": "0.1.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "effect": "^4.0.0-rc.112",