Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Before you begin, ensure you have the following installed on your system:

```json
{
"chainName": "ethereum",
"chainNames": ["ethereum"],
"chainType": "evm",
"methods": [
{
Expand All @@ -97,7 +97,7 @@ Before you begin, ensure you have the following installed on your system:
- **`Solana`**: the solana go's standard [CommitmentType](https://github.com/gagliardetto/solana-go/blob/main/rpc/types.go#L431)

- **Explanation of Fields**:
- **`chainName`**: Name of the chain of the config file, this field is just for trackability purposes it is not used in this repo
- **`chainNames`**: Name of the chains of the config file, this field is just for trackability purposes it is not used in this repo
- **`chainType`**: Chain type of the chain of the config file, this field is a enum specified on `ChainType` in the `custom-rpc-methods/custom_rpc_methods.go` file
- **`customMethod`**: The method name used to retrieve data along with the getter struct (block number in the case of EVM).
- **`originalMethod`**: The original method name without the getter struct support.
Expand Down
6 changes: 3 additions & 3 deletions custom-rpc-methods/custom_rpc_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ type Method struct {
}

type MethodsConfig struct {
ChainName string `json:"chainName"`
ChainType ChainType `json:"chainType"`
Methods []Method `json:"methods"`
ChainNames []string `json:"chainNames"`
ChainType ChainType `json:"chainType"`
Methods []Method `json:"methods"`
}

// this structure is needed bc you can't return directly a generic in a non generic func
Expand Down
2 changes: 1 addition & 1 deletion supported-chains/blast.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chainName": "blast",
"chainNames": ["blast"],
"chainType": "evm",
"methods": [
{
Expand Down
2 changes: 1 addition & 1 deletion supported-chains/erigon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chainName": "erigon",
"chainNames": ["erigon"],
"chainType": "evm",
"methods": [
{
Expand Down
2 changes: 1 addition & 1 deletion supported-chains/ethereum.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chainName": "ethereum",
"chainNames": ["ethereum", "arbitrum", "optimism"],
"chainType": "evm",
"methods": [
{
Expand Down
2 changes: 1 addition & 1 deletion supported-chains/polygon-bor.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chainName": "polygon-bor",
"chainNames": ["polygon-bor"],
"chainType": "evm",
"methods": [
{
Expand Down
2 changes: 1 addition & 1 deletion supported-chains/solana.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chainName": "solana",
"chainNames": ["solana"],
"chainType": "solana",
"methods": [
{
Expand Down