This is a cleanup PR that reduces code smell in several areas.
Converts some local files into ES modules instead of commonJS modules, including:
config.ts
errordefinitions.ts was reworked for typing.
Improves regtest support
regtestEnabled is now configurable by chain
v8.ts takes regtest into account
Address validation for regtest addresses for a testnet wallet ifregtestEnabled is true.
In blockchainexplorer.ts, the PROVIDERS was weird in that validation was done on it even if the opts would overwrite it. This PR makes the PROVIDERS a true fallback to the config.
This is a cleanup PR that reduces code smell in several areas.
regtestEnabled
is now configurable by chainv8.ts
takes regtest into accountregtestEnabled
is true.blockchainexplorer.ts
, thePROVIDERS
was weird in that validation was done on it even if the opts would overwrite it. This PR makes thePROVIDERS
a true fallback to the config.v8.ts
consistent.