Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Resolves #110
I had to refactor the API helpers and introduce more configuration options via environment variables on both the frontend and the backend sides. The routing is done by having different domain names (explorer.nearprotocol.com, explorer.staging.nearprotocol.com, ...) matched to the relevant near networks (specifically, RPC endpoints). Ultimately, a single frontend server instance and a single WAMP router instance handle all networks, but I have chosen to run backend servers independently for each network (yet, they are deployed into a single Docker container on Render.com, since there are enough resources to handle all those, and it is easier to maintain).
@deacix This PR introduces breaking changes in
frontend/src/libraries/explorer-wamp
. You should be good to go with a simple change like this:into
I wrapped the standalone methods into classes to handle multinet on the server side.
Let me know if you need any assistance.
/cc @kcole16