Page MenuHomePhabricator

[lib] Introduce getFCNames
ClosedPublic

Authored by ashoat on May 5 2024, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 11:32 AM
Unknown Object (File)
Mon, Jun 24, 7:34 AM
Unknown Object (File)
Thu, Jun 20, 2:46 PM
Unknown Object (File)
Thu, Jun 13, 12:52 AM
Unknown Object (File)
Tue, Jun 4, 5:12 PM
Unknown Object (File)
Tue, Jun 4, 5:12 PM
Unknown Object (File)
Tue, Jun 4, 5:11 PM
Unknown Object (File)
Tue, Jun 4, 5:10 PM
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