Skip to content

Matrix common sonic basesepolia optimismsepolia #1111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Arbitrum Sepolia testnet JSON-RPC provider URL for testing (e.g., Infura, Alchemy, etc.)
INDEXER_TEST_JRPC_PROVIDER_URL=https://arbitrum-sepolia.infura.io/v3/your-project-id

# The Graph API key for querying subgraphs (from The Graph Studio)
INDEXER_TEST_API_KEY=your-graph-api-key-here
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,41 @@ Creating a new release involves the following steps:
yarn release <version>
```

## Running tests locally

To run the tests locally, you'll need:
1. Docker installed and running
2. Node.js and Yarn
3. An Arbitrum Sepolia testnet RPC provider (e.g., Infura, Alchemy)
4. An API key from The Graph Studio for querying subgraphs

### Setup

1. Create a `.env` file in the root directory with your credentials. You can copy the example file as a template:
```sh
cp .env.example .env
```

Then edit `.env` with your credentials:
```plaintext
# Your Arbitrum Sepolia testnet RPC endpoint
INDEXER_TEST_JRPC_PROVIDER_URL=https://sepolia.infura.io/v3/your-project-id

# Your API key from The Graph Studio (https://thegraph.com/studio/)
INDEXER_TEST_API_KEY=your-graph-api-key-here
```

2. Run the tests:
```sh
bash scripts/run-tests.sh
```

The script will:
- Start a PostgreSQL container with the required test configuration
- Load your credentials from the `.env` file
- Run the test suite
- Clean up the PostgreSQL container when done

# Copyright

Copyright &copy; 2020-2021 The Graph Foundation
Expand Down
79 changes: 44 additions & 35 deletions docs/feature-support-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,49 @@ As described in [GIP-0008](https://snapshot.org/#/council.graphprotocol.eth/prop

The matrix below reflects the canonical Council-ratified version. As outlined in GIP-00008, Council ratification is currently required for each update, which may happen at different stages of feature development and testing lifecycle.

| Subgraph Feature | Aliases | Implemented | Experimental | Query Arbitration | Indexing Arbitration | Indexing Rewards |
| -------------------------- | ------------- | ----------- | ------------ | ----------------- | -------------------- | ---------------- |
| **Core Features** | | | | | | |
| Full-text Search | | Yes | No | No | Yes | Yes |
| Non-Fatal Errors | | Yes | Yes | Yes | Yes | Yes |
| Grafting | | Yes | Yes | Yes | Yes | Yes |
| **Data Source Types** | | | | | | |
| eip155:\* | \* | Yes | No | No | No | No |
| eip155:1 | mainnet | Yes | No | Yes | Yes | Yes |
| eip155:100 | gnosis | Yes | Yes | Yes | Yes | Yes |
| near:\* | \* | Yes | Yes | No | No | No |
| cosmos:\* | \* | Yes | Yes | No | No | No |
| arweave:\* | \* | Yes | Yes | No | No | No |
| eip155:42161 | artbitrum-one | Yes | Yes | Yes | Yes | Yes |
| eip155:42220 | celo | Yes | Yes | Yes | Yes | Yes |
| eip155:43114 | avalanche | Yes | Yes | Yes | Yes | Yes |
| eip155:250 | fantom | Yes | Yes | Yes | Yes | Yes |
| eip155:137 | polygon | Yes | Yes | Yes | Yes | Yes |
| eip155:10 | optimism | Yes | Yes | Yes | Yes | Yes |
| eip155:8453 | base | Yes | Yes | Yes | Yes | Yes |
| eip155:534352 | scroll | Yes | Yes | Yes | Yes | Yes |
| eip155:59144 | linea | Yes | Yes | Yes | Yes | Yes |
| eip155:56 | bsc | Yes | Yes | Yes | Yes | Yes |
| eip155:122 | fuse | Yes | Yes | Yes | Yes | Yes |
| eip155:81457 | blast-mainnet | Yes | Yes | Yes | Yes | Yes |
| eip155:288 | boba | Yes | Yes | Yes | Yes | Yes |
| eip155:56288 | boba-bnb | Yes | Yes | Yes | Yes | Yes |
| **Data Source Features** | | | | | | |
| ipfs.cat in mappings | | Yes | Yes | No | No | No |
| ENS | | Yes | Yes | Yes | Yes | Yes |
| File data sources: Arweave | | Yes | Yes | No | Yes | Yes |
| File data sources: IPFS | | Yes | Yes | No | Yes | Yes |
| Substreams: mainnet | | Yes | Yes | Yes | Yes | Yes |
| Substreams: optimism | | Yes | Yes | Yes | Yes | Yes |
| Subgraph Feature | Aliases | Implemented | Experimental | Query Arbitration | Indexing Arbitration | Indexing Rewards |
| -------------------------- | ---------------- | ----------- | ------------ | ----------------- | -------------------- | ---------------- |
| **Core Features** | | | | | | |
| Full-text Search | | Yes | No | No | Yes | Yes |
| Non-Fatal Errors | | Yes | Yes | Yes | Yes | Yes |
| Grafting | | Yes | Yes | Yes | Yes | Yes |
| **Data Source Types** | | | | | | |
| eip155:\* | \* | Yes | No | No | No | No |
| eip155:1 | mainnet | Yes | No | Yes | Yes | Yes |
| eip155:100 | gnosis | Yes | Yes | Yes | Yes | Yes |
| near:\* | \* | Yes | Yes | No | No | No |
| arweave:\* | \* | Yes | Yes | No | No | No |
| eip155:42161 | artbitrum-one | Yes | Yes | Yes | Yes | Yes |
| eip155:42220 | celo | Yes | Yes | Yes | Yes | Yes |
| eip155:43114 | avalanche | Yes | Yes | Yes | Yes | Yes |
| eip155:250 | fantom | Yes | Yes | Yes | Yes | Yes |
| eip155:137 | polygon | Yes | Yes | Yes | Yes | Yes |
| eip155:10 | optimism | Yes | Yes | Yes | Yes | Yes |
| eip155:8453 | base | Yes | Yes | Yes | Yes | Yes |
| eip155:534352 | scroll | Yes | Yes | Yes | Yes | Yes |
| eip155:59144 | linea | Yes | Yes | Yes | Yes | Yes |
| eip155:56 | bsc | Yes | Yes | Yes | Yes | Yes |
| eip155:122 | fuse | Yes | Yes | Yes | Yes | Yes |
| eip155:81457 | blast-mainnet | Yes | Yes | Yes | Yes | Yes |
| eip155:288 | boba | Yes | Yes | Yes | Yes | Yes |
| eip155:56288 | boba-bnb | Yes | Yes | Yes | Yes | Yes |
| eip155:7777777 | zora | Yes | Yes | Yes | Yes | Yes |
| eip155:34443 | mode | Yes | Yes | Yes | Yes | Yes |
| eip155:1284 | moonbeam | Yes | Yes | Yes | Yes | Yes |
| eip155:30 | rootstock | Yes | Yes | Yes | Yes | Yes |
| eip155:1101 | polygon-zkevm | Yes | Yes | Yes | Yes | Yes |
| eip155:421614 | arbitrum-sepolia | Yes | Yes | Yes | Yes | Yes |
| eip155:324 | zksync-era | Yes | Yes | Yes | Yes | Yes |
| eip155:146 | sonic | Yes | Yes | Yes | Yes | Yes |
| eip155:84532 | base-sepolia | Yes | Yes | Yes | Yes | Yes |
| eip155:11155420 | optimism-sepolia | Yes | Yes | Yes | Yes | Yes |
| **Data Source Features** | | | | | | |
| ipfs.cat in mappings | | Yes | Yes | No | No | No |
| ENS | | Yes | Yes | Yes | Yes | Yes |
| File data sources: Arweave | | Yes | Yes | No | Yes | Yes |
| File data sources: IPFS | | Yes | Yes | No | Yes | Yes |
| Substreams: mainnet | | Yes | Yes | Yes | Yes | Yes |
| Substreams: optimism | | Yes | Yes | Yes | Yes | Yes |

The accepted `graph-node` version range must always be specified; it always comprises the latest available version and the one immediately preceding it.
The latest for the feature matrix above:
Expand All @@ -48,7 +57,7 @@ graph-node: >=0.35.0 <=0.36.1

### Latest Council snapshot

[GGP-0043: Updated Feature Matrix Support (base, bsc, scroll, linea)](https://snapshot.org/#/council.graphprotocol.eth/proposal/0x4226f917346416b76f77369181881bebbc9b4e3f66e9681e5fc4e56d7460eba7)
[GGP-0050 Updated Feature Matrix Support (zora, mode, moonbeam)](https://snapshot.org/#/s:council.graphprotocol.eth/proposal/0x7c1b0eaa299a24ba23f76d86d85b903ac8e8457db3656531e7bd5cee80c20146)

### Other notes

Expand Down
6 changes: 0 additions & 6 deletions packages/indexer-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ Indexer Infrastructure
--graph-node-admin-endpoint Graph Node endpoint for applying and
updating subgraph deployments
[string] [required]
--enable-auto-migration-support Auto migrate allocations from L1 to L2
(multi-network mode must be enabled)
[boolean] [default: false]
--public-indexer-url Indexer endpoint for receiving requests from
the network [string] [required]
--indexer-geo-coordinates Coordinates describing the Indexer's
Expand Down Expand Up @@ -161,9 +158,6 @@ Indexer Infrastructure
etc. [string] [required]
--graph-node-admin-endpoint Graph Node endpoint for applying and updating
subgraph deployments [string] [required]
--enable-auto-migration-support Auto migrate allocations from L1 to L2
(multi-network mode must be enabled)
[boolean] [default: false]

Postgres
--postgres-host Postgres host [string] [required]
Expand Down
8 changes: 1 addition & 7 deletions packages/indexer-agent/src/__tests__/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
specification,
QueryFeeModels,
defineQueryFeeModels,
MultiNetworks,
loadTestYamlConfig,
} from '@graphprotocol/indexer-common'
import { BigNumber } from 'ethers'
Expand Down Expand Up @@ -152,11 +151,6 @@ const setup = async () => {
metrics,
)

const multiNetworks = new MultiNetworks(
[network],
(n: Network) => n.specification.networkIdentifier,
)

indexerManagementClient = await createIndexerManagementClient({
models,
graphNode,
Expand All @@ -167,7 +161,7 @@ const setup = async () => {
parallelAllocations: 1,
},
},
multiNetworks,
network,
})

operator = new Operator(logger, indexerManagementClient, networkSpecification)
Expand Down
Loading
Loading