Skip to content

Conversation

@PierreJeanjacquot
Copy link
Member

@PierreJeanjacquot PierreJeanjacquot commented Jun 10, 2025

Features

Extended default configs with experimental networks default configs

By default, experimental networks are hidden but can be enabled by setting "allowExperimentalNetworks": true

  • in chains.json for the CLI
  • in the constructor options for IExecModules (lib)
  • in options when creating a signer with utils.getSignerFromPrivateKey(network, options) (lib)

Added arbitrum-sepolia-testnet as the first experimental network

Misc

  • improved stability of flaky tests based on RPC API providers
  • moved default hub address from internal class IExecContractClient

@PierreJeanjacquot PierreJeanjacquot force-pushed the feat/experimental-networks branch from 15b96d0 to 24aa2b8 Compare June 10, 2025 09:06
@PierreJeanjacquot PierreJeanjacquot marked this pull request as ready for review June 17, 2025 10:32
@PierreJeanjacquot PierreJeanjacquot force-pushed the feat/experimental-networks branch from a5fc744 to f4345b3 Compare June 17, 2025 16:21
@PierreJeanjacquot PierreJeanjacquot force-pushed the feat/experimental-networks branch from 098bd47 to 85fe30f Compare June 18, 2025 08:30
Comment on lines 76 to 87
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 } = {},
) => {
Copy link
Contributor

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 ?

Copy link
Member Author

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 Le-Caignec self-requested a review June 19, 2025 10:02
Copy link
Contributor

@Le-Caignec Le-Caignec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PierreJeanjacquot PierreJeanjacquot merged commit 6264a7b into next Jun 19, 2025
5 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the feat/experimental-networks branch June 19, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants