@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,98 @@
|
|
|
1
|
+
import { BoundAction, BoundGetRecordsAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/records.d.ts
|
|
5
|
+
declare const makeRecordsActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
clearAvatar: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ClearAvatarParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
clearRecords: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ClearRecordsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
8
|
+
getAbi: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetAbiParameters, {
|
|
9
|
+
readonly contentType: "json" | "zlib-json" | "cbor";
|
|
10
|
+
readonly value: import("viem").Abi;
|
|
11
|
+
readonly raw: `0x${string}` & import("effect/Brand").Brand<"AbiRecordData">;
|
|
12
|
+
} | {
|
|
13
|
+
readonly contentType: "uri";
|
|
14
|
+
readonly value: string;
|
|
15
|
+
readonly raw: `0x${string}` & import("effect/Brand").Brand<"AbiRecordData">;
|
|
16
|
+
} | {
|
|
17
|
+
readonly contentType: null;
|
|
18
|
+
readonly value: null;
|
|
19
|
+
readonly raw: null;
|
|
20
|
+
}, import("@ensforge/core").GetAbiError>>;
|
|
21
|
+
getAddress: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetAddressParameters, {
|
|
22
|
+
readonly coinType: bigint & import("effect/Brand").Brand<"CoinType">;
|
|
23
|
+
readonly address: string;
|
|
24
|
+
readonly raw: `0x${string}` & import("effect/Brand").Brand<"AddressRecordData">;
|
|
25
|
+
} | {
|
|
26
|
+
readonly coinType: bigint & import("effect/Brand").Brand<"CoinType">;
|
|
27
|
+
readonly address: null;
|
|
28
|
+
readonly raw: null;
|
|
29
|
+
}, import("@ensforge/core").GetAddressError>>;
|
|
30
|
+
getAddresses: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetAddressesParameters, readonly ({
|
|
31
|
+
readonly coinType: bigint & import("effect/Brand").Brand<"CoinType">;
|
|
32
|
+
readonly address: string;
|
|
33
|
+
readonly raw: `0x${string}` & import("effect/Brand").Brand<"AddressRecordData">;
|
|
34
|
+
} | {
|
|
35
|
+
readonly coinType: bigint & import("effect/Brand").Brand<"CoinType">;
|
|
36
|
+
readonly address: null;
|
|
37
|
+
readonly raw: null;
|
|
38
|
+
})[], import("@ensforge/core").GetAddressError>>;
|
|
39
|
+
getAvatar: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetAvatarParameters, {
|
|
40
|
+
readonly status: "resolved";
|
|
41
|
+
readonly record: string;
|
|
42
|
+
readonly uri: string;
|
|
43
|
+
} | {
|
|
44
|
+
readonly status: "unsupported-chain";
|
|
45
|
+
readonly record: string;
|
|
46
|
+
readonly chainId: number;
|
|
47
|
+
} | null, import("@ensforge/core").GetAvatarError>>;
|
|
48
|
+
getContentHash: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetContentHashParameters, {
|
|
49
|
+
readonly protocol: "ipfs" | "ipns" | "swarm" | "onion" | "onion3" | "skynet" | "arweave" | "adnl";
|
|
50
|
+
readonly value: string;
|
|
51
|
+
readonly raw: `0x${string}` & import("effect/Brand").Brand<"ContentHash">;
|
|
52
|
+
} | {
|
|
53
|
+
readonly protocol: null;
|
|
54
|
+
readonly value: null;
|
|
55
|
+
readonly raw: null;
|
|
56
|
+
}, import("@ensforge/core").GetContentHashError>>;
|
|
57
|
+
getData: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetDataParameters, {
|
|
58
|
+
readonly key: string;
|
|
59
|
+
readonly value: `0x${string}` | null;
|
|
60
|
+
}, import("@ensforge/core").GetDataError>>;
|
|
61
|
+
getInterface: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetInterfaceParameters, {
|
|
62
|
+
readonly interfaceId: `0x${string}` & import("effect/Brand").Brand<"InterfaceId">;
|
|
63
|
+
readonly implementer: `0x${string}` | null;
|
|
64
|
+
}, import("@ensforge/core").GetInterfaceError>>;
|
|
65
|
+
getName: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetNameParameters, {
|
|
66
|
+
readonly name: string | null;
|
|
67
|
+
}, import("@ensforge/core").GetNameError>>;
|
|
68
|
+
getPubkey: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetPubkeyParameters, {
|
|
69
|
+
readonly x: `0x${string}`;
|
|
70
|
+
readonly y: `0x${string}`;
|
|
71
|
+
} | null, import("@ensforge/core").GetPubkeyError>>;
|
|
72
|
+
getRecords: BoundGetRecordsAction;
|
|
73
|
+
getText: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetTextParameters, {
|
|
74
|
+
readonly key: string;
|
|
75
|
+
readonly value: string | null;
|
|
76
|
+
}, import("@ensforge/core").GetTextError>>;
|
|
77
|
+
getTexts: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetTextsParameters, readonly {
|
|
78
|
+
readonly key: string;
|
|
79
|
+
readonly value: string | null;
|
|
80
|
+
}[], import("@ensforge/core").GetTextError>>;
|
|
81
|
+
setAbi: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetAbiParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
82
|
+
setAddress: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetAddressParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
83
|
+
setAddresses: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetAddressesParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
84
|
+
setAlias: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetAliasParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
85
|
+
setAvatar: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetAvatarParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
86
|
+
setContentHash: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetContentHashParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
87
|
+
setData: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetDataParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
88
|
+
setInterface: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetInterfaceParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
89
|
+
setName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
90
|
+
setPubkey: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetPubkeyParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
91
|
+
setRecords: BoundAction<import("@ensforge/core").SetRecordsAction>;
|
|
92
|
+
setText: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetTextParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
93
|
+
setTexts: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetTextsParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
94
|
+
}>;
|
|
95
|
+
type RecordsActions = ReturnType<typeof makeRecordsActions>;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { RecordsActions, makeRecordsActions };
|
|
98
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","names":[],"sources":["../../src/groups/records.ts"],"mappings":";;;;cAiCa,qBAAsB,QAAQ,mBAAc;eAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+B/B,iBAAiB,kBAAkB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { clearAvatar, clearRecords, getAbi, getAddress, getAddresses, getAvatar, getContentHash, getData, getInterface, getName, getPubkey, getRecords, getText, getTexts, setAbi, setAddress, setAddresses, setAlias, setAvatar, setContentHash, setData, setInterface, setName, setPubkey, setRecords, setText, setTexts } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/records.ts
|
|
5
|
+
const makeRecordsActions = (config) => Object.freeze({
|
|
6
|
+
clearAvatar: bindAction(config, clearAvatar),
|
|
7
|
+
clearRecords: bindAction(config, clearRecords),
|
|
8
|
+
getAbi: bindAction(config, getAbi),
|
|
9
|
+
getAddress: bindAction(config, getAddress),
|
|
10
|
+
getAddresses: bindAction(config, getAddresses),
|
|
11
|
+
getAvatar: bindAction(config, getAvatar),
|
|
12
|
+
getContentHash: bindAction(config, getContentHash),
|
|
13
|
+
getData: bindAction(config, getData),
|
|
14
|
+
getInterface: bindAction(config, getInterface),
|
|
15
|
+
getName: bindAction(config, getName),
|
|
16
|
+
getPubkey: bindAction(config, getPubkey),
|
|
17
|
+
getRecords: bindAction(config, getRecords),
|
|
18
|
+
getText: bindAction(config, getText),
|
|
19
|
+
getTexts: bindAction(config, getTexts),
|
|
20
|
+
setAbi: bindAction(config, setAbi),
|
|
21
|
+
setAddress: bindAction(config, setAddress),
|
|
22
|
+
setAddresses: bindAction(config, setAddresses),
|
|
23
|
+
setAlias: bindAction(config, setAlias),
|
|
24
|
+
setAvatar: bindAction(config, setAvatar),
|
|
25
|
+
setContentHash: bindAction(config, setContentHash),
|
|
26
|
+
setData: bindAction(config, setData),
|
|
27
|
+
setInterface: bindAction(config, setInterface),
|
|
28
|
+
setName: bindAction(config, setName),
|
|
29
|
+
setPubkey: bindAction(config, setPubkey),
|
|
30
|
+
setRecords: bindAction(config, setRecords),
|
|
31
|
+
setText: bindAction(config, setText),
|
|
32
|
+
setTexts: bindAction(config, setTexts)
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { makeRecordsActions };
|
|
37
|
+
//# sourceMappingURL=records.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.js","names":[],"sources":["../../src/groups/records.ts"],"sourcesContent":["import {\n clearAvatar,\n clearRecords,\n getAbi,\n getAddress,\n getAddresses,\n getAvatar,\n getContentHash,\n getData,\n getInterface,\n getName,\n getPubkey,\n getRecords,\n getText,\n getTexts,\n setAbi,\n setAddress,\n setAddresses,\n setAlias,\n setAvatar,\n setContentHash,\n setData,\n setInterface,\n setName,\n setPubkey,\n setRecords,\n setText,\n setTexts,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeRecordsActions = (config: EnsforgeConfig) =>\n Object.freeze({\n clearAvatar: bindAction(config, clearAvatar),\n clearRecords: bindAction(config, clearRecords),\n getAbi: bindAction(config, getAbi),\n getAddress: bindAction(config, getAddress),\n getAddresses: bindAction(config, getAddresses),\n getAvatar: bindAction(config, getAvatar),\n getContentHash: bindAction(config, getContentHash),\n getData: bindAction(config, getData),\n getInterface: bindAction(config, getInterface),\n getName: bindAction(config, getName),\n getPubkey: bindAction(config, getPubkey),\n getRecords: bindAction(config, getRecords),\n getText: bindAction(config, getText),\n getTexts: bindAction(config, getTexts),\n setAbi: bindAction(config, setAbi),\n setAddress: bindAction(config, setAddress),\n setAddresses: bindAction(config, setAddresses),\n setAlias: bindAction(config, setAlias),\n setAvatar: bindAction(config, setAvatar),\n setContentHash: bindAction(config, setContentHash),\n setData: bindAction(config, setData),\n setInterface: bindAction(config, setInterface),\n setName: bindAction(config, setName),\n setPubkey: bindAction(config, setPubkey),\n setRecords: bindAction(config, setRecords),\n setText: bindAction(config, setText),\n setTexts: bindAction(config, setTexts),\n });\n\nexport type RecordsActions = ReturnType<typeof makeRecordsActions>;\n"],"mappings":";;;;AAiCA,MAAa,sBAAsB,WACjC,OAAO,OAAO;CACZ,aAAa,WAAW,QAAQ,WAAW;CAC3C,cAAc,WAAW,QAAQ,YAAY;CAC7C,QAAQ,WAAW,QAAQ,MAAM;CACjC,YAAY,WAAW,QAAQ,UAAU;CACzC,cAAc,WAAW,QAAQ,YAAY;CAC7C,WAAW,WAAW,QAAQ,SAAS;CACvC,gBAAgB,WAAW,QAAQ,cAAc;CACjD,SAAS,WAAW,QAAQ,OAAO;CACnC,cAAc,WAAW,QAAQ,YAAY;CAC7C,SAAS,WAAW,QAAQ,OAAO;CACnC,WAAW,WAAW,QAAQ,SAAS;CACvC,YAAY,WAAW,QAAQ,UAAU;CACzC,SAAS,WAAW,QAAQ,OAAO;CACnC,UAAU,WAAW,QAAQ,QAAQ;CACrC,QAAQ,WAAW,QAAQ,MAAM;CACjC,YAAY,WAAW,QAAQ,UAAU;CACzC,cAAc,WAAW,QAAQ,YAAY;CAC7C,UAAU,WAAW,QAAQ,QAAQ;CACrC,WAAW,WAAW,QAAQ,SAAS;CACvC,gBAAgB,WAAW,QAAQ,cAAc;CACjD,SAAS,WAAW,QAAQ,OAAO;CACnC,cAAc,WAAW,QAAQ,YAAY;CAC7C,SAAS,WAAW,QAAQ,OAAO;CACnC,WAAW,WAAW,QAAQ,SAAS;CACvC,YAAY,WAAW,QAAQ,UAAU;CACzC,SAAS,WAAW,QAAQ,OAAO;CACnC,UAAU,WAAW,QAAQ,QAAQ;AACvC,CAAC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/registration.d.ts
|
|
5
|
+
declare const makeRegistrationActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
approvePaymentToken: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ApprovePaymentTokenParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
approveRenewalPayment: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ApproveRenewalPaymentParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
8
|
+
commitName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").CommitNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
9
|
+
completeRegistration: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").CompleteRegistrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
10
|
+
getCommitmentStatus: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetCommitmentStatusParameters, {
|
|
11
|
+
readonly status: "not-found";
|
|
12
|
+
readonly protocol: "v1" | "v2";
|
|
13
|
+
} | {
|
|
14
|
+
readonly status: "pending";
|
|
15
|
+
readonly protocol: "v1" | "v2";
|
|
16
|
+
readonly submittedAt: bigint;
|
|
17
|
+
readonly readyAt: bigint;
|
|
18
|
+
readonly expiresAt: bigint;
|
|
19
|
+
readonly remainingSeconds: bigint;
|
|
20
|
+
} | {
|
|
21
|
+
readonly status: "ready";
|
|
22
|
+
readonly protocol: "v1" | "v2";
|
|
23
|
+
readonly submittedAt: bigint;
|
|
24
|
+
readonly readyAt: bigint;
|
|
25
|
+
readonly expiresAt: bigint;
|
|
26
|
+
readonly remainingSeconds: bigint;
|
|
27
|
+
} | {
|
|
28
|
+
readonly status: "expired";
|
|
29
|
+
readonly protocol: "v1" | "v2";
|
|
30
|
+
readonly submittedAt: bigint;
|
|
31
|
+
readonly readyAt: bigint;
|
|
32
|
+
readonly expiresAt: bigint;
|
|
33
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
34
|
+
getRegistrationParameters: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").BlockParameters, {
|
|
35
|
+
readonly protocol: "v1";
|
|
36
|
+
readonly registrar: `0x${string}`;
|
|
37
|
+
readonly priceOracle: `0x${string}`;
|
|
38
|
+
readonly minimumRegistrationDuration: bigint;
|
|
39
|
+
readonly minimumRenewalDuration: bigint;
|
|
40
|
+
readonly minimumCommitmentAge: bigint;
|
|
41
|
+
readonly maximumCommitmentAge: bigint;
|
|
42
|
+
readonly payment: {
|
|
43
|
+
readonly kind: "native";
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
readonly protocol: "v2";
|
|
47
|
+
readonly registrar: `0x${string}`;
|
|
48
|
+
readonly priceOracle: `0x${string}`;
|
|
49
|
+
readonly minimumRegistrationDuration: bigint;
|
|
50
|
+
readonly minimumRenewalDuration: bigint;
|
|
51
|
+
readonly minimumCommitmentAge: bigint;
|
|
52
|
+
readonly maximumCommitmentAge: bigint;
|
|
53
|
+
readonly payment: {
|
|
54
|
+
readonly kind: "erc20";
|
|
55
|
+
readonly enumerable: false;
|
|
56
|
+
};
|
|
57
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
58
|
+
getRegistrationPlan: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetRegistrationPlanParameters, {
|
|
59
|
+
readonly status: "unavailable";
|
|
60
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
61
|
+
} | {
|
|
62
|
+
readonly status: "payment-token-required";
|
|
63
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
64
|
+
} | {
|
|
65
|
+
readonly status: "unsupported-payment-token";
|
|
66
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
67
|
+
readonly paymentToken: `0x${string}`;
|
|
68
|
+
} | {
|
|
69
|
+
readonly status: "ready" | "commitment-required" | "commitment-pending" | "commitment-expired";
|
|
70
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
71
|
+
readonly parameters: {
|
|
72
|
+
readonly protocol: "v1";
|
|
73
|
+
readonly registrar: `0x${string}`;
|
|
74
|
+
readonly priceOracle: `0x${string}`;
|
|
75
|
+
readonly minimumRegistrationDuration: bigint;
|
|
76
|
+
readonly minimumRenewalDuration: bigint;
|
|
77
|
+
readonly minimumCommitmentAge: bigint;
|
|
78
|
+
readonly maximumCommitmentAge: bigint;
|
|
79
|
+
readonly payment: {
|
|
80
|
+
readonly kind: "native";
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
readonly protocol: "v2";
|
|
84
|
+
readonly registrar: `0x${string}`;
|
|
85
|
+
readonly priceOracle: `0x${string}`;
|
|
86
|
+
readonly minimumRegistrationDuration: bigint;
|
|
87
|
+
readonly minimumRenewalDuration: bigint;
|
|
88
|
+
readonly minimumCommitmentAge: bigint;
|
|
89
|
+
readonly maximumCommitmentAge: bigint;
|
|
90
|
+
readonly payment: {
|
|
91
|
+
readonly kind: "erc20";
|
|
92
|
+
readonly enumerable: false;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly price: {
|
|
96
|
+
readonly status: "available";
|
|
97
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
98
|
+
readonly protocol: "v1" | "v2";
|
|
99
|
+
readonly registrar: `0x${string}`;
|
|
100
|
+
readonly duration: bigint;
|
|
101
|
+
readonly base: bigint;
|
|
102
|
+
readonly premium: bigint;
|
|
103
|
+
readonly total: bigint;
|
|
104
|
+
readonly currency: {
|
|
105
|
+
readonly kind: "native";
|
|
106
|
+
readonly symbol: "ETH";
|
|
107
|
+
readonly decimals: 18;
|
|
108
|
+
} | {
|
|
109
|
+
readonly kind: "erc20";
|
|
110
|
+
readonly address: `0x${string}`;
|
|
111
|
+
readonly symbol: string;
|
|
112
|
+
readonly decimals: number;
|
|
113
|
+
};
|
|
114
|
+
} | {
|
|
115
|
+
readonly status: "unavailable";
|
|
116
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
117
|
+
readonly protocol: "v1" | "v2";
|
|
118
|
+
readonly reason: "NAME_UNAVAILABLE";
|
|
119
|
+
} | {
|
|
120
|
+
readonly status: "payment-token-required";
|
|
121
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
122
|
+
readonly protocol: "v1" | "v2";
|
|
123
|
+
} | {
|
|
124
|
+
readonly status: "unsupported-payment-token";
|
|
125
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
126
|
+
readonly protocol: "v1" | "v2";
|
|
127
|
+
readonly paymentToken: `0x${string}`;
|
|
128
|
+
};
|
|
129
|
+
readonly commitment: {
|
|
130
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
131
|
+
readonly protocol: "v1" | "v2";
|
|
132
|
+
readonly registrar: `0x${string}`;
|
|
133
|
+
readonly commitment: `0x${string}`;
|
|
134
|
+
};
|
|
135
|
+
readonly commitmentStatus: {
|
|
136
|
+
readonly status: "not-found";
|
|
137
|
+
readonly protocol: "v1" | "v2";
|
|
138
|
+
} | {
|
|
139
|
+
readonly status: "pending";
|
|
140
|
+
readonly protocol: "v1" | "v2";
|
|
141
|
+
readonly submittedAt: bigint;
|
|
142
|
+
readonly readyAt: bigint;
|
|
143
|
+
readonly expiresAt: bigint;
|
|
144
|
+
readonly remainingSeconds: bigint;
|
|
145
|
+
} | {
|
|
146
|
+
readonly status: "ready";
|
|
147
|
+
readonly protocol: "v1" | "v2";
|
|
148
|
+
readonly submittedAt: bigint;
|
|
149
|
+
readonly readyAt: bigint;
|
|
150
|
+
readonly expiresAt: bigint;
|
|
151
|
+
readonly remainingSeconds: bigint;
|
|
152
|
+
} | {
|
|
153
|
+
readonly status: "expired";
|
|
154
|
+
readonly protocol: "v1" | "v2";
|
|
155
|
+
readonly submittedAt: bigint;
|
|
156
|
+
readonly readyAt: bigint;
|
|
157
|
+
readonly expiresAt: bigint;
|
|
158
|
+
};
|
|
159
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
160
|
+
getRegistrationPrice: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetRegistrationPriceParameters, {
|
|
161
|
+
readonly status: "available";
|
|
162
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
163
|
+
readonly protocol: "v1" | "v2";
|
|
164
|
+
readonly registrar: `0x${string}`;
|
|
165
|
+
readonly duration: bigint;
|
|
166
|
+
readonly base: bigint;
|
|
167
|
+
readonly premium: bigint;
|
|
168
|
+
readonly total: bigint;
|
|
169
|
+
readonly currency: {
|
|
170
|
+
readonly kind: "native";
|
|
171
|
+
readonly symbol: "ETH";
|
|
172
|
+
readonly decimals: 18;
|
|
173
|
+
} | {
|
|
174
|
+
readonly kind: "erc20";
|
|
175
|
+
readonly address: `0x${string}`;
|
|
176
|
+
readonly symbol: string;
|
|
177
|
+
readonly decimals: number;
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
180
|
+
readonly status: "unavailable";
|
|
181
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
182
|
+
readonly protocol: "v1" | "v2";
|
|
183
|
+
readonly reason: "NAME_UNAVAILABLE";
|
|
184
|
+
} | {
|
|
185
|
+
readonly status: "payment-token-required";
|
|
186
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
187
|
+
readonly protocol: "v1" | "v2";
|
|
188
|
+
} | {
|
|
189
|
+
readonly status: "unsupported-payment-token";
|
|
190
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
191
|
+
readonly protocol: "v1" | "v2";
|
|
192
|
+
readonly paymentToken: `0x${string}`;
|
|
193
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
194
|
+
getRenewalPrice: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetRegistrationPriceParameters, {
|
|
195
|
+
readonly status: "payment-token-required";
|
|
196
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
197
|
+
readonly protocol: "v1" | "v2";
|
|
198
|
+
} | {
|
|
199
|
+
readonly status: "unsupported-payment-token";
|
|
200
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
201
|
+
readonly protocol: "v1" | "v2";
|
|
202
|
+
readonly paymentToken: `0x${string}`;
|
|
203
|
+
} | {
|
|
204
|
+
readonly status: "renewable";
|
|
205
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
206
|
+
readonly protocol: "v1" | "v2";
|
|
207
|
+
readonly route: "v1-controller" | "v2-registrar" | "v1-renewer";
|
|
208
|
+
readonly renewer: `0x${string}`;
|
|
209
|
+
readonly duration: bigint;
|
|
210
|
+
readonly price: bigint;
|
|
211
|
+
readonly currency: {
|
|
212
|
+
readonly kind: "native";
|
|
213
|
+
readonly symbol: "ETH";
|
|
214
|
+
readonly decimals: 18;
|
|
215
|
+
} | {
|
|
216
|
+
readonly kind: "erc20";
|
|
217
|
+
readonly address: `0x${string}`;
|
|
218
|
+
readonly symbol: string;
|
|
219
|
+
readonly decimals: number;
|
|
220
|
+
};
|
|
221
|
+
} | {
|
|
222
|
+
readonly status: "not-renewable";
|
|
223
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
224
|
+
readonly protocol: "v1" | "v2";
|
|
225
|
+
readonly reason: "NAME_NOT_RENEWABLE";
|
|
226
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
227
|
+
isPaymentTokenSupported: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").IsPaymentTokenSupportedParameters, {
|
|
228
|
+
readonly protocol: "v1";
|
|
229
|
+
readonly supported: false;
|
|
230
|
+
readonly reason: "NATIVE_PAYMENT_ONLY";
|
|
231
|
+
} | {
|
|
232
|
+
readonly protocol: "v2";
|
|
233
|
+
readonly supported: false;
|
|
234
|
+
readonly token: `0x${string}`;
|
|
235
|
+
readonly reason: "PAYMENT_TOKEN_NOT_SUPPORTED";
|
|
236
|
+
} | {
|
|
237
|
+
readonly protocol: "v2";
|
|
238
|
+
readonly supported: true;
|
|
239
|
+
readonly token: `0x${string}`;
|
|
240
|
+
readonly symbol: string;
|
|
241
|
+
readonly decimals: number;
|
|
242
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
243
|
+
makeRegistrationCommitment: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").MakeRegistrationCommitmentParameters, {
|
|
244
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
245
|
+
readonly protocol: "v1" | "v2";
|
|
246
|
+
readonly registrar: `0x${string}`;
|
|
247
|
+
readonly commitment: `0x${string}`;
|
|
248
|
+
}, import("@ensforge/core").GetCommitmentStatusError>>;
|
|
249
|
+
registerName: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").RegisterNameParameters, import("@ensforge/core").RegisterNameResult, import("@ensforge/core").WriteError>>;
|
|
250
|
+
registerNames: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").RegisterNamesParameters, import("@ensforge/core").RegisterNamesResult, import("@ensforge/core").WriteError>>;
|
|
251
|
+
renewName: BoundAction<import("@ensforge/core").RenewNameAction>;
|
|
252
|
+
renewNames: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").RenewNamesParameters, import("@ensforge/core").RenewNamesResult, import("@ensforge/core").WriteError>>;
|
|
253
|
+
}>;
|
|
254
|
+
type RegistrationActions = ReturnType<typeof makeRegistrationActions>;
|
|
255
|
+
//#endregion
|
|
256
|
+
export { RegistrationActions, makeRegistrationActions };
|
|
257
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.ts","names":[],"sources":["../../src/groups/registration.ts"],"mappings":";;;;cAqBa,0BAA2B,QAAQ,mBAAc;uBAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBpC,sBAAsB,kBAAkB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { approvePaymentToken, approveRenewalPayment, commitName, completeRegistration, getCommitmentStatus, getRegistrationParameters, getRegistrationPlan, getRegistrationPrice, getRenewalPrice, isPaymentTokenSupported, makeRegistrationCommitment, registerName, registerNames, renewName, renewNames } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/registration.ts
|
|
5
|
+
const makeRegistrationActions = (config) => Object.freeze({
|
|
6
|
+
approvePaymentToken: bindAction(config, approvePaymentToken),
|
|
7
|
+
approveRenewalPayment: bindAction(config, approveRenewalPayment),
|
|
8
|
+
commitName: bindAction(config, commitName),
|
|
9
|
+
completeRegistration: bindAction(config, completeRegistration),
|
|
10
|
+
getCommitmentStatus: bindAction(config, getCommitmentStatus),
|
|
11
|
+
getRegistrationParameters: bindAction(config, getRegistrationParameters),
|
|
12
|
+
getRegistrationPlan: bindAction(config, getRegistrationPlan),
|
|
13
|
+
getRegistrationPrice: bindAction(config, getRegistrationPrice),
|
|
14
|
+
getRenewalPrice: bindAction(config, getRenewalPrice),
|
|
15
|
+
isPaymentTokenSupported: bindAction(config, isPaymentTokenSupported),
|
|
16
|
+
makeRegistrationCommitment: bindAction(config, makeRegistrationCommitment),
|
|
17
|
+
registerName: bindAction(config, registerName),
|
|
18
|
+
registerNames: bindAction(config, registerNames),
|
|
19
|
+
renewName: bindAction(config, renewName),
|
|
20
|
+
renewNames: bindAction(config, renewNames)
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeRegistrationActions };
|
|
25
|
+
//# sourceMappingURL=registration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.js","names":[],"sources":["../../src/groups/registration.ts"],"sourcesContent":["import {\n approvePaymentToken,\n approveRenewalPayment,\n commitName,\n completeRegistration,\n getCommitmentStatus,\n getRegistrationParameters,\n getRegistrationPlan,\n getRegistrationPrice,\n getRenewalPrice,\n isPaymentTokenSupported,\n makeRegistrationCommitment,\n registerName,\n registerNames,\n renewName,\n renewNames,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeRegistrationActions = (config: EnsforgeConfig) =>\n Object.freeze({\n approvePaymentToken: bindAction(config, approvePaymentToken),\n approveRenewalPayment: bindAction(config, approveRenewalPayment),\n commitName: bindAction(config, commitName),\n completeRegistration: bindAction(config, completeRegistration),\n getCommitmentStatus: bindAction(config, getCommitmentStatus),\n getRegistrationParameters: bindAction(config, getRegistrationParameters),\n getRegistrationPlan: bindAction(config, getRegistrationPlan),\n getRegistrationPrice: bindAction(config, getRegistrationPrice),\n getRenewalPrice: bindAction(config, getRenewalPrice),\n isPaymentTokenSupported: bindAction(config, isPaymentTokenSupported),\n makeRegistrationCommitment: bindAction(config, makeRegistrationCommitment),\n registerName: bindAction(config, registerName),\n registerNames: bindAction(config, registerNames),\n renewName: bindAction(config, renewName),\n renewNames: bindAction(config, renewNames),\n });\n\nexport type RegistrationActions = ReturnType<typeof makeRegistrationActions>;\n"],"mappings":";;;;AAqBA,MAAa,2BAA2B,WACtC,OAAO,OAAO;CACZ,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,uBAAuB,WAAW,QAAQ,qBAAqB;CAC/D,YAAY,WAAW,QAAQ,UAAU;CACzC,sBAAsB,WAAW,QAAQ,oBAAoB;CAC7D,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,2BAA2B,WAAW,QAAQ,yBAAyB;CACvE,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,sBAAsB,WAAW,QAAQ,oBAAoB;CAC7D,iBAAiB,WAAW,QAAQ,eAAe;CACnD,yBAAyB,WAAW,QAAQ,uBAAuB;CACnE,4BAA4B,WAAW,QAAQ,0BAA0B;CACzE,cAAc,WAAW,QAAQ,YAAY;CAC7C,eAAe,WAAW,QAAQ,aAAa;CAC/C,WAAW,WAAW,QAAQ,SAAS;CACvC,YAAY,WAAW,QAAQ,UAAU;AAC3C,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/resolution.d.ts
|
|
5
|
+
declare const makeResolutionActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
createResolver: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").CreateResolverParameters, import("@ensforge/core").CreateResolverResult, import("@ensforge/core").WriteError> & {
|
|
7
|
+
readonly call: (parameters: import("@ensforge/core").CreateResolverParameters) => import("@ensforge/core").EnsWriteIntent<import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
8
|
+
}>;
|
|
9
|
+
getAlias: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetAliasParameters, {
|
|
10
|
+
readonly supported: false;
|
|
11
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
12
|
+
readonly resolver: `0x${string}` | null;
|
|
13
|
+
readonly reason: "RESOLVER_NOT_FOUND" | "ALIASING_UNSUPPORTED";
|
|
14
|
+
} | {
|
|
15
|
+
readonly supported: true;
|
|
16
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
17
|
+
readonly resolver: `0x${string}`;
|
|
18
|
+
readonly target: (string & import("effect/Brand").Brand<"NormalizedName">) | null;
|
|
19
|
+
readonly raw: `0x${string}`;
|
|
20
|
+
}, import("@ensforge/core").GetAliasError>>;
|
|
21
|
+
getOrCreateResolver: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetOrCreateResolverParameters, import("@ensforge/core").GetOrCreateResolverResult, import("@ensforge/core").WriteError>>;
|
|
22
|
+
getResolver: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetResolverParameters, import("@ensforge/core").GetResolverResult, import("@ensforge/core").GetResolverError>>;
|
|
23
|
+
getResolverVersion: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetResolverVersionParameters, {
|
|
24
|
+
readonly supported: false;
|
|
25
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
26
|
+
readonly resolver: `0x${string}` | null;
|
|
27
|
+
readonly reason: "RESOLVER_NOT_FOUND" | "VERSIONING_UNSUPPORTED";
|
|
28
|
+
} | {
|
|
29
|
+
readonly supported: true;
|
|
30
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
31
|
+
readonly resolver: `0x${string}`;
|
|
32
|
+
readonly version: bigint;
|
|
33
|
+
}, import("@ensforge/core").GetResolverError>>;
|
|
34
|
+
predictResolverAddress: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").CreateResolverParameters, `0x${string}`, import("@ensforge/core").WriteError>>;
|
|
35
|
+
resolve: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").ResolveParameters, {
|
|
36
|
+
readonly data: `0x${string}`;
|
|
37
|
+
readonly resolverAddress: `0x${string}`;
|
|
38
|
+
} | null, import("@ensforge/core").ResolveError>>;
|
|
39
|
+
resolveBatch: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").ResolveBatchParameters, import("@ensforge/core").ResolveBatchResult, import("@ensforge/core").ResolveError>>;
|
|
40
|
+
resolveWithResolver: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").ResolveWithResolverParameters, {
|
|
41
|
+
readonly data: `0x${string}`;
|
|
42
|
+
readonly resolverAddress: `0x${string}`;
|
|
43
|
+
}, import("@ensforge/core").ResolveError>>;
|
|
44
|
+
setResolver: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetResolverParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
45
|
+
setResolverAndRecords: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").SetResolverAndRecordsParameters, import("@ensforge/core").SetResolverAndRecordsProgress, import("@ensforge/core").WriteError>>;
|
|
46
|
+
upgradeResolver: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").UpgradeResolverParameters, import("@ensforge/core").UpgradeResolverResult, import("@ensforge/core").WriteError> & {
|
|
47
|
+
readonly call: (parameters: import("@ensforge/core").UpgradeResolverParameters) => import("@ensforge/core").EnsWriteIntent<import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
type ResolutionActions = ReturnType<typeof makeResolutionActions>;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { ResolutionActions, makeResolutionActions };
|
|
53
|
+
//# sourceMappingURL=resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolution.d.ts","names":[],"sources":["../../src/groups/resolution.ts"],"mappings":";;;;cAkBa,wBAAyB,QAAQ,mBAAc;kBAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgBlC,oBAAoB,kBAAkB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { createResolver, getAlias, getOrCreateResolver, getResolver, getResolverVersion, predictResolverAddress, resolve, resolveBatch, resolveWithResolver, setResolver, setResolverAndRecords, upgradeResolver } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/resolution.ts
|
|
5
|
+
const makeResolutionActions = (config) => Object.freeze({
|
|
6
|
+
createResolver: bindAction(config, createResolver),
|
|
7
|
+
getAlias: bindAction(config, getAlias),
|
|
8
|
+
getOrCreateResolver: bindAction(config, getOrCreateResolver),
|
|
9
|
+
getResolver: bindAction(config, getResolver),
|
|
10
|
+
getResolverVersion: bindAction(config, getResolverVersion),
|
|
11
|
+
predictResolverAddress: bindAction(config, predictResolverAddress),
|
|
12
|
+
resolve: bindAction(config, resolve),
|
|
13
|
+
resolveBatch: bindAction(config, resolveBatch),
|
|
14
|
+
resolveWithResolver: bindAction(config, resolveWithResolver),
|
|
15
|
+
setResolver: bindAction(config, setResolver),
|
|
16
|
+
setResolverAndRecords: bindAction(config, setResolverAndRecords),
|
|
17
|
+
upgradeResolver: bindAction(config, upgradeResolver)
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { makeResolutionActions };
|
|
22
|
+
//# sourceMappingURL=resolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolution.js","names":[],"sources":["../../src/groups/resolution.ts"],"sourcesContent":["import {\n createResolver,\n getAlias,\n getOrCreateResolver,\n getResolver,\n getResolverVersion,\n predictResolverAddress,\n resolve,\n resolveBatch,\n resolveWithResolver,\n setResolver,\n setResolverAndRecords,\n upgradeResolver,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeResolutionActions = (config: EnsforgeConfig) =>\n Object.freeze({\n createResolver: bindAction(config, createResolver),\n getAlias: bindAction(config, getAlias),\n getOrCreateResolver: bindAction(config, getOrCreateResolver),\n getResolver: bindAction(config, getResolver),\n getResolverVersion: bindAction(config, getResolverVersion),\n predictResolverAddress: bindAction(config, predictResolverAddress),\n resolve: bindAction(config, resolve),\n resolveBatch: bindAction(config, resolveBatch),\n resolveWithResolver: bindAction(config, resolveWithResolver),\n setResolver: bindAction(config, setResolver),\n setResolverAndRecords: bindAction(config, setResolverAndRecords),\n upgradeResolver: bindAction(config, upgradeResolver),\n });\n\nexport type ResolutionActions = ReturnType<typeof makeResolutionActions>;\n"],"mappings":";;;;AAkBA,MAAa,yBAAyB,WACpC,OAAO,OAAO;CACZ,gBAAgB,WAAW,QAAQ,cAAc;CACjD,UAAU,WAAW,QAAQ,QAAQ;CACrC,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,aAAa,WAAW,QAAQ,WAAW;CAC3C,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,wBAAwB,WAAW,QAAQ,sBAAsB;CACjE,SAAS,WAAW,QAAQ,OAAO;CACnC,cAAc,WAAW,QAAQ,YAAY;CAC7C,qBAAqB,WAAW,QAAQ,mBAAmB;CAC3D,aAAa,WAAW,QAAQ,WAAW;CAC3C,uBAAuB,WAAW,QAAQ,qBAAqB;CAC/D,iBAAiB,WAAW,QAAQ,eAAe;AACrD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/reverse.d.ts
|
|
5
|
+
declare const makeReverseActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
clearPrimaryName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").ClearPrimaryNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
getPrimaryName: BoundAction<import("@ensforge/core").EnsReadAction<import("@ensforge/core").GetPrimaryNameParameters, {
|
|
8
|
+
readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
|
|
9
|
+
readonly match: true;
|
|
10
|
+
} | null, import("@ensforge/core").GetPrimaryNameError>>;
|
|
11
|
+
setContractPrimaryName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetContractPrimaryNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
12
|
+
setPrimaryName: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetPrimaryNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
13
|
+
setPrimaryNameForAddress: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetPrimaryNameForAddressParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
14
|
+
}>;
|
|
15
|
+
type ReverseActions = ReturnType<typeof makeReverseActions>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ReverseActions, makeReverseActions };
|
|
18
|
+
//# sourceMappingURL=reverse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverse.d.ts","names":[],"sources":["../../src/groups/reverse.ts"],"mappings":";;;;cAWa,qBAAsB,QAAQ,mBAAc;oBAAd;;;;;;;;;KAS/B,iBAAiB,kBAAkB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { clearPrimaryName, getPrimaryName, setContractPrimaryName, setPrimaryName, setPrimaryNameForAddress } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/reverse.ts
|
|
5
|
+
const makeReverseActions = (config) => Object.freeze({
|
|
6
|
+
clearPrimaryName: bindAction(config, clearPrimaryName),
|
|
7
|
+
getPrimaryName: bindAction(config, getPrimaryName),
|
|
8
|
+
setContractPrimaryName: bindAction(config, setContractPrimaryName),
|
|
9
|
+
setPrimaryName: bindAction(config, setPrimaryName),
|
|
10
|
+
setPrimaryNameForAddress: bindAction(config, setPrimaryNameForAddress)
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeReverseActions };
|
|
15
|
+
//# sourceMappingURL=reverse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverse.js","names":[],"sources":["../../src/groups/reverse.ts"],"sourcesContent":["import {\n clearPrimaryName,\n getPrimaryName,\n setContractPrimaryName,\n setPrimaryName,\n setPrimaryNameForAddress,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeReverseActions = (config: EnsforgeConfig) =>\n Object.freeze({\n clearPrimaryName: bindAction(config, clearPrimaryName),\n getPrimaryName: bindAction(config, getPrimaryName),\n setContractPrimaryName: bindAction(config, setContractPrimaryName),\n setPrimaryName: bindAction(config, setPrimaryName),\n setPrimaryNameForAddress: bindAction(config, setPrimaryNameForAddress),\n });\n\nexport type ReverseActions = ReturnType<typeof makeReverseActions>;\n"],"mappings":";;;;AAWA,MAAa,sBAAsB,WACjC,OAAO,OAAO;CACZ,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,gBAAgB,WAAW,QAAQ,cAAc;CACjD,wBAAwB,WAAW,QAAQ,sBAAsB;CACjE,gBAAgB,WAAW,QAAQ,cAAc;CACjD,0BAA0B,WAAW,QAAQ,wBAAwB;AACvE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BoundAction } from "../internal/bind-action.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
import { EnsforgeConfig } from "@ensforge/core";
|
|
4
|
+
//#region src/groups/subnames.d.ts
|
|
5
|
+
declare const makeSubnameActions: (config: EnsforgeConfig) => Readonly<{
|
|
6
|
+
createSubname: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").CreateSubnameParameters, import("@ensforge/core").CreateSubnameResult, import("@ensforge/core").WriteError>>;
|
|
7
|
+
deleteSubname: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").DeleteSubnameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
8
|
+
setSubnameExpiry: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetSubnameExpiryParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
9
|
+
setSubnameManager: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetSubnameManagerParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
10
|
+
setSubnameRecord: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").SetSubnameRecordParameters, import("@ensforge/core").SetSubnameRecordResult, import("@ensforge/core").WriteError>>;
|
|
11
|
+
setSubnameResolver: BoundAction<import("@ensforge/core").EnsWriteAction<import("@ensforge/core").SetSubnameResolverParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>>;
|
|
12
|
+
transferSubname: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").TransferSubnameParameters, import("@ensforge/core").TransferNameProgress, import("@ensforge/core").WriteError>>;
|
|
13
|
+
}>;
|
|
14
|
+
type SubnameActions = ReturnType<typeof makeSubnameActions>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SubnameActions, makeSubnameActions };
|
|
17
|
+
//# sourceMappingURL=subnames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnames.d.ts","names":[],"sources":["../../src/groups/subnames.ts"],"mappings":";;;;cAaa,qBAAsB,QAAQ,mBAAc;iBAAd;;;;;;;;KAW/B,iBAAiB,kBAAkB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { bindAction } from "../internal/bind-action.js";
|
|
2
|
+
import { createSubname, deleteSubname, setSubnameExpiry, setSubnameManager, setSubnameRecord, setSubnameResolver, transferSubname } from "@ensforge/core";
|
|
3
|
+
|
|
4
|
+
//#region src/groups/subnames.ts
|
|
5
|
+
const makeSubnameActions = (config) => Object.freeze({
|
|
6
|
+
createSubname: bindAction(config, createSubname),
|
|
7
|
+
deleteSubname: bindAction(config, deleteSubname),
|
|
8
|
+
setSubnameExpiry: bindAction(config, setSubnameExpiry),
|
|
9
|
+
setSubnameManager: bindAction(config, setSubnameManager),
|
|
10
|
+
setSubnameRecord: bindAction(config, setSubnameRecord),
|
|
11
|
+
setSubnameResolver: bindAction(config, setSubnameResolver),
|
|
12
|
+
transferSubname: bindAction(config, transferSubname)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { makeSubnameActions };
|
|
17
|
+
//# sourceMappingURL=subnames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnames.js","names":[],"sources":["../../src/groups/subnames.ts"],"sourcesContent":["import {\n createSubname,\n deleteSubname,\n setSubnameExpiry,\n setSubnameManager,\n setSubnameRecord,\n setSubnameResolver,\n transferSubname,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeSubnameActions = (config: EnsforgeConfig) =>\n Object.freeze({\n createSubname: bindAction(config, createSubname),\n deleteSubname: bindAction(config, deleteSubname),\n setSubnameExpiry: bindAction(config, setSubnameExpiry),\n setSubnameManager: bindAction(config, setSubnameManager),\n setSubnameRecord: bindAction(config, setSubnameRecord),\n setSubnameResolver: bindAction(config, setSubnameResolver),\n transferSubname: bindAction(config, transferSubname),\n });\n\nexport type SubnameActions = ReturnType<typeof makeSubnameActions>;\n"],"mappings":";;;;AAaA,MAAa,sBAAsB,WACjC,OAAO,OAAO;CACZ,eAAe,WAAW,QAAQ,aAAa;CAC/C,eAAe,WAAW,QAAQ,aAAa;CAC/C,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,mBAAmB,WAAW,QAAQ,iBAAiB;CACvD,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,oBAAoB,WAAW,QAAQ,kBAAkB;CACzD,iBAAiB,WAAW,QAAQ,eAAe;AACrD,CAAC"}
|