From 6a4631d2152439de9dfe3ffc19066617a67b4372 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Mon, 13 Feb 2023 13:43:18 +0300 Subject: [PATCH] add macOS readme message (#1697) * add readme message, update subgraph port * update ip s add readme updates * remove unwanted readme line * update readme message * fix aqua url * Update README.md Co-authored-by: Matthias Kretschmann --------- Co-authored-by: Matthias Kretschmann --- README.md | 2 ++ src/config/ConfigHelper.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fe16c3dd..0e16b512 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ npm run test:integration npm run test:integration:cover ``` +> Note: On macOS, changes to the `provider`, `metadataCache` and `subgraph` URLs are required, as their default `barge` IPs can not be accessed due to network constraints on macOS. Instead use `http://127.0.0.1` for each direct call to the mentioned services, but keep the internal `provider` URL (`http://172.15.0.4:8030`) hardcoded inside all DDO's `serviceEndpoint`, and when calling `nft.setMetadata()`. + ## 🛳 Production To create a production build, run from the root of the project: diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index 78f053f4..cd92d4f1 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -31,9 +31,9 @@ export const configHelperNetworks: Config[] = [ ...configHelperNetworksBase, chainId: 8996, network: 'development', - metadataCacheUri: 'http://172.15.0.5:5000', - providerUri: 'http://172.15.0.4:8030', - subgraphUri: 'https://172.15.0.15:9000' + metadataCacheUri: 'http://172.15.0.5:5000', // use http://127.0.0.1:5000/ if running on macOS + providerUri: 'http://172.15.0.4:8030', // use http://127.0.0.1:8030/ if running on macOS + subgraphUri: 'https://172.15.0.15:8000' // use http://127.0.0.1:9000/ if running on macOS }, { ...configHelperNetworksBase,