Skip to content

Commit e640578

Browse files
committed
docs/network: Update testnet instructions / configs
1 parent 8be44c0 commit e640578

File tree

1 file changed

+32
-67
lines changed

1 file changed

+32
-67
lines changed

docs/networks.md

Lines changed: 32 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ For mainnet:
1414

1515
For testnet:
1616

17-
| Component | Release |
18-
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19-
| contracts | [1.2.0](https://github.com/graphprotocol/contracts/releases/tag/v1.2.0) |
20-
| indexer-agent | [0.13.0](https://github.com/graphprotocol/indexer/releases/tag/v0.13.0) |
21-
| indexer-cli | [0.13.0](https://github.com/graphprotocol/indexer/releases/tag/v0.13.0) |
22-
| indexer-service | [0.13.0](https://github.com/graphprotocol/indexer/releases/tag/v0.13.0) |
23-
| graph-node | [0.22.0](https://github.com/graphprotocol/graph-node/releases/tag/v0.22.0) |
24-
| vector_node | [a340c8a4](https://hub.docker.com/layers/connextproject/vector_node/a340c8a4/images/sha256-b242d3e46c184ce07ce242d743ec16ba6453e50c694609d01104553dfa2216bd?context=explore) (commit) |
17+
| Component | Release |
18+
| --------------- | -------------------------------------------------------------------------- |
19+
| contracts | [1.2.0](https://github.com/graphprotocol/contracts/releases/tag/v1.2.0) |
20+
| indexer-agent | [0.14.0](https://github.com/graphprotocol/indexer/releases/tag/v0.14.0) |
21+
| indexer-cli | [0.14.0](https://github.com/graphprotocol/indexer/releases/tag/v0.14.0) |
22+
| indexer-service | [0.14.0](https://github.com/graphprotocol/indexer/releases/tag/v0.14.0) |
23+
| graph-node | [0.22.0](https://github.com/graphprotocol/graph-node/releases/tag/v0.22.0) |
2524

2625
## Mainnet (https://network.thegraph.com)
2726

@@ -79,8 +78,12 @@ indexer. The only requirement is a minimum stake of 100k GRT.
7978

8079
### Registration / Funding (GRT)
8180

82-
In order to register for the testnet and have testnet GRT distributed to you,
83-
please fill out the [testnet registration form](https://airtable.com/shrL1trS84Jf0aawP).
81+
In order to participate in the testnet, you'll need Rinkeby ETH and testnet GRT.
82+
To be eligable for testnet GRT, you'll need to
83+
84+
1. join [The Graph Discord](https://thegraph.com/discord/),
85+
2. get the `@testnetindexer` role in the `#roles` channel,
86+
3. use the `#testnet-fauceet` channel to obtain testnet GRT.
8487

8588
### Approving And Staking
8689

@@ -151,69 +154,31 @@ testnet (for now) are all mainnet subgraphs. This means:
151154

152155
#### Indexer Agent
153156

154-
| Environment Variable | CLI Argument | Value |
155-
| ----------------------------------------- | ----------------------------- | ----------------------------------------------------------------------------------- |
156-
| `INDEXER_AGENT_ETHEREUM` | `--ethereum` | An Ethereum rinkeby node/provider |
157-
| `INDEXER_AGENT_ETHEREUM_NETWORK` | `--ethereum-network` | `4` (rinkeby) |
158-
| `INDEXER_AGENT_INDEXER_ADDRESS` | `--indexer-address` | Ethereum address of testnet indexer |
159-
| `INDEXER_AGENT_INDEXER_GEO_COORDINATES` | `--indexer-geo-coordinates` | Geo coordinates of testnet indexer infrastructure |
160-
| `INDEXER_AGENT_MNEMONIC` | `--mnemonic` | Ethereum mnemonic for testnet operator |
161-
| `INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT` | `--network-subgraph-endpoint` | `https://gateway.testnet.thegraph.com/network` |
162-
| `INDEXER_AGENT_DAI_CONTRACT` | `--dai-contract` | `0x9e7e607afd22906f7da6f1ec8f432d6f244278be` (GDAI) |
163-
| `INDEXER_AGENT_VECTOR_NODE` | `--vector-node` | Internal URL of the Vector node in the indexer's infrastructure |
164-
| `INDEXER_AGENT_VECTOR_EVENT_SERVER` | `--vector-event-server` | Internal URL of indexer-agent's Vector event server in the indexer's infrastructure |
165-
| `INDEXER_AGENT_VECTOR_EVENT_SERVER_PORT` | `--vector-event-server-port` | Default: `8001` (note: don't expose this to the public) |
166-
| `INDEXER_AGENT_VECTOR_ROUTER` | `--vector-router` | `vector8BSZxfkr62As6KZX2so4yXuex5XcpPXQ2tYZrBqpub94dAobu7` |
157+
| Environment Variable | CLI Argument | Value |
158+
| ----------------------------------------- | ----------------------------- | ------------------------------------------------------- |
159+
| `INDEXER_AGENT_ETHEREUM` | `--ethereum` | An Ethereum rinkeby node/provider |
160+
| `INDEXER_AGENT_ETHEREUM_NETWORK` | `--ethereum-network` | `4` (rinkeby) |
161+
| `INDEXER_AGENT_INDEXER_ADDRESS` | `--indexer-address` | Ethereum address of testnet indexer |
162+
| `INDEXER_AGENT_INDEXER_GEO_COORDINATES` | `--indexer-geo-coordinates` | Geo coordinates of testnet indexer infrastructure |
163+
| `INDEXER_AGENT_MNEMONIC` | `--mnemonic` | Ethereum mnemonic for testnet operator |
164+
| `INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT` | `--network-subgraph-endpoint` | `https://gateway.testnet.thegraph.com/network` |
165+
| `INDEXER_AGENT_DAI_CONTRACT` | `--dai-contract` | `0x9e7e607afd22906f7da6f1ec8f432d6f244278be` (GDAI) |
166+
| `INDEXER_AGENT_COLLECT_RECEIPTS_ENDPOINT` | `--collect-receipts-endpoint` | `https://gateway.testnet.thegraph.com/collect-receipts` |
167167

168168
#### Indexer Service
169169

170-
| Environment Variable | CLI Argument | Value |
171-
| ------------------------------------------- | ----------------------------- | --------------------------------------------------------------- |
172-
| `INDEXER_SERVICE_ETHEREUM` | `--ethereum` | An Ethereum rinkeby node/provider |
173-
| `INDEXER_SERVICE_ETHEREUM_NETWORK` | `--ethereum-network` | `4` (rinkeby) |
174-
| `INDEXER_SERVICE_INDEXER_ADDRESS` | `--indexer-address` | Ethereum address of testnet indexer |
175-
| `INDEXER_SERVICE_MNEMONIC` | `--mnemonic` | Ethereum mnemonic for testnet operator |
176-
| `INDEXER_SERVICE_NETWORK_SUBGRAPH_ENDPOINT` | `--network-subgraph-endpoint` | `https://gateway.testnet.thegraph.com/network` |
177-
| `INDEXER_SERVICE_VECTOR_NODE` | `--vector-node` | Internal URL of the Vector node in the indexer's infrastructure |
178-
| `INDEXER_SERVICE_VECTOR_ROUTER` | `--vector-router` | `vector8BSZxfkr62As6KZX2so4yXuex5XcpPXQ2tYZrBqpub94dAobu7` |
170+
| Environment Variable | CLI Argument | Value |
171+
| ------------------------------------------- | ----------------------------- | ---------------------------------------------- |
172+
| `INDEXER_SERVICE_ETHEREUM` | `--ethereum` | An Ethereum rinkeby node/provider |
173+
| `INDEXER_SERVICE_ETHEREUM_NETWORK` | `--ethereum-network` | `4` (rinkeby) |
174+
| `INDEXER_SERVICE_INDEXER_ADDRESS` | `--indexer-address` | Ethereum address of testnet indexer |
175+
| `INDEXER_SERVICE_MNEMONIC` | `--mnemonic` | Ethereum mnemonic for testnet operator |
176+
| `INDEXER_SERVICE_NETWORK_SUBGRAPH_ENDPOINT` | `--network-subgraph-endpoint` | `https://gateway.testnet.thegraph.com/network` |
177+
| `INDEXER_SERVICE_CLIENT_SIGNER_ADDRESS` | `--client-signer-address` | `0xe1EC4339019eC9628438F8755f847e3023e4ff9c` |
179178

180179
#### Graph Node
181180

182181
| Environment Variable | CLI Argument | Value |
183182
| -------------------- | ---------------- | ----------------------------------- |
184183
| `ethereum` | `--ethereum-rpc` | `mainnet:...` |
185-
| `ipfs` | `--ipfs` | `https://ipfs.testnet.thegraph.com` |
186-
187-
#### Vector Node
188-
189-
| Environment Variable | Value |
190-
| -------------------- | -------------------------------------------------------------------- |
191-
| `VECTOR_PROD` | `true` |
192-
| `VECTOR_MNEMONIC` | e.g. same as `INDEXER_SERVICE_MNEMONIC` and `INDEXER_AGENT_MNEMONIC` |
193-
| `VECTOR_PG_HOST` | e.g. same as `INDEXER_SERVICE_POSTGRES_HOST` |
194-
| `VECTOR_PG_PORT` | e.g. `5432` |
195-
| `VECTOR_PG_USERNAME` | e.g. same as `INDEXER_SERVICE_POSTGRES_USERNAME` |
196-
| `VECTOR_PG_PASSWORD` | e.g. same as `INDEXER_SERVICE_POSTGRES_PASSWORD` |
197-
| `VECTOR_PG_DATABASE` | e.g. `vector` |
198-
| `VECTOR_CONFIG` | see below |
199-
200-
The `VECTOR_CONFIG` variable should be a JSON string that contains the following:
201-
202-
```json
203-
{
204-
"adminToken": "<secret token of your choice, keep to yourself>",
205-
"chainProviders": {
206-
"4": "<some rinkeby Ethereum node/provider"
207-
},
208-
"nodeUrl": "<internal URL of the Vector node in your infrastructure>",
209-
"logLevel": "info",
210-
"natsUrl": "nats://nats1.connext.provide.network:4222,nats://nats2.connext.provide.network:4222,nats://nats3.connext.provide.network:4222",
211-
"authUrl": "https://messaging.connext.network",
212-
"messagingUrl": "https://messaging.connext.network",
213-
"production": true,
214-
"baseGasSubsidyPercentage": 0,
215-
"allowedSwaps": [],
216-
"skipCheckIn": true,
217-
"mnemonic": "<the same as INDEXER_AGENT_MNEMONIC>"
218-
}
219-
```
184+
| `ipfs` | `--ipfs` | `https://ipfs.network.thegraph.com` |

0 commit comments

Comments
 (0)