-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Why
Right now, all backend services expect RPC_NODE_ENDPOINT (write) env variable and use this REST_API_NODE_URL(read) to talk to blockchain but provider-proxy relies on local packages/net package data (which is fetched on every commit from https://github.com/akash-network/net). And this makes it impossible to provide a custom proxy option. Right now, we want to switch provider-proxy to use our own rpc proxy which ensures that request is delivered to healthy blockchain node
What
- Add
REST_API_NODE_URLenv variable to provider-proxy - Add
.env.sampleput the value from https://github.com/akash-network/net/blob/main/sandbox-2/meta.json#L52C21-L52C26 and a link to https://github.com/akash-network/net in comment to look for other values - Add
.env.mainnetand.env.sandboxwith corresponding values from https://github.com/akash-network/net - Use
REST_API_NODE_URLand removechainNetworkandnetworkparameter from proxy requests https://github.com/akash-network/console/blob/main/apps/provider-proxy/src/utils/schema.ts#L26 - Adjust deploy-web to create a new instance of
ProviderProxyServicewhen network changes (usenetworkStore.selectedNetworkId). Network change happens with page reload. Add corresponding env variables like it's done for api https://github.com/akash-network/console/blob/main/apps/deploy-web/env/.env#L16-L18
Metadata
Metadata
Assignees
Labels
No labels