Skip to content

Conversation

@giogam
Copy link
Contributor

@giogam giogam commented Aug 27, 2025

This PR updates LoadNetworks to support the newly introduced domain config at /domains/.config/domain.yaml.

Behavior:

  • No config file → use existing logic.
  • Config present & valid for the environment → load network_types from the config.
  • Config present but invalid for the environment → fall back to existing logic.

The legacy logic based on predefined environment names will remain for backward compatibility until the migration to the new configuration is complete, after which it will be deprecated.

@changeset-bot
Copy link

changeset-bot bot commented Aug 27, 2025

🦋 Changeset detected

Latest commit: 5680f34

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@giogam giogam changed the title Cld 505/update chainlink deployments to load network access config feat: load network types from domain config Aug 27, 2025
@cl-sonarqube-production
Copy link

}

// getLegacyNetworkTypes returns network types based on legacy switch logic.
func getLegacyNetworkTypes(env string, domain cldf_domain.Domain, lggr logger.Logger) ([]cldf_config_network.NetworkType, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current logic has been moved into its own method.

@giogam giogam marked this pull request as ready for review August 28, 2025 07:58
@giogam giogam requested a review from a team as a code owner August 28, 2025 07:58
@giogam giogam changed the title feat: load network types from domain config feat: load network_types from domain config Aug 28, 2025
@giogam giogam changed the title feat: load network_types from domain config feat: load network_types from domain config Aug 28, 2025
@giogam giogam added this pull request to the merge queue Aug 28, 2025
Merged via the queue into main with commit d207c3b Aug 28, 2025
14 checks passed
@giogam giogam deleted the CLD-505/update-chainlink-deployments-to-load-network-access-config branch August 28, 2025 16:41
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## chainlink-deployments-framework@0.37.1

### Patch Changes

-
[#338](#338)
[`d207c3b`](d207c3b)
Thanks [@giogam](https://github.com/giogam)! - feat: load network types
from domain config

-
[#344](#344)
[`cf1cc45`](cf1cc45)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! -
fix(operations): handle missing case causing Operations APi unable to
serialize certain Marshalable struct

-
[#345](#345)
[`ba11ea0`](ba11ea0)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! -
Migrated Dry Run JD Client from CLD

---------

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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.

2 participants