-
Notifications
You must be signed in to change notification settings - Fork 46
feat: experimental networks #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
15b96d0 to
24aa2b8
Compare
a5fc744 to
f4345b3
Compare
098bd47 to
85fe30f
Compare
| export const getId = (idOrName, { allowExperimentalNetworks = false } = {}) => | ||
| networkConfigs | ||
| .filter( | ||
| ({ isExperimental }) => | ||
| allowExperimentalNetworks || isExperimental === false, | ||
| ) | ||
| .find(({ id, name }) => idOrName === name || `${idOrName}` === `${id}`)?.id; | ||
|
|
||
| export const getChainDefaults = ( | ||
| id, | ||
| { allowExperimentalNetworks = false } = {}, | ||
| ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the feeling that these two functions could be merged into one. Would it be worth doing ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, the project being 7 years old and in plain JS, a refactor can be quite touchy, I'll not do this without a strong reason
Co-authored-by: Robin Le Caignec <[email protected]>
Le-Caignec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Features
Extended default configs with experimental networks default configs
By default, experimental networks are hidden but can be enabled by setting
"allowExperimentalNetworks": truechains.jsonfor the CLIIExecModules (lib)utils.getSignerFromPrivateKey(network, options)(lib)Added
arbitrum-sepolia-testnetas the first experimental networkMisc