feat: jsonrpc architecture for non-EVM (HAProxy) upstreams - #21
Open
snowkide wants to merge 3 commits into
Open
Conversation
Passthrough JSON-RPC networks (jsonrpc:<slug>) skip EVM chainId/state poller/hooks while keeping HTTP/WS forwarding and metrics — including forwardedClientId from #20. Point upstreams at HAProxy/direct endpoints. Co-authored-by: Cursor <cursoragent@cursor.com>
xray — see through AI slop with deterministic architecture PR diff reviews |
Author
|
Supersedes the separate edge path (now closed):
After #20 + this + image: add |
Chart emits failsafe as a single object, so UnmarshalYAML uses oldNetworkConfig. That struct lacked JsonRpc, so architecture: jsonrpc networks crashed config load (chainlink-erpc CrashLoopBackOff). Co-authored-by: Cursor <cursoragent@cursor.com>
clients/registry only accepted type=evm, so every non-EVM upstream failed with "unsupported upstream type: jsonrpc" and networks never left ErrNetworkInitializing. Co-authored-by: Cursor <cursoragent@cursor.com>
Author
|
Prod finding: running
Root cause: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #20 (
forwardedClientId+ WS metrics) — does not modify #20.Adds
architecture: jsonrpc/type: jsonrpcso non-EVM chains can sit on erpc with upstreams pointed at HAProxy (or direct node Services), getting:erpc_network_request_received_total) via existing pipeline + feat: path /secret auth + forwardedClientId + WS event metrics #20eth_chainIdprobe, EVM state poller, or EVM method hooksExample (Solana via HAProxy)
Same pattern for starknet/tron/aptos/ton/sui/btc/polkadot (direct ports as needed).
Out of scope
architecture: svm; this is intentionally dumb passthrough)Test plan
go test ./common/ -run TestJsonRpcNetworkIdgo build ./common ./util ./erpc ./upstreamerpc_network_request_received_total{transport=\"http\"}transport=\"ws\"(via feat: path /secret auth + forwardedClientId + WS event metrics #20 path)Made with Cursor