Page MenuHomePhabricator

[lib] Introduce getFCNames
ClosedPublic

Authored by ashoat on May 5 2024, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 6:43 AM
Unknown Object (File)
Mon, Nov 11, 6:17 AM
Unknown Object (File)
Mon, Nov 11, 1:41 AM
Unknown Object (File)
Sun, Nov 10, 7:05 PM
Unknown Object (File)
Fri, Oct 18, 3:41 AM
Unknown Object (File)
Oct 11 2024, 6:26 AM
Unknown Object (File)
Oct 11 2024, 6:26 AM
Unknown Object (File)
Oct 11 2024, 6:26 AM
Subscribers

Details

Summary

This was modeled after getENSNames, and is an async function that will be used on the keyserver for notifs.

In the React context, we'll use a different utility that will be introduced in the next diff that allows the FC names to stream in, rather than blocking on every single one of them being fetched.

Depends on D11876

Test Plan

I tested this in combination with later diffs on both keyserver and web:

  1. For keyserver, I tested that Farcaster usernames worked in notifs
  2. For web, I tested that Farcaster usernames were resolved in robotext

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable