Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Feat: Configurable RPC Apis #349

Merged
merged 29 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f65707c
fix confusing name
crypto-facs Jul 22, 2021
84d475d
feat: Enable configurable grpc apis
crypto-facs Jul 23, 2021
6fb66fe
docs: Update docs and changelog
crypto-facs Jul 23, 2021
89416b5
Organized flags order
crypto-facs Jul 23, 2021
e097d36
merge conflicts
crypto-facs Jul 25, 2021
b65d49a
fix linter
crypto-facs Jul 25, 2021
ce5087d
fix linter
crypto-facs Jul 25, 2021
144b388
fix maligned struct
crypto-facs Jul 25, 2021
c131a06
Merge branch 'main' into configurable-rpcs
crypto-facs Jul 25, 2021
073aa9d
fix typo in docs
crypto-facs Jul 26, 2021
2929380
fix unnecesary duplicate
crypto-facs Jul 26, 2021
1c50243
Update cmd/ethermintd/config/config.go
crypto-facs Jul 26, 2021
dcebdc0
Update cmd/ethermintd/config/config.go
crypto-facs Jul 26, 2021
ebfb6de
Update cmd/ethermintd/config/config.go
crypto-facs Jul 26, 2021
2d93d8e
Update docs/basics/json_rpc.md
crypto-facs Jul 26, 2021
960cb40
fix eth to be manage as default
crypto-facs Jul 26, 2021
3010993
Update init.sh
crypto-facs Jul 26, 2021
ac03109
Update tests/solidity/init-test-node.sh
crypto-facs Jul 26, 2021
bb6bfa4
add default case
crypto-facs Jul 26, 2021
6ce870b
Merge branch 'configurable-rpcs' of github.com:crypto-facs/ethermint …
crypto-facs Jul 26, 2021
277bce6
add default enable api namespaces
crypto-facs Jul 26, 2021
5048f20
update changelog
crypto-facs Jul 26, 2021
d9a0ace
fix namespaces array handler
crypto-facs Jul 26, 2021
3c4032a
remove duplicated changelog
crypto-facs Jul 26, 2021
43b0f7b
fix typo
crypto-facs Jul 26, 2021
bb9aa27
remove duplicates namespaces and fix eth namespace issue
crypto-facs Jul 26, 2021
129f154
fix variable name
crypto-facs Jul 26, 2021
4e554bf
break line in docs
crypto-facs Jul 26, 2021
994b817
Merge branch 'main' into configurable-rpcs
fedekunze Jul 26, 2021
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
Prev Previous commit
Next Next commit
fix variable name
  • Loading branch information
crypto-facs committed Jul 26, 2021
commit 129f154c58996a29b5c5c7d4afcc66ad288d5b12
4 changes: 2 additions & 2 deletions server/evmrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func StartEVMRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr string

rpcServer := ethrpc.NewServer()

rpcAPI := config.EVMRPC.API
apis := rpc.GetRPCAPIs(ctx, clientCtx, tmWsClient, rpcAPI)
rpcAPIArr := config.EVMRPC.API
apis := rpc.GetRPCAPIs(ctx, clientCtx, tmWsClient, rpcAPIArr)

for _, api := range apis {
if err := rpcServer.RegisterName(api.Namespace, api.Service); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions testutil/network/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ func startInProcess(cfg Config, val *Validator) error {

val.jsonRPC = jsonrpc.NewServer()

rpcAPI := val.AppConfig.EVMRPC.API
rpcAPIArr := val.AppConfig.EVMRPC.API
apis := rpc.GetRPCAPIs(val.Ctx, val.ClientCtx, tmWsClient, rpcAPIArr)

apis := rpc.GetRPCAPIs(val.Ctx, val.ClientCtx, tmWsClient, rpcAPI)
for _, api := range apis {
if err := val.jsonRPC.RegisterName(api.Namespace, api.Service); err != nil {
return fmt.Errorf("failed to register JSON-RPC namespace %s: %w", api.Namespace, err)
Expand Down