Skip to content

Deploy network somnia - #1759

Merged
0xDEnYO merged 8 commits into
mainfrom
deploy-network-somnia-exp-396
May 15, 2026
Merged

0xDEnYO merged 8 commits into
mainfrom
deploy-network-somnia-exp-396

Conversation

@0xDEnYO

@0xDEnYO 0xDEnYO commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Which Linear task belongs to this PR?

https://linear.app/lifi-linear/issue/EXSC-232/sc-deploy-sc-core-setup

Why did I implement it this way?

Checklist before requesting a review

Checklist for reviewer (DO NOT DEPLOY and contracts BEFORE CHECKING THIS!!!)

  • I have checked that any arbitrary calls to external contracts are validated and or restricted
  • I have checked that any privileged calls (i.e. storage modifications) are validated and or restricted
  • I have ensured that any new contracts have had AT A MINIMUM 1 preliminary audit conducted on by <company/auditor>

@lifi-action-bot
lifi-action-bot marked this pull request as draft May 6, 2026 05:55
@coderabbitai

coderabbitai Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 6b1988c9-efb8-4a5e-8e02-81d32e313698

📥 Commits

Reviewing files that changed from the base of the PR and between 78f7dd7 and 95adeba.

📒 Files selected for processing (10)
  • config/gaszip.json
  • config/networks.json
  • config/permit2Proxy.json
  • config/relay.json
  • config/whitelist.json
  • deployments/somnia.diamond.json
  • deployments/somnia.json
  • foundry.toml
  • script/deploy/_targetState.json
  • test/solidity/Periphery/Patcher.t.sol
✅ Files skipped from review due to trivial changes (2)
  • test/solidity/Periphery/Patcher.t.sol
  • deployments/somnia.diamond.json
🚧 Files skipped from review as they are similar to previous changes (5)
  • config/relay.json
  • config/networks.json
  • foundry.toml
  • script/deploy/_targetState.json
  • config/permit2Proxy.json

Walkthrough

This PR adds Somnia network onboarding: periphery whitelist entries, a gasZip router mapping, and Somnia deployment address mappings for facets and periphery (chainId 5031).

Changes

Somnia Network Onboarding

Layer / File(s) Summary
Periphery whitelist
config/whitelist.json
Adds PERIPHERY.somnia with addresses and function selector→signature mappings for FeeCollector, FeeForwarder, GasZipPeriphery, TokenWrapper, and LiFiDEXAggregator.
Deployment mappings
deployments/somnia.json
Adds Somnia facet and periphery address mapping JSON (includes GasZipFacet and GasZipPeriphery).
GasZip router
config/gaszip.json
Adds gasZipRouters.somnia with its router address.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

waitForAudit

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Deploy network somnia' clearly and specifically describes the main change: adding configuration and deployment files for a new blockchain network named somnia.
Description check ✅ Passed The description includes the Linear task reference and completes most checklist items, but the 'Why did I implement it this way?' section is empty, and several critical reviewer checklist items remain unchecked.
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 deploy-network-somnia-exp-396

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@lifi-action-bot lifi-action-bot changed the title Deploy network somnia Deploy network somnia May 6, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@script/deploy/_targetState.json`:
- Around line 2443-2466: The somnia target state in _targetState.json is out of
sync with the actual deployed artifact (deployments/somnia.diamond.json):
entries like WhitelistManagerFacet are present in the deployed diamond but
missing from the somnia target set, while GasZipFacet/GasZipPeriphery appear in
_targetState.json but are not in the deployed artifact. Update the somnia target
set in _targetState.json to match the intended production diamond state (add
missing facets such as WhitelistManagerFacet and remove or correct any GasZip*
entries as appropriate) so that the listings align exactly with
deployments/somnia.diamond.json before merging.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 23582d58-9c9a-412a-8381-83f6c5a4a854

📥 Commits

Reviewing files that changed from the base of the PR and between c5abecd and 78f7dd7.

📒 Files selected for processing (9)
  • config/networks.json
  • config/permit2Proxy.json
  • config/relay.json
  • config/stargateV2.json
  • config/whitelist.json
  • deployments/somnia.diamond.json
  • deployments/somnia.json
  • foundry.toml
  • script/deploy/_targetState.json

Comment thread script/deploy/_targetState.json
@0xDEnYO
0xDEnYO marked this pull request as ready for review May 15, 2026 05:30
@0xDEnYO
0xDEnYO enabled auto-merge (squash) May 15, 2026 05:39
@lifi-action-bot

Copy link
Copy Markdown
Collaborator

Test Coverage Report

Line Coverage: 88.07% (3206 / 3640 lines)
Function Coverage: 90.53% ( 488 / 539 functions)
Branch Coverage: 71.30% ( 594 / 833 branches)
Test coverage (88.07%) is above min threshold (83%). Check passed.

@0xDEnYO
0xDEnYO merged commit 3eca285 into main May 15, 2026
28 of 32 checks passed
@0xDEnYO
0xDEnYO deleted the deploy-network-somnia-exp-396 branch May 15, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants