@ensforge/sdk 0.1.0 → 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 +12 -2
- package/dist/batch.d.ts +3 -0
- package/dist/batch.js +0 -0
- package/dist/capabilities.d.ts +3 -0
- package/dist/capabilities.js +0 -0
- package/dist/dns.d.ts +3 -0
- package/dist/dns.js +0 -0
- package/dist/ensforge.d.ts +1 -1
- package/dist/ensforge.d.ts.map +1 -1
- package/dist/ensforge.js +2 -2
- package/dist/ensforge.js.map +1 -1
- package/dist/events.d.ts +3 -0
- package/dist/events.js +0 -0
- package/dist/groups/batch.d.ts +14 -16
- package/dist/groups/batch.d.ts.map +1 -1
- package/dist/groups/batch.js.map +1 -1
- package/dist/groups/capabilities.d.ts +18 -532
- package/dist/groups/capabilities.d.ts.map +1 -1
- package/dist/groups/capabilities.js.map +1 -1
- package/dist/groups/dns.d.ts +14 -75
- package/dist/groups/dns.d.ts.map +1 -1
- package/dist/groups/dns.js.map +1 -1
- package/dist/groups/events.d.ts +7 -62
- package/dist/groups/events.d.ts.map +1 -1
- package/dist/groups/events.js.map +1 -1
- package/dist/groups/index.d.ts +14 -14
- package/dist/groups/migration.d.ts +11 -171
- package/dist/groups/migration.d.ts.map +1 -1
- package/dist/groups/migration.js.map +1 -1
- package/dist/groups/name.d.ts +19 -142
- package/dist/groups/name.d.ts.map +1 -1
- package/dist/groups/name.js.map +1 -1
- package/dist/groups/ownership.d.ts +10 -12
- package/dist/groups/ownership.d.ts.map +1 -1
- package/dist/groups/ownership.js.map +1 -1
- package/dist/groups/permissions.d.ts +15 -17
- package/dist/groups/permissions.d.ts.map +1 -1
- package/dist/groups/permissions.js.map +1 -1
- package/dist/groups/records.d.ts +31 -94
- package/dist/groups/records.d.ts.map +1 -1
- package/dist/groups/records.js.map +1 -1
- package/dist/groups/registration.d.ts +19 -253
- package/dist/groups/registration.d.ts.map +1 -1
- package/dist/groups/registration.js.map +1 -1
- package/dist/groups/resolution.d.ts +16 -49
- package/dist/groups/resolution.d.ts.map +1 -1
- package/dist/groups/resolution.js.map +1 -1
- package/dist/groups/reverse.d.ts +9 -14
- package/dist/groups/reverse.d.ts.map +1 -1
- package/dist/groups/reverse.js.map +1 -1
- package/dist/groups/subnames.d.ts +11 -13
- package/dist/groups/subnames.d.ts.map +1 -1
- package/dist/groups/subnames.js.map +1 -1
- package/dist/groups/wrapping.d.ts +11 -13
- package/dist/groups/wrapping.d.ts.map +1 -1
- package/dist/groups/wrapping.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/internal/bind-action.d.ts +13 -5
- package/dist/internal/bind-action.d.ts.map +1 -1
- package/dist/internal/bind-action.js.map +1 -1
- package/dist/migration.d.ts +3 -0
- package/dist/migration.js +0 -0
- package/dist/name.d.ts +3 -0
- package/dist/name.js +0 -0
- package/dist/ownership.d.ts +3 -0
- package/dist/ownership.js +0 -0
- package/dist/permissions.d.ts +3 -0
- package/dist/permissions.js +0 -0
- package/dist/records.d.ts +3 -0
- package/dist/records.js +0 -0
- package/dist/registration.d.ts +3 -0
- package/dist/registration.js +0 -0
- package/dist/resolution.d.ts +3 -0
- package/dist/resolution.js +0 -0
- package/dist/reverse.d.ts +3 -0
- package/dist/reverse.js +0 -0
- package/dist/subnames.d.ts +3 -0
- package/dist/subnames.js +0 -0
- package/dist/wagmi.d.ts +7 -0
- package/dist/wagmi.d.ts.map +1 -0
- package/dist/wagmi.js +9 -0
- package/dist/wagmi.js.map +1 -0
- package/dist/wrapping.d.ts +3 -0
- package/dist/wrapping.js +0 -0
- package/package.json +23 -3
package/dist/groups/dns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dns.js","names":[],"sources":["../../src/groups/dns.ts"],"sourcesContent":["import {\n claimDnsName,\n getDnsClaimStatus,\n getDnsImportPlan,\n getDnsRecord,\n getDnsRecords,\n getZoneHash,\n hasDnsRecords,\n importDnsName,\n setDnsRecords,\n setZoneHash,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeDnsActions = (config: EnsforgeConfig) =>\n Object.freeze({\n claimDnsName: bindAction(config, claimDnsName),\n getDnsClaimStatus: bindAction(config, getDnsClaimStatus),\n getDnsImportPlan: bindAction(config, getDnsImportPlan),\n getDnsRecord: bindAction(config, getDnsRecord),\n getDnsRecords: bindAction(config, getDnsRecords),\n getZoneHash: bindAction(config, getZoneHash),\n hasDnsRecords: bindAction(config, hasDnsRecords),\n importDnsName: bindAction(config, importDnsName),\n setDnsRecords: bindAction(config, setDnsRecords),\n setZoneHash: bindAction(config, setZoneHash),\n });\n
|
|
1
|
+
{"version":3,"file":"dns.js","names":[],"sources":["../../src/groups/dns.ts"],"sourcesContent":["import {\n claimDnsName,\n getDnsClaimStatus,\n getDnsImportPlan,\n getDnsRecord,\n getDnsRecords,\n getZoneHash,\n hasDnsRecords,\n importDnsName,\n setDnsRecords,\n setZoneHash,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction, type BoundAction } from \"../internal/bind-action.js\";\n\nexport interface DnsActions {\n readonly claimDnsName: BoundAction<typeof claimDnsName>;\n readonly getDnsClaimStatus: BoundAction<typeof getDnsClaimStatus>;\n readonly getDnsImportPlan: BoundAction<typeof getDnsImportPlan>;\n readonly getDnsRecord: BoundAction<typeof getDnsRecord>;\n readonly getDnsRecords: BoundAction<typeof getDnsRecords>;\n readonly getZoneHash: BoundAction<typeof getZoneHash>;\n readonly hasDnsRecords: BoundAction<typeof hasDnsRecords>;\n readonly importDnsName: BoundAction<typeof importDnsName>;\n readonly setDnsRecords: BoundAction<typeof setDnsRecords>;\n readonly setZoneHash: BoundAction<typeof setZoneHash>;\n}\n\nexport const makeDnsActions = (config: EnsforgeConfig): DnsActions =>\n Object.freeze({\n claimDnsName: bindAction(config, claimDnsName),\n getDnsClaimStatus: bindAction(config, getDnsClaimStatus),\n getDnsImportPlan: bindAction(config, getDnsImportPlan),\n getDnsRecord: bindAction(config, getDnsRecord),\n getDnsRecords: bindAction(config, getDnsRecords),\n getZoneHash: bindAction(config, getZoneHash),\n hasDnsRecords: bindAction(config, hasDnsRecords),\n importDnsName: bindAction(config, importDnsName),\n setDnsRecords: bindAction(config, setDnsRecords),\n setZoneHash: bindAction(config, setZoneHash),\n });\n"],"mappings":";;;;AA6BA,MAAa,kBAAkB,WAC7B,OAAO,OAAO;CACZ,cAAc,WAAW,QAAQ,YAAY;CAC7C,mBAAmB,WAAW,QAAQ,iBAAiB;CACvD,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,cAAc,WAAW,QAAQ,YAAY;CAC7C,eAAe,WAAW,QAAQ,aAAa;CAC/C,aAAa,WAAW,QAAQ,WAAW;CAC3C,eAAe,WAAW,QAAQ,aAAa;CAC/C,eAAe,WAAW,QAAQ,aAAa;CAC/C,eAAe,WAAW,QAAQ,aAAa;CAC/C,aAAa,WAAW,QAAQ,WAAW;AAC7C,CAAC"}
|
package/dist/groups/events.d.ts
CHANGED
|
@@ -1,66 +1,11 @@
|
|
|
1
1
|
import { BoundAction, BoundWatchEnsEvents } from "../internal/bind-action.js";
|
|
2
|
-
import "
|
|
3
|
-
import { EnsforgeConfig } from "@ensforge/core";
|
|
2
|
+
import { EnsforgeConfig, getEnsEvents, getNameHistory } from "@ensforge/core";
|
|
4
3
|
//#region src/groups/events.d.ts
|
|
5
|
-
|
|
6
|
-
getEnsEvents: BoundAction<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly data: `0x${string}`;
|
|
11
|
-
readonly args: unknown;
|
|
12
|
-
};
|
|
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
|
-
readonly contract: `0x${string}`;
|
|
17
|
-
readonly transactionIndex: number | null;
|
|
18
|
-
readonly logIndex: number | null;
|
|
19
|
-
readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
|
|
20
|
-
readonly eventName: string;
|
|
21
|
-
readonly removed: boolean;
|
|
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;
|
|
26
|
-
readonly from?: `0x${string}` | undefined;
|
|
27
|
-
readonly node?: `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 protocol: "v1" | "v2";
|
|
36
|
-
readonly raw: {
|
|
37
|
-
readonly topics: readonly `0x${string}`[];
|
|
38
|
-
readonly data: `0x${string}`;
|
|
39
|
-
readonly args: unknown;
|
|
40
|
-
};
|
|
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
|
-
readonly contract: `0x${string}`;
|
|
45
|
-
readonly transactionIndex: number | null;
|
|
46
|
-
readonly logIndex: number | null;
|
|
47
|
-
readonly contractKind: "resolver" | "registrar" | "registry" | "name-wrapper" | "migration-controller";
|
|
48
|
-
readonly eventName: string;
|
|
49
|
-
readonly removed: boolean;
|
|
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;
|
|
54
|
-
readonly from?: `0x${string}` | undefined;
|
|
55
|
-
readonly node?: `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>;
|
|
4
|
+
interface EventsActions {
|
|
5
|
+
readonly getEnsEvents: BoundAction<typeof getEnsEvents>;
|
|
6
|
+
readonly getNameHistory: BoundAction<typeof getNameHistory>;
|
|
7
|
+
readonly watchEnsEvents: BoundWatchEnsEvents;
|
|
8
|
+
}
|
|
64
9
|
//#endregion
|
|
65
|
-
export { EventsActions
|
|
10
|
+
export { EventsActions };
|
|
66
11
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/groups/events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../src/groups/events.ts"],"mappings":";;;UAIiB;WACN,cAAc,mBAAmB;WACjC,gBAAgB,mBAAmB;WACnC,gBAAgB"}
|
|
@@ -1 +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
|
|
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, type BoundAction, type BoundWatchEnsEvents } from \"../internal/bind-action.js\";\n\nexport interface EventsActions {\n readonly getEnsEvents: BoundAction<typeof getEnsEvents>;\n readonly getNameHistory: BoundAction<typeof getNameHistory>;\n readonly watchEnsEvents: BoundWatchEnsEvents;\n}\n\nexport const makeEventsActions = (config: EnsforgeConfig): EventsActions =>\n Object.freeze({\n getEnsEvents: bindAction(config, getEnsEvents),\n getNameHistory: bindAction(config, getNameHistory),\n watchEnsEvents: bindAction(config, watchEnsEvents),\n });\n"],"mappings":";;;;AAUA,MAAa,qBAAqB,WAChC,OAAO,OAAO;CACZ,cAAc,WAAW,QAAQ,YAAY;CAC7C,gBAAgB,WAAW,QAAQ,cAAc;CACjD,gBAAgB,WAAW,QAAQ,cAAc;AACnD,CAAC"}
|
package/dist/groups/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BatchActions
|
|
2
|
-
import { CapabilitiesActions
|
|
3
|
-
import { DnsActions
|
|
4
|
-
import { EventsActions
|
|
5
|
-
import { MigrationActions
|
|
6
|
-
import { NameActions
|
|
7
|
-
import { OwnershipActions
|
|
8
|
-
import { PermissionsActions
|
|
9
|
-
import { RecordsActions
|
|
10
|
-
import { RegistrationActions
|
|
11
|
-
import { ResolutionActions
|
|
12
|
-
import { ReverseActions
|
|
13
|
-
import { SubnameActions
|
|
14
|
-
import { WrappingActions
|
|
1
|
+
import { BatchActions } from "./batch.js";
|
|
2
|
+
import { CapabilitiesActions } from "./capabilities.js";
|
|
3
|
+
import { DnsActions } from "./dns.js";
|
|
4
|
+
import { EventsActions } from "./events.js";
|
|
5
|
+
import { MigrationActions } from "./migration.js";
|
|
6
|
+
import { NameActions } from "./name.js";
|
|
7
|
+
import { OwnershipActions } from "./ownership.js";
|
|
8
|
+
import { PermissionsActions } from "./permissions.js";
|
|
9
|
+
import { RecordsActions } from "./records.js";
|
|
10
|
+
import { RegistrationActions } from "./registration.js";
|
|
11
|
+
import { ResolutionActions } from "./resolution.js";
|
|
12
|
+
import { ReverseActions } from "./reverse.js";
|
|
13
|
+
import { SubnameActions } from "./subnames.js";
|
|
14
|
+
import { WrappingActions } from "./wrapping.js";
|
|
15
15
|
export type { BatchActions, CapabilitiesActions, DnsActions, EventsActions, MigrationActions, NameActions, OwnershipActions, PermissionsActions, RecordsActions, RegistrationActions, ResolutionActions, ReverseActions, SubnameActions, WrappingActions };
|
|
@@ -1,175 +1,15 @@
|
|
|
1
1
|
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
-
import "
|
|
3
|
-
import { EnsforgeConfig } from "@ensforge/core";
|
|
2
|
+
import { EnsforgeConfig, approveMigration, getMigrationEligibility, getMigrationPlan, getMigrationStatus, getMigrationTarget, migrateName, migrateNames } from "@ensforge/core";
|
|
4
3
|
//#region src/groups/migration.d.ts
|
|
5
|
-
|
|
6
|
-
approveMigration: BoundAction<
|
|
7
|
-
getMigrationEligibility: BoundAction<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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>;
|
|
4
|
+
interface MigrationActions {
|
|
5
|
+
readonly approveMigration: BoundAction<typeof approveMigration>;
|
|
6
|
+
readonly getMigrationEligibility: BoundAction<typeof getMigrationEligibility>;
|
|
7
|
+
readonly getMigrationPlan: BoundAction<typeof getMigrationPlan>;
|
|
8
|
+
readonly getMigrationStatus: BoundAction<typeof getMigrationStatus>;
|
|
9
|
+
readonly getMigrationTarget: BoundAction<typeof getMigrationTarget>;
|
|
10
|
+
readonly migrateName: BoundAction<typeof migrateName>;
|
|
11
|
+
readonly migrateNames: BoundAction<typeof migrateNames>;
|
|
12
|
+
}
|
|
173
13
|
//#endregion
|
|
174
|
-
export { MigrationActions
|
|
14
|
+
export { MigrationActions };
|
|
175
15
|
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/groups/migration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/groups/migration.ts"],"mappings":";;;UAaiB;WACN,kBAAkB,mBAAmB;WACrC,yBAAyB,mBAAmB;WAC5C,kBAAkB,mBAAmB;WACrC,oBAAoB,mBAAmB;WACvC,oBAAoB,mBAAmB;WACvC,aAAa,mBAAmB;WAChC,cAAc,mBAAmB"}
|
|
@@ -1 +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
|
|
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, type BoundAction } from \"../internal/bind-action.js\";\n\nexport interface MigrationActions {\n readonly approveMigration: BoundAction<typeof approveMigration>;\n readonly getMigrationEligibility: BoundAction<typeof getMigrationEligibility>;\n readonly getMigrationPlan: BoundAction<typeof getMigrationPlan>;\n readonly getMigrationStatus: BoundAction<typeof getMigrationStatus>;\n readonly getMigrationTarget: BoundAction<typeof getMigrationTarget>;\n readonly migrateName: BoundAction<typeof migrateName>;\n readonly migrateNames: BoundAction<typeof migrateNames>;\n}\n\nexport const makeMigrationActions = (config: EnsforgeConfig): MigrationActions =>\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"],"mappings":";;;;AAuBA,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"}
|
package/dist/groups/name.d.ts
CHANGED
|
@@ -1,146 +1,23 @@
|
|
|
1
1
|
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
-
import "
|
|
3
|
-
import { EnsforgeConfig } from "@ensforge/core";
|
|
2
|
+
import { EnsforgeConfig, getCanonicalResource, getExpiry, getManager, getNameState, getNameStatus, getOwner, getProtocol, getRegistrant, getRegistry, getTokenId, isAvailable, isMigrated, isRenewable, isReserved, isWrapped } from "@ensforge/core";
|
|
4
3
|
//#region src/groups/name.d.ts
|
|
5
|
-
|
|
6
|
-
getCanonicalResource: BoundAction<
|
|
7
|
-
getExpiry: BoundAction<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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: "registrar" | "registry" | "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>;
|
|
4
|
+
interface NameActions {
|
|
5
|
+
readonly getCanonicalResource: BoundAction<typeof getCanonicalResource>;
|
|
6
|
+
readonly getExpiry: BoundAction<typeof getExpiry>;
|
|
7
|
+
readonly getManager: BoundAction<typeof getManager>;
|
|
8
|
+
readonly getNameState: BoundAction<typeof getNameState>;
|
|
9
|
+
readonly getNameStatus: BoundAction<typeof getNameStatus>;
|
|
10
|
+
readonly getOwner: BoundAction<typeof getOwner>;
|
|
11
|
+
readonly getProtocol: BoundAction<typeof getProtocol>;
|
|
12
|
+
readonly getRegistrant: BoundAction<typeof getRegistrant>;
|
|
13
|
+
readonly getRegistry: BoundAction<typeof getRegistry>;
|
|
14
|
+
readonly getTokenId: BoundAction<typeof getTokenId>;
|
|
15
|
+
readonly isAvailable: BoundAction<typeof isAvailable>;
|
|
16
|
+
readonly isMigrated: BoundAction<typeof isMigrated>;
|
|
17
|
+
readonly isRenewable: BoundAction<typeof isRenewable>;
|
|
18
|
+
readonly isReserved: BoundAction<typeof isReserved>;
|
|
19
|
+
readonly isWrapped: BoundAction<typeof isWrapped>;
|
|
20
|
+
}
|
|
144
21
|
//#endregion
|
|
145
|
-
export { NameActions
|
|
22
|
+
export { NameActions };
|
|
146
23
|
//# sourceMappingURL=name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.d.ts","names":[],"sources":["../../src/groups/name.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"name.d.ts","names":[],"sources":["../../src/groups/name.ts"],"mappings":";;;UAqBiB;WACN,sBAAsB,mBAAmB;WACzC,WAAW,mBAAmB;WAC9B,YAAY,mBAAmB;WAC/B,cAAc,mBAAmB;WACjC,eAAe,mBAAmB;WAClC,UAAU,mBAAmB;WAC7B,aAAa,mBAAmB;WAChC,eAAe,mBAAmB;WAClC,aAAa,mBAAmB;WAChC,YAAY,mBAAmB;WAC/B,aAAa,mBAAmB;WAChC,YAAY,mBAAmB;WAC/B,aAAa,mBAAmB;WAChC,YAAY,mBAAmB;WAC/B,WAAW,mBAAmB"}
|
package/dist/groups/name.js.map
CHANGED
|
@@ -1 +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
|
|
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, type BoundAction } from \"../internal/bind-action.js\";\n\nexport interface NameActions {\n readonly getCanonicalResource: BoundAction<typeof getCanonicalResource>;\n readonly getExpiry: BoundAction<typeof getExpiry>;\n readonly getManager: BoundAction<typeof getManager>;\n readonly getNameState: BoundAction<typeof getNameState>;\n readonly getNameStatus: BoundAction<typeof getNameStatus>;\n readonly getOwner: BoundAction<typeof getOwner>;\n readonly getProtocol: BoundAction<typeof getProtocol>;\n readonly getRegistrant: BoundAction<typeof getRegistrant>;\n readonly getRegistry: BoundAction<typeof getRegistry>;\n readonly getTokenId: BoundAction<typeof getTokenId>;\n readonly isAvailable: BoundAction<typeof isAvailable>;\n readonly isMigrated: BoundAction<typeof isMigrated>;\n readonly isRenewable: BoundAction<typeof isRenewable>;\n readonly isReserved: BoundAction<typeof isReserved>;\n readonly isWrapped: BoundAction<typeof isWrapped>;\n}\n\nexport const makeNameActions = (config: EnsforgeConfig): NameActions =>\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"],"mappings":";;;;AAuCA,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"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
-
import "
|
|
3
|
-
import { EnsforgeConfig } from "@ensforge/core";
|
|
2
|
+
import { EnsforgeConfig, getTtl, reclaimName, setManager, setTtl, transferName, transferRegistrant } from "@ensforge/core";
|
|
4
3
|
//#region src/groups/ownership.d.ts
|
|
5
|
-
|
|
6
|
-
getTtl: BoundAction<
|
|
7
|
-
reclaimName: BoundAction<
|
|
8
|
-
setManager: BoundAction<
|
|
9
|
-
setTtl: BoundAction<
|
|
10
|
-
transferName: BoundAction<
|
|
11
|
-
transferRegistrant: BoundAction<
|
|
12
|
-
}
|
|
13
|
-
type OwnershipActions = ReturnType<typeof makeOwnershipActions>;
|
|
4
|
+
interface OwnershipActions {
|
|
5
|
+
readonly getTtl: BoundAction<typeof getTtl>;
|
|
6
|
+
readonly reclaimName: BoundAction<typeof reclaimName>;
|
|
7
|
+
readonly setManager: BoundAction<typeof setManager>;
|
|
8
|
+
readonly setTtl: BoundAction<typeof setTtl>;
|
|
9
|
+
readonly transferName: BoundAction<typeof transferName>;
|
|
10
|
+
readonly transferRegistrant: BoundAction<typeof transferRegistrant>;
|
|
11
|
+
}
|
|
14
12
|
//#endregion
|
|
15
|
-
export { OwnershipActions
|
|
13
|
+
export { OwnershipActions };
|
|
16
14
|
//# sourceMappingURL=ownership.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.d.ts","names":[],"sources":["../../src/groups/ownership.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ownership.d.ts","names":[],"sources":["../../src/groups/ownership.ts"],"mappings":";;;UAYiB;WACN,QAAQ,mBAAmB;WAC3B,aAAa,mBAAmB;WAChC,YAAY,mBAAmB;WAC/B,QAAQ,mBAAmB;WAC3B,cAAc,mBAAmB;WACjC,oBAAoB,mBAAmB"}
|
|
@@ -1 +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
|
|
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, type BoundAction } from \"../internal/bind-action.js\";\n\nexport interface OwnershipActions {\n readonly getTtl: BoundAction<typeof getTtl>;\n readonly reclaimName: BoundAction<typeof reclaimName>;\n readonly setManager: BoundAction<typeof setManager>;\n readonly setTtl: BoundAction<typeof setTtl>;\n readonly transferName: BoundAction<typeof transferName>;\n readonly transferRegistrant: BoundAction<typeof transferRegistrant>;\n}\n\nexport const makeOwnershipActions = (config: EnsforgeConfig): OwnershipActions =>\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"],"mappings":";;;;AAqBA,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"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
-
import "
|
|
3
|
-
import { EnsforgeConfig } from "@ensforge/core";
|
|
2
|
+
import { EnsforgeConfig, approveName, clearNameApproval, grantRegistryRoles, grantResolverRoles, grantResolverRootRoles, revokeRegistryRoles, revokeResolverRoles, revokeResolverRootRoles, setOperatorApproval, setRecordPermissions, setResolverDelegateApproval } from "@ensforge/core";
|
|
4
3
|
//#region src/groups/permissions.d.ts
|
|
5
|
-
|
|
6
|
-
approveName: BoundAction<
|
|
7
|
-
clearNameApproval: BoundAction<
|
|
8
|
-
grantRegistryRoles: BoundAction<
|
|
9
|
-
grantResolverRoles: BoundAction<
|
|
10
|
-
grantResolverRootRoles: BoundAction<
|
|
11
|
-
revokeRegistryRoles: BoundAction<
|
|
12
|
-
revokeResolverRoles: BoundAction<
|
|
13
|
-
revokeResolverRootRoles: BoundAction<
|
|
14
|
-
setOperatorApproval: BoundAction<
|
|
15
|
-
setRecordPermissions: BoundAction<
|
|
16
|
-
setResolverDelegateApproval: BoundAction<
|
|
17
|
-
}
|
|
18
|
-
type PermissionsActions = ReturnType<typeof makePermissionsActions>;
|
|
4
|
+
interface PermissionsActions {
|
|
5
|
+
readonly approveName: BoundAction<typeof approveName>;
|
|
6
|
+
readonly clearNameApproval: BoundAction<typeof clearNameApproval>;
|
|
7
|
+
readonly grantRegistryRoles: BoundAction<typeof grantRegistryRoles>;
|
|
8
|
+
readonly grantResolverRoles: BoundAction<typeof grantResolverRoles>;
|
|
9
|
+
readonly grantResolverRootRoles: BoundAction<typeof grantResolverRootRoles>;
|
|
10
|
+
readonly revokeRegistryRoles: BoundAction<typeof revokeRegistryRoles>;
|
|
11
|
+
readonly revokeResolverRoles: BoundAction<typeof revokeResolverRoles>;
|
|
12
|
+
readonly revokeResolverRootRoles: BoundAction<typeof revokeResolverRootRoles>;
|
|
13
|
+
readonly setOperatorApproval: BoundAction<typeof setOperatorApproval>;
|
|
14
|
+
readonly setRecordPermissions: BoundAction<typeof setRecordPermissions>;
|
|
15
|
+
readonly setResolverDelegateApproval: BoundAction<typeof setResolverDelegateApproval>;
|
|
16
|
+
}
|
|
19
17
|
//#endregion
|
|
20
|
-
export { PermissionsActions
|
|
18
|
+
export { PermissionsActions };
|
|
21
19
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","names":[],"sources":["../../src/groups/permissions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","names":[],"sources":["../../src/groups/permissions.ts"],"mappings":";;;UAiBiB;WACN,aAAa,mBAAmB;WAChC,mBAAmB,mBAAmB;WACtC,oBAAoB,mBAAmB;WACvC,oBAAoB,mBAAmB;WACvC,wBAAwB,mBAAmB;WAC3C,qBAAqB,mBAAmB;WACxC,qBAAqB,mBAAmB;WACxC,yBAAyB,mBAAmB;WAC5C,qBAAqB,mBAAmB;WACxC,sBAAsB,mBAAmB;WACzC,6BAA6B,mBAAmB"}
|