Skip to content

Implement chain data polling #23

Description

@superposition

Description

Poll Uniswap v4 pools and broadcast volatility updates.

Tasks

  • Create chain polling service
  • Connect to Ethereum RPC (configurable endpoint)
  • Poll Uniswap v4 pool states periodically
  • Generate volatility snapshots using @marigraph/chain
  • Broadcast SURFACE_FULL on significant changes
  • Broadcast SURFACE_DELTA for small changes
  • Add configurable poll interval
  • Handle RPC errors gracefully

Reference

  • src/chain/volatility.ts - snapshot generation
  • src/chain/uniswap.ts - pool state fetching

Acceptance Criteria

  • Polls chain data at configured interval
  • Broadcasts updates to connected clients
  • Handles RPC failures without crashing

Labels

web-app, backend, server

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions