mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Remove deprecated anchoring functionality
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -149,16 +149,6 @@
|
||||
value: r.profile.seed?.id ?? "",
|
||||
editable: true,
|
||||
},
|
||||
{
|
||||
name: "anchors",
|
||||
label: "Anchors",
|
||||
validate: "URN",
|
||||
placeholder: "URN, eg. eip155:1:0x4a9cf21…",
|
||||
description:
|
||||
"URN under which associated project anchors can be found.",
|
||||
value: r.profile.anchorsAccount ?? "",
|
||||
editable: true,
|
||||
},
|
||||
];
|
||||
state = { status: Status.Found, registration: r, owner };
|
||||
} else {
|
||||
|
||||
@@ -22,7 +22,6 @@ export interface EnsProfile {
|
||||
owner?: string;
|
||||
address?: string;
|
||||
seed?: Seed | InvalidSeed;
|
||||
anchorsAccount?: string;
|
||||
url?: string;
|
||||
avatar?: string;
|
||||
twitter?: string;
|
||||
@@ -88,7 +87,6 @@ export async function getRegistration(
|
||||
getText(resolver, "eth.radicle.seed.host"),
|
||||
getText(resolver, "eth.radicle.seed.git"),
|
||||
getText(resolver, "eth.radicle.seed.api"),
|
||||
getText(resolver, "eth.radicle.anchors"),
|
||||
getText(resolver, "com.twitter"),
|
||||
getText(resolver, "com.github"),
|
||||
]);
|
||||
@@ -102,7 +100,6 @@ export async function getRegistration(
|
||||
seedHost,
|
||||
seedGit,
|
||||
seedApi,
|
||||
anchorsAccount,
|
||||
twitter,
|
||||
github,
|
||||
] = meta.filter(isFulfilled).map(r => (r.value ? r.value : undefined));
|
||||
@@ -112,7 +109,6 @@ export async function getRegistration(
|
||||
id,
|
||||
url,
|
||||
avatar,
|
||||
anchorsAccount,
|
||||
address,
|
||||
twitter,
|
||||
github,
|
||||
@@ -153,20 +149,6 @@ export async function getAvatar(
|
||||
return getText(resolver, "avatar");
|
||||
}
|
||||
|
||||
export async function getAnchorsAccount(
|
||||
name: string,
|
||||
config: Config,
|
||||
resolver?: EnsResolver | null,
|
||||
): Promise<string | null> {
|
||||
name = name.toLowerCase();
|
||||
|
||||
resolver = resolver ?? (await getResolver(name, config));
|
||||
if (!resolver) {
|
||||
return null;
|
||||
}
|
||||
return getText(resolver, "eth.radicle.anchors");
|
||||
}
|
||||
|
||||
export async function getSeed(
|
||||
name: string,
|
||||
config: Config,
|
||||
|
||||
@@ -46,7 +46,6 @@ export async function setRecords(
|
||||
case "seed.host":
|
||||
case "seed.git":
|
||||
case "seed.api":
|
||||
case "anchors":
|
||||
calls.push(
|
||||
iface.encodeFunctionData("setText", [
|
||||
node,
|
||||
|
||||
Reference in New Issue
Block a user