[CRE-491] Move llo EVM-specific files to chainlink-evm#478
Merged
Conversation
Contributor
✅ API Diff Results -
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR moves LLO (Low Latency Oracle) EVM-specific components into chainlink-evm to support downstream integration with the main chainlink repo (per linked PR). It introduces the channel definition cache implementation (static + on-chain), a chain-scoped ORM for persistence, accompanying tests, and updates module dependencies accordingly.
Changes:
- Add LLO channel definition cache implementation and factory (static JSON cache + on-chain event-driven cache).
- Add chain-scoped ORM for persisting/loading channel definitions, plus unit tests.
- Update
go.mod/go.sum(andpkg/Makefilechainlink/v2 pin) to include required dependencies (notablychainlink-data-streams).
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/Makefile | Updates the pinned chainlink/v2 commit used by testdb preparation. |
| pkg/llo/orm.go | Adds chain-scoped ORM implementing channel definitions persistence/load/cleanup. |
| pkg/llo/orm_test.go | Adds DB-backed tests validating ORM behavior across chain selectors/addresses/donIDs. |
| pkg/llo/channeldefinitions/static_channel_definitions_cache.go | Adds a static (JSON-backed) channel definition cache implementation. |
| pkg/llo/channeldefinitions/onchain_channel_definition_cache.go | Adds on-chain log-driven channel definition cache, merge logic, persistence loop, and helpers. |
| pkg/llo/channeldefinitions/onchain_channel_definition_cache_test.go | Adds extensive unit tests for fetching, merging rules, persistence, and edge cases. |
| pkg/llo/channeldefinitions/channel_definition_cache_factory.go | Adds a factory that selects static vs on-chain cache based on plugin config. |
| pkg/llo/channeldefinitions/channel_definition_cache_factory_test.go | Adds tests for factory selection behavior. |
| go.mod | Bumps and adds dependencies required for moved LLO components (incl. chainlink-data-streams). |
| go.sum | Updates checksums for the dependency changes. |
| go.md | Updates dependency diagram to reflect new relationships (via chainlink-data-streams). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jmank88
approved these changes
May 21, 2026
george-dorin
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supports smartcontractkit/chainlink#22586