Skip to content

fix(x402): share global network aliases for provider filters - #1014

Closed
boboliu-1010 wants to merge 1 commit into
tronprotocol:release_v4.14.0from
boboliu-1010:fix/provider-network-aliases
Closed

boboliu-1010 wants to merge 1 commit into
tronprotocol:release_v4.14.0from
boboliu-1010:fix/provider-network-aliases

Conversation

@boboliu-1010

Copy link
Copy Markdown
Contributor

Summary

x402 provider-list --network sepolia and --network tron:mainnet were rejected because provider filtering maintained a separate, incomplete alias table. Resolve aliases through the shared NetworkRegistry in X402Service, including configured aliases, and pass canonical IDs to the catalog adapter.

Explicit canonical IDs remain usable without local RPC configuration. A valid network absent from the catalog returns an empty list; omitting the filter continues to list providers across networks. Update the option help and remove the duplicate alias table.

This PR targets release_v4.14.0 independently of #1013 and contains no documentation changes. Both PRs touch nearby code, so the remaining PR may need rebasing after either merges.

Validation

  • 59 tests passed across six affected suites, including all builtin aliases, uppercase aliases, a custom alias, unfiltered queries, unknown aliases, and canonical IDs absent from the catalog.
  • Typecheck, ESLint, dependency-cruiser, and build passed.
  • No live payments or publication.

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