Skip to content

Commit

Permalink
feat(proxyd): comprehensive method mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswessels committed Aug 26, 2022
1 parent e405387 commit 88a6608
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/proxyd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 4 additions & 2 deletions charts/proxyd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Deploy and scale [proxyd](https://github.com/ethereum-optimism/optimism/tree/develop/proxyd) inside Kubernetes with ease

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square)

## Introduction

Expand Down Expand Up @@ -41,6 +41,8 @@ The Chart configures 3 backend groups by default:

You should assign your backends to the groups that make sense.

**You must have at least one node in every group that is defined.**

Example:

```yaml
Expand Down Expand Up @@ -155,7 +157,7 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
| proxyd.service.type | | string | `"ClusterIP"` |
| proxyd.terminationGracePeriodSeconds | Amount of time to wait before force-killing the proxyd process | int | `60` |
| proxyd.tolerations | | list | `[]` |
| rpcMethodMappings | Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name) | object | `{"eth_blockNumber":"archive","eth_call":"archive","eth_chainId":"pruned","trace_block":"archive-trace"}` |
| rpcMethodMappings | Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name) | object | `{"eth_blockNumber":"pruned","eth_call":"archive","eth_coinbase":"pruned","eth_estimateGas":"pruned","eth_gasPrice":"pruned","eth_getBalance":"pruned","eth_getBlockByHash":"pruned","eth_getBlockByNumber":"pruned","eth_getBlockTransactionCountByHash":"pruned","eth_getBlockTransactionCountByNumber":"pruned","eth_getCode":"pruned","eth_getFilterChanges":"pruned","eth_getLogs":"pruned","eth_getStorageAt":"pruned","eth_getTransactionByBlockHashAndIndex":"archive","eth_getTransactionByBlockNumberAndIndex":"archive","eth_getTransactionByHash":"archive","eth_getTransactionCount":"pruned","eth_getTransactionReceipt":"archive","eth_getUncleByBlockHashAndIndex":"pruned","eth_getUncleByBlockNumberAndIndex":"pruned","eth_newBlockFilter":"pruned","eth_newFilter":"pruned","eth_newPendingTransactionFilter":"pruned","eth_protocolVersion":"pruned","eth_sendRawTransaction":"pruned","eth_sendTransaction":"pruned","eth_sign":"pruned","eth_uninstallFilter":"pruned","net_version":"pruned","trace_block":"archive-trace","trace_call":"archive-trace","trace_callMany":"archive-trace","trace_filter":"archive-trace","trace_rawTransaction":"archive-trace","trace_replayBlockTransactions":"archive-trace","trace_replayTransaction":"archive-trace","trace_transaction":"archive-trace","web3_clientVersion":"pruned","web3_sha3":"pruned"}` |
| serviceAccount.annotations | Annotations to add to the service account | object | `{}` |
| serviceAccount.create | Specifies whether a service account should be created | bool | `true` |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | string | `""` |
Expand Down
2 changes: 2 additions & 0 deletions charts/proxyd/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ The Chart configures 3 backend groups by default:

You should assign your backends to the groups that make sense.

**You must have at least one node in every group that is defined.**

Example:

```yaml
Expand Down
40 changes: 38 additions & 2 deletions charts/proxyd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,46 @@ backends:

# -- Mapping JSON-RPC method name to a particular group of backends (method_name -> group_name)
rpcMethodMappings:
web3_clientVersion: pruned
web3_sha3: pruned
net_version: pruned
eth_protocolVersion: pruned
eth_coinbase: pruned
eth_gasPrice: pruned
eth_blockNumber: pruned
eth_getBalance: pruned
eth_getStorageAt: pruned
eth_getTransactionCount: pruned
eth_getBlockTransactionCountByHash: pruned
eth_getBlockTransactionCountByNumber: pruned
eth_getCode: pruned
eth_sign: pruned
eth_sendTransaction: pruned
eth_sendRawTransaction: pruned
eth_estimateGas: pruned
eth_getBlockByHash: pruned
eth_getBlockByNumber: pruned
eth_getTransactionByHash: archive
eth_getTransactionByBlockHashAndIndex: archive
eth_getTransactionByBlockNumberAndIndex: archive
eth_getTransactionReceipt: archive
eth_getUncleByBlockHashAndIndex: pruned
eth_getUncleByBlockNumberAndIndex: pruned
eth_newFilter: pruned
eth_newBlockFilter: pruned
eth_newPendingTransactionFilter: pruned
eth_uninstallFilter: pruned
eth_getFilterChanges: pruned
eth_getLogs: pruned
eth_call: archive
eth_chainId: pruned
eth_blockNumber: archive
trace_block: archive-trace
trace_filter: archive-trace
trace_transaction: archive-trace
trace_call: archive-trace
trace_callMany: archive-trace
trace_rawTransaction: archive-trace
trace_replayBlockTransactions: archive-trace
trace_replayTransaction: archive-trace

# -- The configuration template that is rendered by Helm
# @default -- See default template in [values.yaml](values.yaml)
Expand Down

0 comments on commit 88a6608

Please sign in to comment.