Commit 4884049
committed
refactor(rpc)!: replace in-tree JSON-RPC with cosmos/evm/rpc
Delete moca's ~16k-LOC forked rpc/ tree and serve the EVM JSON-RPC from
github.com/cosmos/evm/rpc (v0.6.0): backend, namespaces, and the
newHeads/logs/pendingTx subscriptions now come from cosmos/evm, fed by an
in-process CometBFT event stream and an ante PendingTxListener hook on *Moca.
The indexer moves to cosmos/evm's server/types.TxResult.
The only retained moca RPC code is a thin server/websockets.go shim: a copy of
cosmos/evm's WS server with newHeads emitting the canonical CometBFT block hash
(moca #232 / issue #229) instead of the derived eth-header hash, completing the
half-fix in cosmos/evm#725 (the canonical hash is carried on the stream but
unused in newHeads upstream). Removable once that lands and we bump.
Also drop now-unused config keys (query-timeout, getlogs-rate-limit,
getlogs-burst-limit, fix-revert-gas-refund-height) and the dead
ethermint.types.v1.TxResult / EVMTxIndexer types; add json-rpc.ws-origins.
Depends on #292 (WS/getFilterChanges e2e gate); merge after #292.
Verified: go build ./... green; e2e RPC suite 10/10 (incl. eth_subscribe logs).
Signed-off-by: puneetmahajan <59960662+puneet2019@users.noreply.github.com>1 parent 2ee07c4 commit 4884049
74 files changed
Lines changed: 374 additions & 17081 deletions
File tree
- api/ethermint/types/v1
- app
- indexer
- proto/ethermint/types/v1
- rpc
- backend
- mocks
- ethereum/pubsub
- namespaces/ethereum
- debug
- eth
- filters
- miner
- net
- personal
- txpool
- web3
- types
- server
- config
- flags
- testutil/network
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments