From aa7cc8b4ff6c91e9c0a5721b8c7afbb05cbc221c Mon Sep 17 00:00:00 2001 From: Matvey Date: Tue, 5 Apr 2022 19:38:14 +0300 Subject: [PATCH 1/4] Update README.md --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 9514d6c2..014b7f7e 100644 --- a/README.md +++ b/README.md @@ -73,17 +73,11 @@ $ cargo build --release To connect NEAR Indexer for Explorer to the specific chain you need to have necessary configs, you can generate it as follows: ```bash -$ ./target/release/near-indexer --home-dir ~/.near/testnet init --chain-id testnet --download-config --download-genesis +$ ./target/release/indexer-explorer --home-dir ~/.near/testnet init --chain-id testnet --download-config --download-genesis ``` The above code will download the official genesis config and generate necessary configs. You can replace `testnet` in the command above to different network ID (`betanet`, `mainnet`). -**NB!** According to changes in `nearcore` config generation we don't fill all the necessary fields in the config file. -While this issue is open https://github.com/nearprotocol/nearcore/issues/3156 you need to download config you want and replace the generated one manually. - - [testnet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/config.json) - - [betanet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/betanet/config.json) - - [mainnet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/mainnet/config.json) - Configs for the specified network are in the `--home-dir` provided folder. We need to ensure that NEAR Indexer for Explorer follows all the necessary shards, so `"tracked_shards"` parameters in `~/.near/testnet/config.json` needs to be configured properly. For example, with a single shared network, you just add the shard #0 to the list: From d7dcbd451fb8fcc82820057116c255a98a325e39 Mon Sep 17 00:00:00 2001 From: Matvey Date: Tue, 5 Apr 2022 22:13:17 +0300 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 014b7f7e..4cae2fcf 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ $ cargo build --release To connect NEAR Indexer for Explorer to the specific chain you need to have necessary configs, you can generate it as follows: ```bash -$ ./target/release/indexer-explorer --home-dir ~/.near/testnet init --chain-id testnet --download-config --download-genesis +$ ./target/release/near-indexer --home-dir ~/.near/testnet init --chain-id testnet --download-config --download-genesis ``` The above code will download the official genesis config and generate necessary configs. You can replace `testnet` in the command above to different network ID (`betanet`, `mainnet`). From b5960669dab3172bd52430cc017da42cd9e788d6 Mon Sep 17 00:00:00 2001 From: Matvey Date: Wed, 6 Apr 2022 15:24:40 +0300 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cae2fcf..9cb1029d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ NEAR runs the indexer and maintains it for [NEAR Explorer](https://github.com/ne WARNING: We may evolve the data schemas, so make sure you follow the release notes of this repository. -NOTE: Please, keep in mind that the access to the database is shared across everyone in the world, so it is better to make sure you limit the amount of queris and individual queries are efficient. +NOTE: Please, keep in mind that the access to the database is shared across everyone in the world, so it is better to make sure you limit the amount of queries and individual queries are efficient. ## Self-hosting From 43cd7f47750b3fcb94f70862d46206164e60f2ac Mon Sep 17 00:00:00 2001 From: Matvey Date: Sun, 10 Apr 2022 17:26:23 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9cb1029d..84f47280 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,11 @@ $ ./target/release/near-indexer --home-dir ~/.near/testnet init --chain-id testn The above code will download the official genesis config and generate necessary configs. You can replace `testnet` in the command above to different network ID (`betanet`, `mainnet`). +These are the default config files that one could use just for the reference: + - [testnet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/config.json) + - [betanet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/betanet/config.json) + - [mainnet config.json](https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/mainnet/config.json) + Configs for the specified network are in the `--home-dir` provided folder. We need to ensure that NEAR Indexer for Explorer follows all the necessary shards, so `"tracked_shards"` parameters in `~/.near/testnet/config.json` needs to be configured properly. For example, with a single shared network, you just add the shard #0 to the list: