Pulling from https://chainid.network/chains_mini.json the json is parsed.
Each record has a shortName
and chainId
which is used to build each enum.
The names are formatted and written to a file.
Once the networks.py
file has been created, it can be copied to the repo and changes can be pushed.