Skip to content

chore: move lz contracts#446

Open
mani99brar wants to merge 1 commit intodevfrom
chore/move-lz
Open

chore: move lz contracts#446
mani99brar wants to merge 1 commit intodevfrom
chore/move-lz

Conversation

@mani99brar
Copy link
Copy Markdown
Contributor

@mani99brar mani99brar commented May 5, 2026

PR-Codex overview

This PR focuses on restructuring the file paths for LayerZeroReporter and LayerZeroAdapter, moving them to an adapters directory. It also updates import statements in several scripts and modifies imports in the LayerZeroAdapter and LayerZeroReporter files.

Detailed summary

  • Changed import path for LayerZeroReporter in scripts from ../../src/layerZero/LayerZeroReporter.sol to ../../src/adapters/layerZero/LayerZeroReporter.sol.
  • Changed import path for LayerZeroAdapter in scripts from ../../src/layerZero/LayerZeroAdapter.sol to ../../src/adapters/layerZero/LayerZeroAdapter.sol.
  • Updated import in LayerZeroAdapter.sol from @hashi/adapters/Adapter.sol to ../Adapter.sol.
  • Updated import in LayerZeroReporter.sol from @hashi/adapters/Reporter.sol to ../Reporter.sol.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Refactor
    • Internal restructuring of LayerZero adapter component dependencies to improve code organization and maintainability. All contract functionality remains unchanged with no impact on user-facing features or capabilities.

@mani99brar mani99brar requested a review from jaybuidl as a code owner May 5, 2026 05:50
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for veascan ready!

Name Link
🔨 Latest commit a0a8ce5
🔍 Latest deploy log https://app.netlify.com/projects/veascan/deploys/69f9853785923d00087389ee
😎 Deploy Preview https://deploy-preview-446--veascan.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 5, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a3cc9077-7aba-410e-a9f2-72a026fff9f8

📥 Commits

Reviewing files that changed from the base of the PR and between f0be2a1 and a0a8ce5.

📒 Files selected for processing (8)
  • veashi-contracts/script/layerZero/ConfigureLZReporter.s.sol
  • veashi-contracts/script/layerZero/DeployLZAdapter.s.sol
  • veashi-contracts/script/layerZero/DeployLZReporter.s.sol
  • veashi-contracts/src/adapters/layerZero/LayerZeroAdapter.sol
  • veashi-contracts/src/adapters/layerZero/LayerZeroReporter.sol
  • veashi-contracts/src/adapters/layerZero/interfaces/ILayerZeroEndpoint.sol
  • veashi-contracts/src/adapters/layerZero/interfaces/ILayerZeroEndpointV2.sol
  • veashi-contracts/src/adapters/layerZero/interfaces/ILayerZeroReceiver.sol

Walkthrough

This PR reorganizes LayerZero adapter and reporter contracts into a dedicated adapters subdirectory, updating all corresponding import statements to reference the new file locations. Five files are modified: two source contracts update base class imports from external module paths to local relative paths, and three deployment scripts update their contract imports to the new directory structure.

Changes

LayerZero Adapter & Reporter Reorganization

Layer / File(s) Summary
Base Class Imports
src/adapters/layerZero/LayerZeroAdapter.sol, src/adapters/layerZero/LayerZeroReporter.sol
Adapter and Reporter base class imports updated from @hashi/adapters/ to local relative paths (../Adapter.sol, ../Reporter.sol).
Script Wiring
script/layerZero/ConfigureLZReporter.s.sol, script/layerZero/DeployLZAdapter.s.sol, script/layerZero/DeployLZReporter.s.sol
Deployment and configuration scripts updated to import LayerZeroAdapter and LayerZeroReporter from their new src/adapters/layerZero/ directory structure.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit hops through folders neat,
Moving adapters to their seat,
Import paths dance left and right,
Directory trees shine oh so bright! 🐰✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: move lz contracts' accurately and specifically describes the main change—relocating LayerZero contracts to an adapters subdirectory. It is concise, clear, and matches the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/move-lz

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

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.

1 participant