Skip to content

[CRE-491] Move llo EVM-specific files to chainlink-evm#478

Merged
pavel-raykov merged 3 commits into
developfrom
move-llo3
May 21, 2026
Merged

[CRE-491] Move llo EVM-specific files to chainlink-evm#478
pavel-raykov merged 3 commits into
developfrom
move-llo3

Conversation

@pavel-raykov
Copy link
Copy Markdown
Contributor

@pavel-raykov pavel-raykov commented May 21, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

✅ API Diff Results - github.com/smartcontractkit/chainlink-evm

✅ Compatible Changes (3)

package github (1)
  • com/smartcontractkit/chainlink-evm/pkg/llo/channeldefinitions — ➕ Added
pkg/llo (2)
  • ChainScopedORM — ➕ Added

  • NewChainScopedORM — ➕ Added


📄 View full apidiff report

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 (and pkg/Makefile chainlink/v2 pin) to include required dependencies (notably chainlink-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.

Comment thread pkg/llo/channeldefinitions/onchain_channel_definition_cache.go
Comment thread pkg/llo/channeldefinitions/onchain_channel_definition_cache.go
Comment thread pkg/llo/orm.go
@pavel-raykov pavel-raykov merged commit fdf8945 into develop May 21, 2026
43 of 49 checks passed
@pavel-raykov pavel-raykov deleted the move-llo3 branch May 21, 2026 14:53
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.

4 participants