Skip to content

Commit

Permalink
Add "archive" feature to JSON RPC Providers (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 authored Feb 13, 2024
1 parent ba34362 commit 31a5a93
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 11 deletions.
33 changes: 33 additions & 0 deletions charts/hedera-the-graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,37 @@ Is possible to do queries using the index node, so for small testing environment
enabled: false
```

## RPC Provider Configuration Overview

This section details the override values specified for different network environments: previewnet, testnet, and mainnet. The configuration files are organized as follows:
```
/values-overrides
/values-mainnet.yaml
/values-previewnet.yaml
/values-testnet.yaml
```
### Support for Archive Feature

The Hedera JSON RPC Relay now includes support for the archive feature, as outlined in [HIP-584](https://hips.hedera.com/hip/hip-584). By default, the configuration for all networks enables the `archive` feature for the RPC node. However, it is possible to disable this feature if needed.

#### Disabling Archive Feature

To disable the archive feature, adjust the configuration as demonstrated below for the `testnet` environment:

```yaml
index-node:
config:
chains:
testnet:
providers:
- features: []
label: hedera-testnet
transport: rpc
url: https://testnet.hashio.io/api
```

#### Additional Resources
More information on thegraph node documentation for [configuration toml - providers](https://github.com/graphprotocol/graph-node/blob/master/docs/config.md#configuring-ethereum-providers)

## Installing the Chart

Expand All @@ -102,6 +133,8 @@ same for previewnet:
helm install sl charts/hedera-the-graph -f charts/hedera-the-graph/values-overrides/values-previewnet.yaml
```



## Uninstalling the Chart

To uninstall/delete the `my-release` deployment:
Expand Down
6 changes: 3 additions & 3 deletions charts/hedera-the-graph/values-overrides/values-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ index-node:
chains:
mainnet:
providers:
- features: []
- features: ["archive"]
label: hedera-mainnet
transport: rpc
url: https://mainnet.hashio.io/api
Expand All @@ -13,7 +13,7 @@ query-node:
chains:
mainnet:
providers:
- features: []
- features: ["archive"]
label: hedera-mainnet
transport: rpc
url: https://mainnet.hashio.io/api
url: https://mainnet.hashio.io/api
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ index-node:
chains:
previewnet:
providers:
- features: []
- features: ["archive"]
label: hedera-previewnet
transport: rpc
url: https://previewnet.hashio.io/api
Expand All @@ -13,7 +13,7 @@ query-node:
chains:
previewnet:
providers:
- features: []
- features: ["archive"]
label: hedera-previewnet
transport: rpc
url: https://previewnet.hashio.io/api
url: https://previewnet.hashio.io/api
6 changes: 3 additions & 3 deletions charts/hedera-the-graph/values-overrides/values-testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ index-node:
chains:
testnet:
providers:
- features: []
- features: ["archive"]
label: hedera-testnet
transport: rpc
url: https://testnet.hashio.io/api
Expand All @@ -13,7 +13,7 @@ query-node:
chains:
testnet:
providers:
- features: []
- features: ["archive"]
label: hedera-testnet
transport: rpc
url: https://testnet.hashio.io/api
url: https://testnet.hashio.io/api
4 changes: 2 additions & 2 deletions charts/hedera-the-graph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ index-node:
chains:
testnet:
providers:
- features: []
- features: ["archive"]
label: hedera-testnet
transport: rpc
url: https://testnet.hashio.io/api
Expand Down Expand Up @@ -109,7 +109,7 @@ query-node:
chains:
testnet:
providers:
- features: []
- features: ["archive"]
label: hedera-testnet
transport: rpc
url: https://testnet.hashio.io/api
Expand Down

0 comments on commit 31a5a93

Please sign in to comment.