@ensforge/sdk 0.0.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/LICENSE +201 -0
- package/README.md +69 -0
- package/dist/ensforge.d.ts +38 -0
- package/dist/ensforge.d.ts.map +1 -0
- package/dist/ensforge.js +57 -0
- package/dist/ensforge.js.map +1 -0
- package/dist/groups/batch.d.ts +20 -0
- package/dist/groups/batch.d.ts.map +1 -0
- package/dist/groups/batch.js +20 -0
- package/dist/groups/batch.js.map +1 -0
- package/dist/groups/capabilities.d.ts +536 -0
- package/dist/groups/capabilities.d.ts.map +1 -0
- package/dist/groups/capabilities.js +24 -0
- package/dist/groups/capabilities.js.map +1 -0
- package/dist/groups/dns.d.ts +79 -0
- package/dist/groups/dns.d.ts.map +1 -0
- package/dist/groups/dns.js +20 -0
- package/dist/groups/dns.js.map +1 -0
- package/dist/groups/events.d.ts +66 -0
- package/dist/groups/events.d.ts.map +1 -0
- package/dist/groups/events.js +13 -0
- package/dist/groups/events.js.map +1 -0
- package/dist/groups/index.d.ts +15 -0
- package/dist/groups/migration.d.ts +175 -0
- package/dist/groups/migration.d.ts.map +1 -0
- package/dist/groups/migration.js +17 -0
- package/dist/groups/migration.js.map +1 -0
- package/dist/groups/name.d.ts +146 -0
- package/dist/groups/name.d.ts.map +1 -0
- package/dist/groups/name.js +25 -0
- package/dist/groups/name.js.map +1 -0
- package/dist/groups/ownership.d.ts +16 -0
- package/dist/groups/ownership.d.ts.map +1 -0
- package/dist/groups/ownership.js +16 -0
- package/dist/groups/ownership.js.map +1 -0
- package/dist/groups/permissions.d.ts +21 -0
- package/dist/groups/permissions.d.ts.map +1 -0
- package/dist/groups/permissions.js +21 -0
- package/dist/groups/permissions.js.map +1 -0
- package/dist/groups/records.d.ts +98 -0
- package/dist/groups/records.d.ts.map +1 -0
- package/dist/groups/records.js +37 -0
- package/dist/groups/records.js.map +1 -0
- package/dist/groups/registration.d.ts +257 -0
- package/dist/groups/registration.d.ts.map +1 -0
- package/dist/groups/registration.js +25 -0
- package/dist/groups/registration.js.map +1 -0
- package/dist/groups/resolution.d.ts +53 -0
- package/dist/groups/resolution.d.ts.map +1 -0
- package/dist/groups/resolution.js +22 -0
- package/dist/groups/resolution.js.map +1 -0
- package/dist/groups/reverse.d.ts +18 -0
- package/dist/groups/reverse.d.ts.map +1 -0
- package/dist/groups/reverse.js +15 -0
- package/dist/groups/reverse.js.map +1 -0
- package/dist/groups/subnames.d.ts +17 -0
- package/dist/groups/subnames.d.ts.map +1 -0
- package/dist/groups/subnames.js +17 -0
- package/dist/groups/subnames.js.map +1 -0
- package/dist/groups/wrapping.d.ts +17 -0
- package/dist/groups/wrapping.d.ts.map +1 -0
- package/dist/groups/wrapping.js +17 -0
- package/dist/groups/wrapping.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +4 -0
- package/dist/internal/bind-action.d.ts +28 -0
- package/dist/internal/bind-action.d.ts.map +1 -0
- package/dist/internal/bind-action.js +28 -0
- package/dist/internal/bind-action.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BoundAction, BoundWatchEnsEvents } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/events.d.ts
|
|
5
|
+
declare const makeEventsActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
getEnsEvents: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetEnsEventsParameters, readonly {
|
|
7
|
+
readonly blockNumber: bigint | null;
|
|
8
|
+
readonly transactionHash: `0x${string}` | null;
|
|
9
|
+
readonly protocol: "v1" | "v2";
|
|
10
|
+
readonly raw: {
|
|
11
|
+
readonly topics: readonly `0x${string}`[];
|
|
12
|
+
readonly data: `0x${string}`;
|
|
13
|
+
readonly args: unknown;
|
|
14
|
+
};
|
|
15
|
+
readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
|
|
16
|
+
readonly contract: `0x${string}`;
|
|
17
|
+
readonly transactionIndex: number | null;
|
|
18
|
+
readonly logIndex: number | null;
|
|
19
|
+
readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
|
|
20
|
+
readonly eventName: string;
|
|
21
|
+
readonly removed: boolean;
|
|
22
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
23
|
+
readonly to?: `0x${string}` | undefined;
|
|
24
|
+
readonly from?: `0x${string}` | undefined;
|
|
25
|
+
readonly node?: `0x${string}` | undefined;
|
|
26
|
+
readonly owner?: `0x${string}` | undefined;
|
|
27
|
+
readonly resolver?: `0x${string}` | undefined;
|
|
28
|
+
readonly label?: string | undefined;
|
|
29
|
+
readonly tokenId?: bigint | undefined;
|
|
30
|
+
readonly commitment?: `0x${string}` | undefined;
|
|
31
|
+
}[], import("@ensforge/core").GetEnsEventsError>>;
|
|
32
|
+
getNameHistory: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetNameHistoryParameters, {
|
|
33
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
34
|
+
readonly events: readonly {
|
|
35
|
+
readonly blockNumber: bigint | null;
|
|
36
|
+
readonly transactionHash: `0x${string}` | null;
|
|
37
|
+
readonly protocol: "v1" | "v2";
|
|
38
|
+
readonly raw: {
|
|
39
|
+
readonly topics: readonly `0x${string}`[];
|
|
40
|
+
readonly data: `0x${string}`;
|
|
41
|
+
readonly args: unknown;
|
|
42
|
+
};
|
|
43
|
+
readonly kind: "records" | "ownership" | "resolver" | "commitment" | "registration" | "manager" | "renewal" | "subname" | "migration" | "other";
|
|
44
|
+
readonly contract: `0x${string}`;
|
|
45
|
+
readonly transactionIndex: number | null;
|
|
46
|
+
readonly logIndex: number | null;
|
|
47
|
+
readonly contractKind: "registry" | "name-wrapper" | "resolver" | "registrar" | "migration-controller";
|
|
48
|
+
readonly eventName: string;
|
|
49
|
+
readonly removed: boolean;
|
|
50
|
+
readonly name?: (string & import("effect/Brand").Brand<"NormalizedName">) | undefined;
|
|
51
|
+
readonly to?: `0x${string}` | undefined;
|
|
52
|
+
readonly from?: `0x${string}` | undefined;
|
|
53
|
+
readonly node?: `0x${string}` | undefined;
|
|
54
|
+
readonly owner?: `0x${string}` | undefined;
|
|
55
|
+
readonly resolver?: `0x${string}` | undefined;
|
|
56
|
+
readonly label?: string | undefined;
|
|
57
|
+
readonly tokenId?: bigint | undefined;
|
|
58
|
+
readonly commitment?: `0x${string}` | undefined;
|
|
59
|
+
}[];
|
|
60
|
+
}, import("@ensforge/core").GetEnsEventsError>>;
|
|
61
|
+
watchEnsEvents: BoundWatchEnsEvents;
|
|
62
|
+
}>;
|
|
63
|
+
type EventsActions = ReturnType<typeof makeEventsActions>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { EventsActions, makeEventsActions };
|
|
66
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/groups/events.ts"],"mappings":";;;;cAIa,oBAAqB,QAAQ,mBAAc;gBAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAO9B,gBAAgB,kBAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { getEnsEvents, getNameHistory, watchEnsEvents } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/events.ts
|
|
5
|
+
const makeEventsActions = (config) => Object.freeze({
|
|
6
|
+
getEnsEvents: bindAction(config, getEnsEvents),
|
|
7
|
+
getNameHistory: bindAction(config, getNameHistory),
|
|
8
|
+
watchEnsEvents: bindAction(config, watchEnsEvents)
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { makeEventsActions };
|
|
13
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../../src/groups/events.ts"],"sourcesContent":["import { getEnsEvents, getNameHistory, watchEnsEvents, type EnsforgeConfig } from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeEventsActions = (config: EnsforgeConfig) =>\n Object.freeze({\n getEnsEvents: bindAction(config, getEnsEvents),\n getNameHistory: bindAction(config, getNameHistory),\n watchEnsEvents: bindAction(config, watchEnsEvents),\n });\n\nexport type EventsActions = ReturnType<typeof makeEventsActions>;\n"],"mappings":";;;;AAIA,MAAa,qBAAqB,WAChC,OAAO,OAAO;CACZ,cAAc,WAAW,QAAQ,YAAY;CAC7C,gBAAgB,WAAW,QAAQ,cAAc;CACjD,gBAAgB,WAAW,QAAQ,cAAc;AACnD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BatchActions, makeBatchActions } from "./batch.js";
|
|
2
|
+
import { CapabilitiesActions, makeCapabilitiesActions } from "./capabilities.js";
|
|
3
|
+
import { DnsActions, makeDnsActions } from "./dns.js";
|
|
4
|
+
import { EventsActions, makeEventsActions } from "./events.js";
|
|
5
|
+
import { MigrationActions, makeMigrationActions } from "./migration.js";
|
|
6
|
+
import { NameActions, makeNameActions } from "./name.js";
|
|
7
|
+
import { OwnershipActions, makeOwnershipActions } from "./ownership.js";
|
|
8
|
+
import { PermissionsActions, makePermissionsActions } from "./permissions.js";
|
|
9
|
+
import { RecordsActions, makeRecordsActions } from "./records.js";
|
|
10
|
+
import { RegistrationActions, makeRegistrationActions } from "./registration.js";
|
|
11
|
+
import { ResolutionActions, makeResolutionActions } from "./resolution.js";
|
|
12
|
+
import { ReverseActions, makeReverseActions } from "./reverse.js";
|
|
13
|
+
import { SubnameActions, makeSubnameActions } from "./subnames.js";
|
|
14
|
+
import { WrappingActions, makeWrappingActions } from "./wrapping.js";
|
|
15
|
+
export type { BatchActions, CapabilitiesActions, DnsActions, EventsActions, MigrationActions, NameActions, OwnershipActions, PermissionsActions, RecordsActions, RegistrationActions, ResolutionActions, ReverseActions, SubnameActions, WrappingActions };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/migration.d.ts
|
|
5
|
+
declare const makeMigrationActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
approveMigration: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ApproveMigrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
getMigrationEligibility: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetMigrationEligibilityParameters, {
|
|
8
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
9
|
+
readonly eligible: boolean;
|
|
10
|
+
readonly status: {
|
|
11
|
+
readonly status: "unsupported";
|
|
12
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
13
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
14
|
+
} | {
|
|
15
|
+
readonly status: "not-required";
|
|
16
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
18
|
+
} | {
|
|
19
|
+
readonly status: "reserved-unwrapped";
|
|
20
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
21
|
+
} | {
|
|
22
|
+
readonly status: "locked-child-pending-parent";
|
|
23
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
24
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
25
|
+
readonly fuses: number;
|
|
26
|
+
} | {
|
|
27
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
28
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
29
|
+
readonly fuses: number;
|
|
30
|
+
} | {
|
|
31
|
+
readonly status: "reserved-wrapped-locked";
|
|
32
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
33
|
+
readonly fuses: number;
|
|
34
|
+
} | {
|
|
35
|
+
readonly status: "mirrored-child";
|
|
36
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
37
|
+
readonly parentRegistry: `0x${string}`;
|
|
38
|
+
readonly fuses: number;
|
|
39
|
+
} | {
|
|
40
|
+
readonly status: "migrated-unlocked";
|
|
41
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
42
|
+
} | {
|
|
43
|
+
readonly status: "migrated-locked";
|
|
44
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
45
|
+
readonly registry: `0x${string}`;
|
|
46
|
+
};
|
|
47
|
+
readonly target: {
|
|
48
|
+
readonly supported: false;
|
|
49
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
50
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
51
|
+
} | {
|
|
52
|
+
readonly supported: true;
|
|
53
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
54
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
55
|
+
readonly tokenContract: `0x${string}`;
|
|
56
|
+
readonly tokenId: bigint;
|
|
57
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
58
|
+
readonly receiver: `0x${string}`;
|
|
59
|
+
};
|
|
60
|
+
readonly account: `0x${string}`;
|
|
61
|
+
readonly owner: `0x${string}` | null;
|
|
62
|
+
readonly authorized: boolean;
|
|
63
|
+
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")[];
|
|
64
|
+
}, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
65
|
+
getMigrationPlan: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetMigrationPlanParameters, {
|
|
66
|
+
readonly status: "unsupported";
|
|
67
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
68
|
+
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")[];
|
|
69
|
+
} | {
|
|
70
|
+
readonly status: "not-required";
|
|
71
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
72
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE" | "ALREADY_MIGRATED";
|
|
73
|
+
} | {
|
|
74
|
+
readonly status: "blocked";
|
|
75
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
76
|
+
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")[];
|
|
77
|
+
} | {
|
|
78
|
+
readonly status: "authorization-required";
|
|
79
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
80
|
+
readonly account: `0x${string}`;
|
|
81
|
+
readonly owner: `0x${string}`;
|
|
82
|
+
readonly target: {
|
|
83
|
+
readonly supported: false;
|
|
84
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
85
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
86
|
+
} | {
|
|
87
|
+
readonly supported: true;
|
|
88
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
89
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
90
|
+
readonly tokenContract: `0x${string}`;
|
|
91
|
+
readonly tokenId: bigint;
|
|
92
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
93
|
+
readonly receiver: `0x${string}`;
|
|
94
|
+
};
|
|
95
|
+
} | {
|
|
96
|
+
readonly status: "ready";
|
|
97
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
98
|
+
readonly target: {
|
|
99
|
+
readonly supported: false;
|
|
100
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
101
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
102
|
+
} | {
|
|
103
|
+
readonly supported: true;
|
|
104
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
105
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
106
|
+
readonly tokenContract: `0x${string}`;
|
|
107
|
+
readonly tokenId: bigint;
|
|
108
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
109
|
+
readonly receiver: `0x${string}`;
|
|
110
|
+
};
|
|
111
|
+
readonly migration: {
|
|
112
|
+
readonly label: string;
|
|
113
|
+
readonly owner: `0x${string}`;
|
|
114
|
+
readonly resolver: `0x${string}`;
|
|
115
|
+
readonly subregistry: `0x${string}`;
|
|
116
|
+
};
|
|
117
|
+
readonly warnings: readonly ("SUBREGISTRY_IGNORED_FOR_LOCKED_NAME" | "RESOLVER_MAY_BE_PRESERVED")[];
|
|
118
|
+
}, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
119
|
+
getMigrationStatus: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
120
|
+
readonly status: "unsupported";
|
|
121
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
122
|
+
readonly reason: "ENSV2_NOT_ACTIVE" | "NOT_ETH_NAME" | "NAME_NOT_RESERVED";
|
|
123
|
+
} | {
|
|
124
|
+
readonly status: "not-required";
|
|
125
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
126
|
+
readonly reason: "V2_NATIVE" | "AVAILABLE";
|
|
127
|
+
} | {
|
|
128
|
+
readonly status: "reserved-unwrapped";
|
|
129
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
130
|
+
} | {
|
|
131
|
+
readonly status: "locked-child-pending-parent";
|
|
132
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
133
|
+
readonly parent: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
134
|
+
readonly fuses: number;
|
|
135
|
+
} | {
|
|
136
|
+
readonly status: "reserved-wrapped-unlocked";
|
|
137
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
138
|
+
readonly fuses: number;
|
|
139
|
+
} | {
|
|
140
|
+
readonly status: "reserved-wrapped-locked";
|
|
141
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
142
|
+
readonly fuses: number;
|
|
143
|
+
} | {
|
|
144
|
+
readonly status: "mirrored-child";
|
|
145
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
146
|
+
readonly parentRegistry: `0x${string}`;
|
|
147
|
+
readonly fuses: number;
|
|
148
|
+
} | {
|
|
149
|
+
readonly status: "migrated-unlocked";
|
|
150
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
151
|
+
} | {
|
|
152
|
+
readonly status: "migrated-locked";
|
|
153
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
154
|
+
readonly registry: `0x${string}`;
|
|
155
|
+
}, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
156
|
+
getMigrationTarget: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetMigrationStatusParameters, {
|
|
157
|
+
readonly supported: false;
|
|
158
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
159
|
+
readonly reason: "MIGRATION_UNSUPPORTED" | "MIGRATION_NOT_REQUIRED" | "PARENT_NOT_MIGRATED";
|
|
160
|
+
} | {
|
|
161
|
+
readonly supported: true;
|
|
162
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
163
|
+
readonly route: "unwrapped" | "wrapped-unlocked" | "wrapped-locked" | "locked-child";
|
|
164
|
+
readonly tokenContract: `0x${string}`;
|
|
165
|
+
readonly tokenId: bigint;
|
|
166
|
+
readonly tokenStandard: "erc721" | "erc1155";
|
|
167
|
+
readonly receiver: `0x${string}`;
|
|
168
|
+
}, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
169
|
+
migrateName: BoundAction<import("@ensforge/core").MigrateNameAction>;
|
|
170
|
+
migrateNames: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").MigrateNamesParameters, import("@ensforge/core").MigrationBatchProgress, import("@ensforge/core").WriteError>>;
|
|
171
|
+
}>;
|
|
172
|
+
type MigrationActions = ReturnType<typeof makeMigrationActions>;
|
|
173
|
+
//#endregion
|
|
174
|
+
export { MigrationActions, makeMigrationActions };
|
|
175
|
+
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/groups/migration.ts"],"mappings":";;;;cAaa,uBAAwB,QAAQ,mBAAc;oBAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAWjC,mBAAmB,kBAAkB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { approveMigration, getMigrationEligibility, getMigrationPlan, getMigrationStatus, getMigrationTarget, migrateName, migrateNames } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/migration.ts
|
|
5
|
+
const makeMigrationActions = (config) => Object.freeze({
|
|
6
|
+
approveMigration: bindAction(config, approveMigration),
|
|
7
|
+
getMigrationEligibility: bindAction(config, getMigrationEligibility),
|
|
8
|
+
getMigrationPlan: bindAction(config, getMigrationPlan),
|
|
9
|
+
getMigrationStatus: bindAction(config, getMigrationStatus),
|
|
10
|
+
getMigrationTarget: bindAction(config, getMigrationTarget),
|
|
11
|
+
migrateName: bindAction(config, migrateName),
|
|
12
|
+
migrateNames: bindAction(config, migrateNames)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { makeMigrationActions };
|
|
17
|
+
//# sourceMappingURL=migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.js","names":[],"sources":["../../src/groups/migration.ts"],"sourcesContent":["import {\n approveMigration,\n getMigrationEligibility,\n getMigrationPlan,\n getMigrationStatus,\n getMigrationTarget,\n migrateName,\n migrateNames,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeMigrationActions = (config: EnsforgeConfig) =>\n Object.freeze({\n approveMigration: bindAction(config, approveMigration),\n getMigrationEligibility: bindAction(config, getMigrationEligibility),\n getMigrationPlan: bindAction(config, getMigrationPlan),\n getMigrationStatus: bindAction(config, getMigrationStatus),\n getMigrationTarget: bindAction(config, getMigrationTarget),\n migrateName: bindAction(config, migrateName),\n migrateNames: bindAction(config, migrateNames),\n });\n\nexport type MigrationActions = ReturnType<typeof makeMigrationActions>;\n"],"mappings":";;;;AAaA,MAAa,wBAAwB,WACnC,OAAO,OAAO;CACZ,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,yBAAyB,WAAW,QAAQ,uBAAuB;CACnE,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,aAAa,WAAW,QAAQ,WAAW;CAC3C,cAAc,WAAW,QAAQ,YAAY;AAC/C,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/name.d.ts
|
|
5
|
+
declare const makeNameActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
getCanonicalResource: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
7
|
+
getExpiry: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetExpiryParameters, {
|
|
8
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
9
|
+
readonly expiry: bigint;
|
|
10
|
+
readonly gracePeriod: bigint;
|
|
11
|
+
readonly gracePeriodEnd: bigint;
|
|
12
|
+
readonly protocol: "v1" | "v2";
|
|
13
|
+
readonly source: "registry" | "nameWrapper" | "baseRegistrar";
|
|
14
|
+
} | null, import("@ensforge/core").GetExpiryError>>;
|
|
15
|
+
getManager: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
16
|
+
getNameState: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, {
|
|
17
|
+
readonly kind: "available";
|
|
18
|
+
readonly protocol: "v1" | "v2";
|
|
19
|
+
readonly wrapped: false;
|
|
20
|
+
readonly migrated: false;
|
|
21
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
22
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
23
|
+
readonly owner: `0x${string}` | null;
|
|
24
|
+
readonly manager: `0x${string}` | null;
|
|
25
|
+
readonly registrant: `0x${string}` | null;
|
|
26
|
+
readonly registry: `0x${string}`;
|
|
27
|
+
readonly resolver: `0x${string}` | null;
|
|
28
|
+
readonly expiry: bigint | null;
|
|
29
|
+
readonly gracePeriodEnd: bigint | null;
|
|
30
|
+
readonly tokenId: bigint | null;
|
|
31
|
+
readonly resource: bigint | null;
|
|
32
|
+
readonly available: boolean;
|
|
33
|
+
readonly renewable: boolean;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: "v1-unwrapped";
|
|
36
|
+
readonly protocol: "v1";
|
|
37
|
+
readonly wrapped: false;
|
|
38
|
+
readonly migrated: false;
|
|
39
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
40
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
41
|
+
readonly owner: `0x${string}` | null;
|
|
42
|
+
readonly manager: `0x${string}` | null;
|
|
43
|
+
readonly registrant: `0x${string}` | null;
|
|
44
|
+
readonly registry: `0x${string}`;
|
|
45
|
+
readonly resolver: `0x${string}` | null;
|
|
46
|
+
readonly expiry: bigint | null;
|
|
47
|
+
readonly gracePeriodEnd: bigint | null;
|
|
48
|
+
readonly tokenId: bigint | null;
|
|
49
|
+
readonly resource: bigint | null;
|
|
50
|
+
readonly available: boolean;
|
|
51
|
+
readonly renewable: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: "v1-wrapped";
|
|
54
|
+
readonly protocol: "v1";
|
|
55
|
+
readonly wrapped: true;
|
|
56
|
+
readonly migrated: false;
|
|
57
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
58
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
59
|
+
readonly owner: `0x${string}` | null;
|
|
60
|
+
readonly manager: `0x${string}` | null;
|
|
61
|
+
readonly registrant: `0x${string}` | null;
|
|
62
|
+
readonly registry: `0x${string}`;
|
|
63
|
+
readonly resolver: `0x${string}` | null;
|
|
64
|
+
readonly expiry: bigint | null;
|
|
65
|
+
readonly gracePeriodEnd: bigint | null;
|
|
66
|
+
readonly tokenId: bigint | null;
|
|
67
|
+
readonly resource: bigint | null;
|
|
68
|
+
readonly available: boolean;
|
|
69
|
+
readonly renewable: boolean;
|
|
70
|
+
} | {
|
|
71
|
+
readonly kind: "v2-native";
|
|
72
|
+
readonly protocol: "v2";
|
|
73
|
+
readonly wrapped: boolean;
|
|
74
|
+
readonly migrated: false;
|
|
75
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
76
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
77
|
+
readonly owner: `0x${string}` | null;
|
|
78
|
+
readonly manager: `0x${string}` | null;
|
|
79
|
+
readonly registrant: `0x${string}` | null;
|
|
80
|
+
readonly registry: `0x${string}`;
|
|
81
|
+
readonly resolver: `0x${string}` | null;
|
|
82
|
+
readonly expiry: bigint | null;
|
|
83
|
+
readonly gracePeriodEnd: bigint | null;
|
|
84
|
+
readonly tokenId: bigint | null;
|
|
85
|
+
readonly resource: bigint | null;
|
|
86
|
+
readonly available: boolean;
|
|
87
|
+
readonly renewable: boolean;
|
|
88
|
+
} | {
|
|
89
|
+
readonly kind: "v2-migrated";
|
|
90
|
+
readonly protocol: "v2";
|
|
91
|
+
readonly wrapped: boolean;
|
|
92
|
+
readonly migrated: true;
|
|
93
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
94
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
95
|
+
readonly owner: `0x${string}` | null;
|
|
96
|
+
readonly manager: `0x${string}` | null;
|
|
97
|
+
readonly registrant: `0x${string}` | null;
|
|
98
|
+
readonly registry: `0x${string}`;
|
|
99
|
+
readonly resolver: `0x${string}` | null;
|
|
100
|
+
readonly expiry: bigint | null;
|
|
101
|
+
readonly gracePeriodEnd: bigint | null;
|
|
102
|
+
readonly tokenId: bigint | null;
|
|
103
|
+
readonly resource: bigint | null;
|
|
104
|
+
readonly available: boolean;
|
|
105
|
+
readonly renewable: boolean;
|
|
106
|
+
} | {
|
|
107
|
+
readonly kind: "v2-reserved";
|
|
108
|
+
readonly protocol: "v1";
|
|
109
|
+
readonly wrapped: boolean;
|
|
110
|
+
readonly migrated: false;
|
|
111
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
112
|
+
readonly status: "available" | "reserved" | "active" | "grace" | "expired";
|
|
113
|
+
readonly owner: `0x${string}` | null;
|
|
114
|
+
readonly manager: `0x${string}` | null;
|
|
115
|
+
readonly registrant: `0x${string}` | null;
|
|
116
|
+
readonly registry: `0x${string}`;
|
|
117
|
+
readonly resolver: `0x${string}` | null;
|
|
118
|
+
readonly expiry: bigint | null;
|
|
119
|
+
readonly gracePeriodEnd: bigint | null;
|
|
120
|
+
readonly tokenId: bigint | null;
|
|
121
|
+
readonly resource: bigint | null;
|
|
122
|
+
readonly available: boolean;
|
|
123
|
+
readonly renewable: boolean;
|
|
124
|
+
}, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
125
|
+
getNameStatus: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, "available" | "reserved" | "active" | "grace" | "expired", import("@ensforge/core").GetCanonicalResourceError>>;
|
|
126
|
+
getOwner: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetOwnerParameters, {
|
|
127
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
128
|
+
readonly owner: `0x${string}` | null;
|
|
129
|
+
readonly registrant: `0x${string}` | null;
|
|
130
|
+
readonly protocol: "v1" | "v2";
|
|
131
|
+
readonly ownershipLevel: "registry" | "registrar" | "nameWrapper";
|
|
132
|
+
} | null, import("@ensforge/core").GetOwnerError>>;
|
|
133
|
+
getProtocol: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, "v1" | "v2", import("@ensforge/core").GetCanonicalResourceError>>;
|
|
134
|
+
getRegistrant: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}` | null, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
135
|
+
getRegistry: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, `0x${string}`, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
136
|
+
getTokenId: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, bigint | null, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
137
|
+
isAvailable: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
138
|
+
isMigrated: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
139
|
+
isRenewable: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
140
|
+
isReserved: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
141
|
+
isWrapped: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, boolean, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
142
|
+
}>;
|
|
143
|
+
type NameActions = ReturnType<typeof makeNameActions>;
|
|
144
|
+
//#endregion
|
|
145
|
+
export { NameActions, makeNameActions };
|
|
146
|
+
//# sourceMappingURL=name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name.d.ts","names":[],"sources":["../../src/groups/name.ts"],"mappings":";;;;cAqBa,kBAAmB,QAAQ,mBAAc;wBAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmB5B,cAAc,kBAAkB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { getCanonicalResource, getExpiry, getManager, getNameState, getNameStatus, getOwner, getProtocol, getRegistrant, getRegistry, getTokenId, isAvailable, isMigrated, isRenewable, isReserved, isWrapped } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/name.ts
|
|
5
|
+
const makeNameActions = (config) => Object.freeze({
|
|
6
|
+
getCanonicalResource: bindAction(config, getCanonicalResource),
|
|
7
|
+
getExpiry: bindAction(config, getExpiry),
|
|
8
|
+
getManager: bindAction(config, getManager),
|
|
9
|
+
getNameState: bindAction(config, getNameState),
|
|
10
|
+
getNameStatus: bindAction(config, getNameStatus),
|
|
11
|
+
getOwner: bindAction(config, getOwner),
|
|
12
|
+
getProtocol: bindAction(config, getProtocol),
|
|
13
|
+
getRegistrant: bindAction(config, getRegistrant),
|
|
14
|
+
getRegistry: bindAction(config, getRegistry),
|
|
15
|
+
getTokenId: bindAction(config, getTokenId),
|
|
16
|
+
isAvailable: bindAction(config, isAvailable),
|
|
17
|
+
isMigrated: bindAction(config, isMigrated),
|
|
18
|
+
isRenewable: bindAction(config, isRenewable),
|
|
19
|
+
isReserved: bindAction(config, isReserved),
|
|
20
|
+
isWrapped: bindAction(config, isWrapped)
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeNameActions };
|
|
25
|
+
//# sourceMappingURL=name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name.js","names":[],"sources":["../../src/groups/name.ts"],"sourcesContent":["import {\n getCanonicalResource,\n getExpiry,\n getManager,\n getNameState,\n getNameStatus,\n getOwner,\n getProtocol,\n getRegistrant,\n getRegistry,\n getTokenId,\n isAvailable,\n isMigrated,\n isRenewable,\n isReserved,\n isWrapped,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeNameActions = (config: EnsforgeConfig) =>\n Object.freeze({\n getCanonicalResource: bindAction(config, getCanonicalResource),\n getExpiry: bindAction(config, getExpiry),\n getManager: bindAction(config, getManager),\n getNameState: bindAction(config, getNameState),\n getNameStatus: bindAction(config, getNameStatus),\n getOwner: bindAction(config, getOwner),\n getProtocol: bindAction(config, getProtocol),\n getRegistrant: bindAction(config, getRegistrant),\n getRegistry: bindAction(config, getRegistry),\n getTokenId: bindAction(config, getTokenId),\n isAvailable: bindAction(config, isAvailable),\n isMigrated: bindAction(config, isMigrated),\n isRenewable: bindAction(config, isRenewable),\n isReserved: bindAction(config, isReserved),\n isWrapped: bindAction(config, isWrapped),\n });\n\nexport type NameActions = ReturnType<typeof makeNameActions>;\n"],"mappings":";;;;AAqBA,MAAa,mBAAmB,WAC9B,OAAO,OAAO;CACZ,sBAAsB,WAAW,QAAQ,oBAAoB;CAC7D,WAAW,WAAW,QAAQ,SAAS;CACvC,YAAY,WAAW,QAAQ,UAAU;CACzC,cAAc,WAAW,QAAQ,YAAY;CAC7C,eAAe,WAAW,QAAQ,aAAa;CAC/C,UAAU,WAAW,QAAQ,QAAQ;CACrC,aAAa,WAAW,QAAQ,WAAW;CAC3C,eAAe,WAAW,QAAQ,aAAa;CAC/C,aAAa,WAAW,QAAQ,WAAW;CAC3C,YAAY,WAAW,QAAQ,UAAU;CACzC,aAAa,WAAW,QAAQ,WAAW;CAC3C,YAAY,WAAW,QAAQ,UAAU;CACzC,aAAa,WAAW,QAAQ,WAAW;CAC3C,YAAY,WAAW,QAAQ,UAAU;CACzC,WAAW,WAAW,QAAQ,SAAS;AACzC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/ownership.d.ts
|
|
5
|
+
declare const makeOwnershipActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
getTtl: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCanonicalResourceParameters, import("@ensforge/core").GetTtlResult, import("@ensforge/core").GetCanonicalResourceError>>;
|
|
7
|
+
reclaimName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ReclaimNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
8
|
+
setManager: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetManagerParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
9
|
+
setTtl: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetTtlParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
10
|
+
transferName: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").TransferNameParameters, import("@ensforge/core").TransferNameProgress, import("@ensforge/core").WriteError>>;
|
|
11
|
+
transferRegistrant: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").TransferRegistrantParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
12
|
+
}>;
|
|
13
|
+
type OwnershipActions = ReturnType<typeof makeOwnershipActions>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { OwnershipActions, makeOwnershipActions };
|
|
16
|
+
//# sourceMappingURL=ownership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownership.d.ts","names":[],"sources":["../../src/groups/ownership.ts"],"mappings":";;;;cAYa,uBAAwB,QAAQ,mBAAc;UAAd;;;;;;;KAUjC,mBAAmB,kBAAkB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { getTtl, reclaimName, setManager, setTtl, transferName, transferRegistrant } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/ownership.ts
|
|
5
|
+
const makeOwnershipActions = (config) => Object.freeze({
|
|
6
|
+
getTtl: bindAction(config, getTtl),
|
|
7
|
+
reclaimName: bindAction(config, reclaimName),
|
|
8
|
+
setManager: bindAction(config, setManager),
|
|
9
|
+
setTtl: bindAction(config, setTtl),
|
|
10
|
+
transferName: bindAction(config, transferName),
|
|
11
|
+
transferRegistrant: bindAction(config, transferRegistrant)
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { makeOwnershipActions };
|
|
16
|
+
//# sourceMappingURL=ownership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../src/groups/ownership.ts"],"sourcesContent":["import {\n getTtl,\n reclaimName,\n setManager,\n setTtl,\n transferName,\n transferRegistrant,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeOwnershipActions = (config: EnsforgeConfig) =>\n Object.freeze({\n getTtl: bindAction(config, getTtl),\n reclaimName: bindAction(config, reclaimName),\n setManager: bindAction(config, setManager),\n setTtl: bindAction(config, setTtl),\n transferName: bindAction(config, transferName),\n transferRegistrant: bindAction(config, transferRegistrant),\n });\n\nexport type OwnershipActions = ReturnType<typeof makeOwnershipActions>;\n"],"mappings":";;;;AAYA,MAAa,wBAAwB,WACnC,OAAO,OAAO;CACZ,QAAQ,WAAW,QAAQ,MAAM;CACjC,aAAa,WAAW,QAAQ,WAAW;CAC3C,YAAY,WAAW,QAAQ,UAAU;CACzC,QAAQ,WAAW,QAAQ,MAAM;CACjC,cAAc,WAAW,QAAQ,YAAY;CAC7C,oBAAoB,WAAW,QAAQ,kBAAkB;AAC3D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/permissions.d.ts
|
|
5
|
+
declare const makePermissionsActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
approveName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ApproveNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
clearNameApproval: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ClearNameApprovalParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
8
|
+
grantRegistryRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").RegistryRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
9
|
+
grantResolverRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ResolverRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
10
|
+
grantResolverRootRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ResolverRootRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
11
|
+
revokeRegistryRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").RegistryRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
12
|
+
revokeResolverRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ResolverRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
13
|
+
revokeResolverRootRoles: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ResolverRootRolesMutationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
14
|
+
setOperatorApproval: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetOperatorApprovalParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
15
|
+
setRecordPermissions: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").SetRecordPermissionsParameters, import("@ensforge/core").SetRecordPermissionsResult, import("@ensforge/core").WriteError>>;
|
|
16
|
+
setResolverDelegateApproval: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetResolverDelegateApprovalParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
17
|
+
}>;
|
|
18
|
+
type PermissionsActions = ReturnType<typeof makePermissionsActions>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PermissionsActions, makePermissionsActions };
|
|
21
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","names":[],"sources":["../../src/groups/permissions.ts"],"mappings":";;;;cAiBa,yBAA0B,QAAQ,mBAAc;eAAd;;;;;;;;;;;;KAenC,qBAAqB,kBAAkB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { approveName, clearNameApproval, grantRegistryRoles, grantResolverRoles, grantResolverRootRoles, revokeRegistryRoles, revokeResolverRoles, revokeResolverRootRoles, setOperatorApproval, setRecordPermissions, setResolverDelegateApproval } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/permissions.ts
|
|
5
|
+
const makePermissionsActions = (config) => Object.freeze({
|
|
6
|
+
approveName: bindAction(config, approveName),
|
|
7
|
+
clearNameApproval: bindAction(config, clearNameApproval),
|
|
8
|
+
grantRegistryRoles: bindAction(config, grantRegistryRoles),
|
|
9
|
+
grantResolverRoles: bindAction(config, grantResolverRoles),
|
|
10
|
+
grantResolverRootRoles: bindAction(config, grantResolverRootRoles),
|
|
11
|
+
revokeRegistryRoles: bindAction(config, revokeRegistryRoles),
|
|
12
|
+
revokeResolverRoles: bindAction(config, revokeResolverRoles),
|
|
13
|
+
revokeResolverRootRoles: bindAction(config, revokeResolverRootRoles),
|
|
14
|
+
setOperatorApproval: bindAction(config, setOperatorApproval),
|
|
15
|
+
setRecordPermissions: bindAction(config, setRecordPermissions),
|
|
16
|
+
setResolverDelegateApproval: bindAction(config, setResolverDelegateApproval)
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { makePermissionsActions };
|
|
21
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.js","names":[],"sources":["../../src/groups/permissions.ts"],"sourcesContent":["import {\n approveName,\n clearNameApproval,\n grantRegistryRoles,\n grantResolverRoles,\n grantResolverRootRoles,\n revokeRegistryRoles,\n revokeResolverRoles,\n revokeResolverRootRoles,\n setOperatorApproval,\n setRecordPermissions,\n setResolverDelegateApproval,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makePermissionsActions = (config: EnsforgeConfig) =>\n Object.freeze({\n approveName: bindAction(config, approveName),\n clearNameApproval: bindAction(config, clearNameApproval),\n grantRegistryRoles: bindAction(config, grantRegistryRoles),\n grantResolverRoles: bindAction(config, grantResolverRoles),\n grantResolverRootRoles: bindAction(config, grantResolverRootRoles),\n revokeRegistryRoles: bindAction(config, revokeRegistryRoles),\n revokeResolverRoles: bindAction(config, revokeResolverRoles),\n revokeResolverRootRoles: bindAction(config, revokeResolverRootRoles),\n setOperatorApproval: bindAction(config, setOperatorApproval),\n setRecordPermissions: bindAction(config, setRecordPermissions),\n setResolverDelegateApproval: bindAction(config, setResolverDelegateApproval),\n });\n\nexport type PermissionsActions = ReturnType<typeof makePermissionsActions>;\n"],"mappings":";;;;AAiBA,MAAa,0BAA0B,WACrC,OAAO,OAAO;CACZ,aAAa,WAAW,QAAQ,WAAW;CAC3C,mBAAmB,WAAW,QAAQ,iBAAiB;CACvD,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,wBAAwB,WAAW,QAAQ,sBAAsB;CACjE,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,yBAAyB,WAAW,QAAQ,uBAAuB;CACnE,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,sBAAsB,WAAW,QAAQ,oBAAoB;CAC7D,6BAA6B,WAAW,QAAQ,2BAA2B;AAC7E,CAAC"}
|