This PR moves the network info from env vars to a TypeScript object. This makes it way easier to work with the networks.
Changes:
Deleted ENTRIES, VL_MAIN, VL_TEST, VL_DEV env vars, and added MAINNET_P2P_ENTRY
Moved all the network data to a TypeScript object/module
Handled all cascading effects (which simplified a lot of the code)
Context of Change
It's hard to add networks or modify the set of networks when their data is stored in environment variables. It's all public information and doesn't need to be hidden.
Type of Change
[x] Refactor (non-breaking change that only restructures code)
High Level Overview of Change
This PR moves the network info from env vars to a TypeScript object. This makes it way easier to work with the networks.
Changes:
ENTRIES
,VL_MAIN
,VL_TEST
,VL_DEV
env vars, and addedMAINNET_P2P_ENTRY
Context of Change
It's hard to add networks or modify the set of networks when their data is stored in environment variables. It's all public information and doesn't need to be hidden.
Type of Change
Before / After
Test Plan
CI passes.