Skip to content

integrate blockchain listeners for solana, ethereum, bsc - #1

Merged
knQzx merged 1 commit into
mainfrom
blockchain-listeners
Apr 10, 2026
Merged

knQzx merged 1 commit into
mainfrom
blockchain-listeners

Conversation

@knQzx

@knQzx knQzx commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • integrated blockchain listeners into the listener crate for solana (ws + http overlap), ethereum and bsc (block polling)
  • dual rpc fallback for all chains
  • transfer detection → invoice matching → auto confirmation via db
  • retry queue for failed db operations
  • reverse asset cache lookup by contract address
  • smoke tests for rpc connectivity

Changes

  • listener/src/blockchain/ — evm worker, solana worker, matcher, types
  • config/src/listener.rs — blockchain listener config
  • cache/src/memory/assets.rs — reverse lookup by contract address
  • db/src/postgres/queries/invoices.rs — confirm_invoice_by_token_match
  • .env.example — fallback rpc urls

Test plan

  • cargo check --workspace
  • smoke tests (5/5 rpc endpoints verified)
  • listener runs 90s+ with zero errors on all 3 chains
  • tested with real mainnet rpcs (helius, alchemy, infura, ankr, nodereal)

- add evm block poller with dual rpc fallback, reorg detection, dedup
- add solana ws + http overlap listener with fallback rpc
- add transfer event matching and invoice confirmation via db
- add retry queue for failed db operations
- add reverse asset cache lookup by contract address
- add blockchain listener config with env-based tuning
- add smoke tests for all rpc endpoints
@knQzx
knQzx force-pushed the blockchain-listeners branch from 0e22f1c to 88b2842 Compare April 10, 2026 06:32
@knQzx
knQzx merged commit 17dd151 into main Apr 10, 2026
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