feat(farcaster): enable offchain resolver to farcaster names #194#203
Open
developerfred wants to merge 13 commits into
Open
feat(farcaster): enable offchain resolver to farcaster names #194#203developerfred wants to merge 13 commits into
developerfred wants to merge 13 commits into
Conversation
wa0x6e
requested changes
Apr 10, 2024
wa0x6e
requested changes
Apr 10, 2024
Contributor
Author
|
Thanks @wa0x6e, I will jump now |
Contributor
Author
Contributor
|
Tests are still failing |
Contributor
|
Can you also run |
Contributor
|
And in src/addressResolvers/index.ts, you should import the new farcaster module and add it to the |
Contributor
|
You can test the code manuall by sending the curl command It should return {"jsonrpc":"2.0","result":{"codingsh.fcast.id":"0xd1a8Dd23e356B9fAE27dF5DeF9ea025A602EC81e"},"id":null} |
wa0x6e
requested changes
Apr 10, 2024
wa0x6e
requested changes
Apr 13, 2024
wa0x6e
requested changes
Apr 14, 2024
wa0x6e
requested changes
Apr 15, 2024
wa0x6e
requested changes
Apr 15, 2024
wa0x6e
requested changes
Apr 15, 2024
developerfred
commented
Apr 16, 2024
developerfred
left a comment
Contributor
Author
There was a problem hiding this comment.
chore(farcaster): fix tscofing and package.json
wa0x6e
requested changes
Apr 16, 2024
2b70bef to
b24f960
Compare
Contributor
|
Results from curl -X POST http://localhost:3008/ -H "Content-Type: application/json" -d '{"method": "resolve_names", "params": [ "farcaster.fcast.id"] }'
// output
{"jsonrpc":"2.0","result":{"farcaster.fcast.id":"0xbf74483DB914192bb0a9577f3d8Fb29a6d4c08eE"},"id":null}The address |
Member
|
Maybe that's something you can takeover @mktcode, ideally we would like to use the Farcaster profile name instead of Farcaster username. |
Contributor
|
Will be continued here: #271 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


#194
This script provides functionality to interact with the Farcaster network by resolving user details based on Ethereum addresses and usernames. It utilizes two primary functions:
lookupAddressesandresolveNames. ThelookupAddressesfunction fetches Farcaster user details, including usernames, verified Ethereum and Solana addresses, and profile picture URLs, based on a list of Ethereum addresses. TheresolveNamesfunction does similarly, but it resolves these details based on Farcaster usernames or domain names.Key Components:
.fcast.iddomains), fetches their details, and returns their information, similar tolookupAddresses.Example Usage:
Output:
This will output user details for each provided Ethereum address and Farcaster handle, including their usernames, verified addresses on Ethereum and Solana, and profile picture URLs, if available.