From c4cfc0c0b6019fc5c1291ff5d03527aa1e218f3f Mon Sep 17 00:00:00 2001 From: hopeyen Date: Tue, 2 Apr 2024 09:04:01 -0700 Subject: [PATCH] docs: address feedback in examples and default values --- docs/client_guide.md | 4 ++-- docs/publisher_guide.md | 2 +- docs/server_guide.md | 4 ++-- template.toml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/client_guide.md b/docs/client_guide.md index 2aea0d8..b0c4c37 100644 --- a/docs/client_guide.md +++ b/docs/client_guide.md @@ -49,7 +49,7 @@ Download a single file (`--manifest-type`) into local file system (`local-files` $ file-exchange downloader \ --ipfs-hash QmHash \ --manifest-type "File" \ - --indexer-endpoints http://localhost:5678,http://localhost:5677 \ + --indexer-endpoints http://localhost:5678,http://localhost:7600 \ --free-query-auth-token 'Bearer auth_token' \ --network-subgraph https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum-sepolia \ --escrow-subgraph https://api.thegraph.com/subgraphs/name/graphprotocol/scalar-tap-arbitrum-sepolia \ @@ -63,7 +63,7 @@ Download a bundle of files into remote object storage bucket (`object_storage`) ``` $ file-exchange downloader \ --ipfs-hash QmHash \ - --indexer-endpoints http://localhost:5678,http://localhost:5677 \ + --indexer-endpoints http://localhost:5678,http://localhost:7600 \ --mnemonic "seed phrase" \ --verifier 0xfC24cE7a4428A6B89B52645243662A02BA734ECF \ --provider "arbitrum-sepolia-rpc-endpoint" \ diff --git a/docs/publisher_guide.md b/docs/publisher_guide.md index 7f33a7d..48e43a9 100644 --- a/docs/publisher_guide.md +++ b/docs/publisher_guide.md @@ -29,7 +29,7 @@ $ file-exchange publisher \ --file-type flatfiles \ --file-version 0.0.0 \ --description "random flatfiles" \ - local-files --output-dir ./example-file/ + local-files --main-dir ./example-file/ ``` Publishing files/objects stored in a remote s3 bucket diff --git a/docs/server_guide.md b/docs/server_guide.md index e952ec1..a4bf7f6 100644 --- a/docs/server_guide.md +++ b/docs/server_guide.md @@ -72,7 +72,7 @@ Run `sqlx migrate run --source file-service/migrations` CLI with configuration file ``` -cargo run -p file-service -- --config ./file-server/template.toml +cargo run -p file-service -- --config ./template.toml ``` (You might need to set an additional envrionmental variable for logs, `RUST_LOG=file_service=debug`) @@ -116,7 +116,7 @@ Curl query will be similar to the above examples, here we provide an example in ``` mutation{ addBundles(deployments:["QmeD3dRVV6Gs84TRwiNj3tLt9mBEMVqy3GoWm7WN8oDzGz", "QmeaPp764FjQjPB66M9ijmQKmLhwBpHQhA7dEbH2FA1j3v"], - locations:["./example-file", "./example-file"]){ + locations:["/", "/"]){ ipfsHash } } diff --git a/template.toml b/template.toml index 88440f9..21af6cd 100644 --- a/template.toml +++ b/template.toml @@ -7,7 +7,7 @@ default_price_per_byte = 1 ipfs_gateway = "https://ipfs.network.thegraph.com" log_format = "Pretty" [server.storage_method.LocalFiles] -main_dir = "./../example-file" +main_dir = "./example-file" [common] [common.indexer]