Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hub interface class and supporting code #518

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Hub interface class and supporting code #518

wants to merge 14 commits into from

Conversation

fmhall
Copy link
Contributor

@fmhall fmhall commented Sep 8, 2023

Description

Initial, basic, hub interface class and supporting code.

Can be used like this:

from farcaster.hub.generated import request_response_pb2

hub = Hub(mnemonic="x", hub_address="nemes.farcaster.xyz:2283")
request = request_response_pb2.FidRequest(fid=50)
response = hub.client.GetCastsByFid(request)
assert len(response.messages) > 266

Related Issue

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've read the CODE_OF_CONDUCT.md document.
  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

@fmhall fmhall changed the title initial, basic, hub interface class and supporting code Hub interface class and supporting code Sep 8, 2023
@fmhall fmhall mentioned this pull request Sep 8, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant