Remove deprecated anchoring functionality

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-10-10 17:37:02 +02:00
parent aae40b0b32
commit 4bac3fcfdc
7 changed files with 1 additions and 64 deletions
-10
View File
@@ -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 {
-18
View File
@@ -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,
-1
View File
@@ -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,