dcgtc / dgrants

Decentralized Grant platform that implements quadratic funding.
GNU Affero General Public License v3.0
84 stars 39 forks source link

feat: adds `CHAIN_INFO` overrides for production envs #540

Closed gdixon closed 2 years ago

gdixon commented 2 years ago

This PR will add CHAIN_INFO overrides for production envs (to be set in the .env file - detailed in .env.template).

The following can be defined in the .env file, which will allow us to override the CHAIN_INFO for the selected (VITE_DGRANTS_CHAIN_ID) chain:

VITE_GRANT_REGISTRY=
VITE_GRANT_ROUND_MANAGER=
VITE_DEFAULT_RPC_URL=
VITE_SUBGRAPH_URL=
VITE_START_BLOCK=

--

Closes: #514

thelostone-mc commented 2 years ago

So just to we'd set this only on prod and we default these values on chains.ts (which would be staging values) ? @phutchins / @apbendi

VITE_GRANT_REGISTRY_CONTRACT=
VITE_GRANT_ROUND_MANAGER=
VITE_DEFAULT_RPC_URL=
VITE_SUBGRAPH_URL=
VITE_START_BLOCK=