Skip to content

refactor(extractors): use provider config types from providers crates#1748

Merged
LNSD merged 1 commit intomainfrom
lnsd/refactor-extractors-provider-config
Feb 13, 2026
Merged

refactor(extractors): use provider config types from providers crates#1748
LNSD merged 1 commit intomainfrom
lnsd/refactor-extractors-provider-config

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Feb 12, 2026

Remove duplicated ProviderConfig structs from extractor crates and use canonical types from amp-providers-* crates instead.

  • Replace extractor-local ProviderConfig with EvmRpcProviderConfig, FirehoseProviderConfig, and SolanaProviderConfig
  • Add Redacted::into_inner() to unwrap redacted URLs and tokens from provider configs
  • Unify NetworkId::PartialEq with generic AsRef<str> impl and add new_unchecked constructor
  • Remove serde_with dependency from extractor crates now that config parsing lives in providers

@LNSD LNSD self-assigned this Feb 12, 2026
@LNSD LNSD marked this pull request as ready for review February 12, 2026 22:39
@LNSD LNSD requested review from mitchhs12 and sistemd February 12, 2026 22:44
@LNSD LNSD force-pushed the lnsd/refactor-extractors-provider-config branch from 5c3671b to dfe784d Compare February 13, 2026 00:41
@LNSD LNSD requested a review from shiyasmohd February 13, 2026 00:42
@LNSD LNSD force-pushed the lnsd/refactor-extractors-provider-config branch from dfe784d to f53ab76 Compare February 13, 2026 00:43
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅
Added comments for small nits.
Also serde crate is not used in amp-providers-registry crate. Can be removed.

Remove duplicated ProviderConfig structs from extractor crates and use canonical types from amp-providers-* crates instead.

- Replace extractor-local `ProviderConfig` with `EvmRpcProviderConfig`, `FirehoseProviderConfig`, and `SolanaProviderConfig`
- Add `Redacted::into_inner()` to unwrap redacted URLs and tokens from provider configs
- Unify `NetworkId::PartialEq` with generic `AsRef<str>` impl and add `new_unchecked` constructor
- Remove `serde_with` dependency from extractor crates now that config parsing lives in providers

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the lnsd/refactor-extractors-provider-config branch from f53ab76 to 9249137 Compare February 13, 2026 15:19
@LNSD LNSD merged commit 5ce25d0 into main Feb 13, 2026
7 checks passed
@LNSD LNSD deleted the lnsd/refactor-extractors-provider-config branch February 13, 2026 15:24
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.

2 participants