across-snowbridge: route + builder for L2 → Hydration#320
Open
mrq1911 wants to merge 22 commits into
Open
Conversation
…quoter; across api at build time
6 tasks
🦋 Changeset detectedLatest commit: cf5318e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
🧚 Live preview: galacticcouncil/hydration-ui#3800 |
mrq1911
had a problem deploying
to
upgrade-ui-master
May 12, 2026 22:07 — with
GitHub Actions
Failure
mrq1911
had a problem deploying
to
upgrade-ui-master
May 13, 2026 10:08 — with
GitHub Actions
Failure
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.
Summary
Adds an end-to-end Across-Snowbridge bridge-of-bridges route: Across V3 fast-fill on a supported L2 (Base) → Snowfork's deployed
SnowbridgeL2Adaptor.sendTokenAndCallon the L2 → AcrossMulticallHandleron Ethereum → Uniswap V3 swap to fund the Snowbridge fee →Gateway.v2_sendMessage→ AssetHub → XCMInitiateTransferto Hydration.Based on
feat/snowbridge-v2to reuse the native polkadot-api XCM construction; no runtime dep on@snowbridge/api.Commits
xc-coreAcross primitive + L1/L2 Adaptor ABIs + Arb/Op chain configsxc-cfgAcross-Snowbridge builder (sendTokenAndCall+sendEtherAndCall)FeeAmountBuilder.AcrossSnowbridge.calculateFee/suggested-feesHTTPS call at contract build timeTag.Across_SnowbridgeTest plan
Unit:
npm testinpackages/xc-core(26 specs) andpackages/xc-cfg(26 specs) — all green.Live preflight checks (run from CLI):
/suggested-fees— passes; 100 USDC Base→Eth returns relayer fee306,761(~0.31 USDC), fill time 2s, SpokePool addresses match our chain configs.500valid on Ethereum mainnet,quoteExactOutputSinglereturns sane price.Chopsticks XCM dry-run (in
integration-tests/xc-test):Forks AssetHub + Hydration via chopsticks, builds the contract call, decodes
SendParams.xcm, runsXcmPaymentApi.query_xcm_weighton both chains. 5/5 pass in ~37 s with:Confirms the V5 XCM bytes decode cleanly and every instruction's weighter resolves on both chains.
What's deferred (follow-up PRs)
sendTokenAndCallsimulation — last remaining preflight gate before mainnet canaryxc-cfg/chains/evm/arbitrum.ts,optimism.ts) andSWAP_REGISTRYincludes USDC entries, but no route wiring yetSnowbridgeL1Adaptor.depositTokenbuilder — gated on L1Adaptor funding-model decisionRebase note
Sits on
feat/snowbridge-v2. Once that merges tomaster, this rebases cleanly onto master with no expected conflicts.