dm3
dm3 copied to clipboard
Make networks configurable only using .env
Ideally, the configuration of networks could be moved to the environment, allowing all necessary configurations to be managed from the .env file. This would eliminate the need to manually change network settings in the frontend client when switching between staging and production.
- [x] Add fields to the network to add mainnet and genome related information (chainId,rpc,name)
- [x] Add the related fields to Config interface and supply them wherever <DM3> is used
- [x] use the values from the Config obj in useMainnetProvider.tsx and Home.tsx to configure the networks
- [x] Apply the changes needed to the CI so staging and production build are passing the right env to the build