Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Hub interface class and supporting code#518

Closed
fmhall wants to merge 14 commits into
mainfrom
mason/hubs
Closed

Hub interface class and supporting code#518
fmhall wants to merge 14 commits into
mainfrom
mason/hubs

Conversation

@fmhall

@fmhall fmhall commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant