Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
43594aa
fix(http): keep empty JSON-RPC batch body as [] (#1254)
andreclaro Oct 15, 2026
e35c437
feat(evm): poll finalized at a fraction of the finality window (#1265)
aramalipoor Oct 15, 2026
eec251c
docs(evm): state poller default interval is 30s (#1266)
aramalipoor Oct 15, 2026
ae773d2
fix(metrics): keep metrics server up until http drain completes (#1268)
aramalipoor Oct 15, 2026
0789a1d
fix(evm): keep regular finalized cadence while behind peers (#1269)
aramalipoor Oct 15, 2026
a28500b
fix(clients): send Content-Length with gzipped request bodies (#1270)…
aramalipoor Oct 15, 2026
e54c61c
fix(alchemy): stop mapping chain 6900 (Nibiru) to anime-sepolia (#127…
aramalipoor Oct 16, 2026
fcab916
fix(served-tip): one served-head rule; bench stalled heads; servedTip…
aramalipoor Oct 16, 2026
ee6fb0c
fix(evm): classify HyperEVM code=10055 as nonce-too-low (#1262)
andreclaro Oct 16, 2026
b1c5f38
feat(evm): pinLatestTag sends a lagging upstream latest as the networ…
aramalipoor Oct 16, 2026
8e88208
fix(evm): fail over on HyperEVM precompile-state gaps instead of retu…
H3xept Oct 17, 2026
a2b0fe8
test(consensus): keep leader fake an EvmNetwork (#1278)
kasrakhosravi Oct 19, 2026
9ba155d
fix(integrity): recover pre-EIP-155 senders; never crash on a check p…
kasrakhosravi Oct 19, 2026
e84915e
fix(policy): stop probing lag-excluded upstreams in the default polic…
aramalipoor Oct 19, 2026
faefa79
fix(policy): apply an eval past evalTimeout instead of racing it (#1284)
aramalipoor Oct 19, 2026
c82e21d
fix(served-tip): evaluate the network-wide served tip every second (#…
aramalipoor Oct 19, 2026
a756b44
fix(upstream): pass request finality into IsDown health checks (#1245)
andreclaro Oct 20, 2026
3b8e481
feat(auth): emit erpc_auth_failed_total for client-facing denials (#1…
andreclaro Oct 20, 2026
1f64add
feat(ws): WebSocket hardening, limits and subscription observability …
jscaltreto Oct 20, 2026
2abe218
feat(evm): pack eth_calls into Multicall3 per upstream (#1288)
aramalipoor Oct 20, 2026
dd79a60
test(http): detect h2c GOAWAY via CanTakeNewRequest on Go 1.27 (#1291)
kasrakhosravi Oct 21, 2026
d6d006c
fix(json-rpc): answer a null request body with -32700, not a panic (#…
kasrakhosravi Oct 21, 2026
8f39f31
fix(integrity): record panic on PinFresh re-run, not reconfirmed (#1286)
andreclaro Oct 21, 2026
77a622a
feat(evm): answer net_listening from eRPC itself (#1293)
aramalipoor Oct 21, 2026
96fe75e
fix(ws): floor latest only to heads a client receives (#1294)
aramalipoor Oct 21, 2026
2d4f522
feat(evm): pack eth_calls sent from the zero address (#1295)
aramalipoor Oct 21, 2026
05ee50b
fix(health): credit a head's age since its last poll before counting …
aramalipoor Oct 21, 2026
bae1bbc
docs(readme): add GitHub stars badge to hero (#1297)
kasrakhosravi Oct 21, 2026
1c5c4ff
ci(release): push v-prefixed Go module tag on each release (#1298)
kasrakhosravi Oct 21, 2026
d5d927f
fix(tracing): accept a full URL as the OTLP/HTTP endpoint (#1301)
kasrakhosravi Oct 21, 2026
85c412d
feat(evm): answer node-info methods from eRPC, switchable per network…
aramalipoor Oct 21, 2026
5637f4e
ci(test): upload merged coverage profile to Codecov (#1299)
kasrakhosravi Oct 21, 2026
55c85dc
feat(integrity): probe "latest" state against each upstream's own hea…
aramalipoor Oct 21, 2026
2b02148
ci(codecov): ignore cmd and internal/simulator (#1304)
kasrakhosravi Oct 21, 2026
c8c67f0
test(thirdparty): cover vendor discovery, urls and error mapping (#1305)
kasrakhosravi Oct 21, 2026
d00b2ce
test(common): cover validation, defaults, errors and JSON-RPC parsing…
kasrakhosravi Oct 21, 2026
8ae6816
test(data): cover postgres, redis, dynamodb and grpc connectors (#1307)
kasrakhosravi Oct 21, 2026
c58e743
test(architecture): cover evm/svm cache, poller, errors and trace_fil…
kasrakhosravi Oct 21, 2026
06fc8d9
test: cover clients, upstream, consensus, auth, policy, util, failsaf…
kasrakhosravi Oct 21, 2026
10d4a4c
test(erpc): cover config analyzer, admin, shadow, grpc and http serve…
kasrakhosravi Oct 21, 2026
12e53b2
docs(readme): add pkg.go.dev and Codecov badges (#1300)
kasrakhosravi Oct 21, 2026
6b0d4b4
fix(defaults): drop keyless envio from zero-config providers (#1311)
kasrakhosravi Oct 22, 2026
abc5868
fix(evm): treat Aurora per-tx trace failures as execution errors (#1313)
kasrakhosravi Oct 22, 2026
32a8a1e
fix(evm): grade pruned-state answers as missing data (#1314)
kasrakhosravi Oct 22, 2026
2c73014
feat(svm): history sweep for mixed-depth upstream pools (#1275)
andreclaro Oct 22, 2026
4f52dac
fix(evm): treat Aurora TransactionHashNotFound traces as execution er…
kasrakhosravi Oct 22, 2026
f4e6132
docs(compare): eRPC vs dshackle, web3-proxy and dRPC NodeCore (#1316)
kasrakhosravi Oct 23, 2026
5a164a0
fix(evm): treat "gas required exceeds allowance" estimates as executi…
FTKuhnsman Oct 23, 2026
f3c7eff
fix(svm): emit cache set-success metrics (#1312)
andreclaro Oct 23, 2026
3a96074
fix(ratelimit): let store.onFailure decide requests redis cannot (#1290)
kasrakhosravi Oct 26, 2026
2851447
feat(policy): blockMethods skips an upstream for single methods (#1330)
kasrakhosravi Oct 26, 2026
271e227
feat(svm): serve getTransaction, getBlockTime, getBlocksWithLimit fro…
kasrakhosravi Oct 26, 2026
5b2dac3
chore(deps): bump next from 15.5.25 to 15.5.28 in /docs (#1336)
dependabot[bot] Oct 27, 2026
da595c2
docs(server): cumulative gzip threshold, close #990 (#1322)
kasrakhosravi Oct 27, 2026
89dadf3
fix(bds): return empty withdrawals as [] on post-Shanghai blocks (#1343)
kasrakhosravi Oct 27, 2026
6dc2108
fix(evm): grade pruned-history answers as missing data (#1341)
aramalipoor Oct 27, 2026
8e5a461
fix(erpc): count wrong-empty only against upstreams that had the bloc…
aramalipoor Oct 27, 2026
788e1f2
fix(monitoring): exclude +Inf bucket from dashboard quantile queries …
kasrakhosravi Oct 27, 2026
204f98c
chore: release 0.5.0
aramalipoor Oct 27, 2026
3beed35
chore: Merge upstream erpc 0.5.0 into main
shpookas Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,27 @@ jobs:
version: "~> v2"
args: release --clean
env:
# The v-prefixed Go module tag lands on this commit after this step;
# pin the current tag so GoReleaser never picks that one instead.
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Go modules only resolve v-prefixed SemVer tags; Docker, npm and GitHub
# releases keep the bare version. Never forced: the Go checksum database
# pins the first commit a module version points to.
- name: Push Go module tag
env:
VERSION: ${{ steps.version.outputs.VERSION }}
run: |
set -euo pipefail
if git ls-remote --exit-code --tags origin "refs/tags/v${VERSION}" >/dev/null; then
echo "v${VERSION} already exists"
else
git tag "v${VERSION}"
git push origin "v${VERSION}"
fi
curl -fsS "https://proxy.golang.org/github.com/erpc/erpc/@v/v${VERSION}.info"

- name: Attest build provenance
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
with:
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ permissions:
jobs:
units:
runs-on: "${{ github.repository_owner == 'erpc' && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04' }}"
permissions:
contents: read
id-token: write # Codecov OIDC upload
timeout-minutes: 30
steps:
- name: Harden the runner (Audit all outbound calls)
Expand All @@ -35,7 +38,25 @@ jobs:
- name: Build
run: make build
- name: Test with the Go CLI
run: make test-fast
run: make test-fast COVER_DIR=${{ runner.temp }}/coverage
- name: Merge coverage profiles
if: ${{ !cancelled() }}
run: |
set -euo pipefail
DIR="${{ runner.temp }}/coverage"
# Every shard profiles all packages, so blocks repeat across files:
# keep one row per block, summing its hit counts.
awk 'FNR==1 {next} {split($0, f, " "); k=f[1] " " f[2]; n[k]+=f[3]} END {print "mode: atomic"; for (k in n) print k, n[k]}' "$DIR"/*.out > "$DIR/coverage.txt"
TOTAL=$(go tool cover -func="$DIR/coverage.txt" | awk '/^total:/ {print $NF}')
echo "Total coverage: $TOTAL" | tee -a "$GITHUB_STEP_SUMMARY"
- name: Upload coverage to Codecov
if: ${{ !cancelled() && github.event_name == 'push' }}
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
use_oidc: true
files: ${{ runner.temp }}/coverage/coverage.txt
disable_search: true
fail_ci_if_error: false # a Codecov outage must not turn main red

security:
runs-on: ubuntu-24.04
Expand Down
29 changes: 19 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,21 @@ test:
@go test ./cmd/... -count 1 -parallel 1
@go test $$(ls -d */ | grep -v "cmd/" | grep -v "test/" | awk '{print "./" $$1 "..."}') -covermode=atomic -v -race -count 1 -parallel 1 -timeout 30m -failfast=false

# COVER_DIR=<dir> makes test-fast write one coverage profile per test process
# into <dir>; -coverpkg counts lines any test reaches, not only its own package.
ifdef COVER_DIR
COVER_FLAGS := -cover -covermode=atomic -coverpkg=./...
cover_out = -coverprofile=$(COVER_DIR)/$(1).out
cover_bin = -test.coverprofile=$(COVER_DIR)/$(1).out
endif

.PHONY: test-fast
test-fast:
@go clean -testcache
@go test ./cmd/... -count 1 -parallel 1 -v
@$(if $(COVER_DIR),mkdir -p $(COVER_DIR))
@go test ./cmd/... -count 1 -parallel 1 -v $(COVER_FLAGS) $(call cover_out,cmd)
@# Compile erpc test binary once
@go test -c -o /tmp/erpc.test ./erpc
@go test -c -o /tmp/erpc.test $(COVER_FLAGS) ./erpc
@# Run erpc shards in parallel (each process has isolated gock state)
@# DSL shard (requires OpenAI API key, non-blocking)
@/tmp/erpc.test -test.v -test.timeout 5m -test.run "^TestConsensusPolicy_DSL" || true &
Expand All @@ -90,18 +99,18 @@ test-fast:
SHARD_CONTAINER_CACHE="^TestEvmJsonRpcCache_(DynamoDB|Redis)$$"; \
SKIP_ALL="$$SHARD_CONSENSUS|$$SHARD_NETWORK|$$SHARD_HTTPSERVER|$$SHARD_INTEGRITY|$$SHARD_CONTAINER_CACHE|^TestConsensusPolicy_DSL|^TestHttp_"; \
pids=(); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_CONSENSUS" -test.parallel 4 & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_NETWORK" & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_HTTPSERVER" & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_INTEGRITY" & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 15m -test.run "$$SHARD_CONTAINER_CACHE" & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.skip "$$SKIP_ALL" & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_CONSENSUS" -test.parallel 4 $(call cover_bin,erpc-consensus) & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_NETWORK" $(call cover_bin,erpc-network) & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_HTTPSERVER" $(call cover_bin,erpc-httpserver) & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.run "$$SHARD_INTEGRITY" $(call cover_bin,erpc-integrity) & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 15m -test.run "$$SHARD_CONTAINER_CACHE" $(call cover_bin,erpc-container-cache) & pids+=($$!); \
/tmp/erpc.test -test.v -test.timeout 10m -test.skip "$$SKIP_ALL" $(call cover_bin,erpc-rest) & pids+=($$!); \
fail=0; for pid in "$${pids[@]}"; do wait "$$pid" || fail=1; done; \
exit $$fail'
@# TestHttp_ tests run after parallel shards (sensitive to system load, only ~5s)
@/tmp/erpc.test -test.v -test.timeout 5m -test.run "^TestHttp_"
@/tmp/erpc.test -test.v -test.timeout 5m -test.run "^TestHttp_" $(call cover_bin,erpc-http)
@# Run all other (non-erpc) packages normally
@go test $$(ls -d */ | grep -v "cmd/" | grep -v "test/" | grep -v "erpc/" | awk '{print "./" $$1 "..."}') -count 1 -parallel 4 -v -timeout 30m -failfast=false
@go test $$(ls -d */ | grep -v "cmd/" | grep -v "test/" | grep -v "erpc/" | awk '{print "./" $$1 "..."}') -count 1 -parallel 4 -v -timeout 30m -failfast=false $(COVER_FLAGS) $(call cover_out,packages)

.PHONY: test-race
test-race:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
<img src="https://i.imgur.com/sa4MhlS.png" alt="eRPC Hero" />
</p>

[![GitHub Stars](https://img.shields.io/github/stars/erpc/erpc?style=flat&logo=github&label=star&colorA=000000&colorB=000000)](https://github.com/erpc/erpc/stargazers)
[![Build Status](https://img.shields.io/github/actions/workflow/status/erpc/erpc/release.yml?branch=main&style=flat&colorA=000000&colorB=000000)](https://github.com/erpc/erpc/actions/workflows/release.yml)
[![Docs](https://img.shields.io/badge/docs-get%20started-brightgreen?style=flat&colorA=000000&colorB=000000)](https://docs.erpc.cloud/)
[![Go Reference](https://img.shields.io/badge/go-reference-blue?style=flat&logo=go&colorA=000000&colorB=000000)](https://pkg.go.dev/github.com/erpc/erpc)
[![Coverage](https://img.shields.io/codecov/c/github/erpc/erpc?style=flat&logo=codecov&colorA=000000&colorB=000000)](https://app.codecov.io/gh/erpc/erpc)
[![License](https://img.shields.io/github/license/erpc/erpc?style=flat&colorA=000000&colorB=000000)](https://github.com/erpc/erpc/blob/main/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/erpc/erpc?style=flat&colorA=000000&colorB=000000)](https://github.com/erpc/erpc/graphs/contributors)
[![Telegram](https://img.shields.io/endpoint?logo=telegram&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Ferpc_cloud&style=flat&colorA=000000&colorB=000000&label=telegram)](https://t.me/erpc_cloud)
Expand Down
Loading
Loading