@ensforge/sdk 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 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;
@@ -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;
@@ -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";
8
+ readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
9
+ readonly blockNumber: bigint | null;
10
+ readonly contract: `0x${string}`;
10
11
  readonly raw: {
11
12
  readonly topics: readonly `0x${string}`[];
12
13
  readonly data: `0x${string}`;
13
14
  readonly args: unknown;
14
15
  };
15
- readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
16
- readonly contract: `0x${string}`;
16
+ readonly transactionHash: `0x${string}` | null;
17
17
  readonly transactionIndex: number | null;
18
18
  readonly logIndex: number | null;
19
19
  readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
20
20
  readonly eventName: string;
21
21
  readonly removed: boolean;
22
22
  readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
23
- readonly to?: `0x${string}` | undefined;
24
- readonly from?: `0x${string}` | undefined;
25
23
  readonly node?: `0x${string}` | undefined;
26
24
  readonly owner?: `0x${string}` | undefined;
27
25
  readonly resolver?: `0x${string}` | undefined;
26
+ readonly to?: `0x${string}` | undefined;
27
+ readonly from?: `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";
36
+ readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "renewal" | "manager" | "subname" | "migration" | "other";
37
+ readonly blockNumber: bigint | null;
38
+ readonly contract: `0x${string}`;
38
39
  readonly raw: {
39
40
  readonly topics: readonly `0x${string}`[];
40
41
  readonly data: `0x${string}`;
41
42
  readonly args: unknown;
42
43
  };
43
- readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
44
- readonly contract: `0x${string}`;
44
+ readonly transactionHash: `0x${string}` | null;
45
45
  readonly transactionIndex: number | null;
46
46
  readonly logIndex: number | null;
47
47
  readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
48
48
  readonly eventName: string;
49
49
  readonly removed: boolean;
50
50
  readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
51
- readonly to?: `0x${string}` | undefined;
52
- readonly from?: `0x${string}` | undefined;
53
51
  readonly node?: `0x${string}` | undefined;
54
52
  readonly owner?: `0x${string}` | undefined;
55
53
  readonly resolver?: `0x${string}` | undefined;
54
+ readonly to?: `0x${string}` | undefined;
55
+ readonly from?: `0x${string}` | undefined;
56
56
  readonly label?: string | undefined;
57
57
  readonly tokenId?: bigint | undefined;
58
58
  readonly commitment?: `0x${string}` | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensforge/sdk",
3
- "version": "0.0.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.0.0"
40
+ "@ensforge/core": "0.1.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "effect": "^4.0.0-rc.112",