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

feat: modify shuttle for snapchain migration #2413

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

aditiharini
Copy link
Contributor

@aditiharini aditiharini commented Dec 5, 2024

We need a way to upload hub messages to snapchain nodes. The exiting submitMessage endpoint doesn't work because snapchain uses qualified module names in protos while existing hubs don't. This means existing hub clients can't communicate with the snapchain servers via submitMessage.

Merge Checklist

Choose all relevant options below by adding an x now or at any time before submitting for review


PR-Codex overview

This PR introduces enhancements and new features to the shuttle application, including improved message reconciliation, support for a new SNAPCHAIN_HOST, and updates to the database schema for better handling of on-chain events.

Detailed summary

  • Added SNAPCHAIN_HOST to the environment configuration.
  • Introduced CLEAR_DB option for database management.
  • Updated docker-compose.yml to include a new postgres2 service.
  • Enhanced logging in worker.ts for job processing.
  • Created BasicHubSubscriber class for handling event streams.
  • Modified allActiveDbMessagesOfTypeForFid function for improved database querying.
  • Added methods in App class for reconciling on-chain events.
  • Implemented new backfill functionality for on-chain events.
  • Updated various imports and refactored existing methods for clarity and efficiency.

The following files were skipped due to too many changes: packages/shuttle/521.log

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Dec 5, 2024

⚠️ No Changeset found

Latest commit: 185d231

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hub-monorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 9:32pm

@aditiharini aditiharini added the t-feat Add a new feature or protocol improvement label Dec 5, 2024
@aditiharini aditiharini marked this pull request as ready for review December 5, 2024 01:40
@aditiharini aditiharini force-pushed the add-submit-legacy-message branch from 1665339 to 32be58e Compare December 6, 2024 13:57
@aditiharini aditiharini changed the title feat: add unused submitLegacyMessage endpoint feat: modify shuttle for snapchain migration Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-feat Add a new feature or protocol improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant