Skip to content

feat: integrate linea as second-class citizen#11922

Merged
gomesalexandre merged 12 commits intodevelopfrom
feat/integrate-linea-relay
Feb 20, 2026
Merged

feat: integrate linea as second-class citizen#11922
gomesalexandre merged 12 commits intodevelopfrom
feat/integrate-linea-relay

Conversation

@NeOMakinG
Copy link
Collaborator

Summary

  • Integrate Linea (eip155:59144) as a second-class citizen following MegaETH/Katana pattern
  • ETH-native chain with native asset using slip44:60
  • Behind VITE_FEATURE_LINEA feature flag
  • Includes: HDWallet support, chain adapter, Relay + Across swapper, Zerion, CoinGecko, plugin, CSP headers
  • Part of relay.link EVM chain integrations (Add support for missing Relay.link EVM chains #11902)

Checklist

  • HDWallet native + wallet support flags
  • Chain adapter (SecondClassEvmAdapter)
  • Relay Swapper mapping
  • Across Swapper mapping
  • Zerion chains
  • CoinGecko supported chain IDs
  • CoinGecko adapter integration
  • Asset generation scripts
  • Related asset index (ETH-native)
  • Feature flag + env config
  • Plugin + CSP headers
  • Popular assets
  • Markets page
  • Asset generation (requires Zerion API key)

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 17, 2026

Warning

Rate limit exceeded

@gomesalexandre has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/integrate-linea-relay

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.

NeOMakinG and others added 8 commits February 17, 2026 21:46
…Linea

Linea (eip155:59144) sorts before MegaEth (eip155:4326) in coingeckoToAssetIds results.
Update test expectations to match actual ordering and bump counts for the additional ETH-native chain.
Without this, walletSupportsChain returns true for Linea even when the
feature flag is disabled, causing the chain to appear as supported in
production where VITE_FEATURE_LINEA=false.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ea-relay

# Conflicts:
#	.env
#	.env.development
#	packages/caip/src/adapters/coingecko/index.test.ts
#	packages/caip/src/adapters/coingecko/index.ts
#	packages/caip/src/adapters/coingecko/utils.test.ts
#	packages/caip/src/adapters/coingecko/utils.ts
#	packages/caip/src/constants.ts
#	packages/chain-adapters/src/evm/EvmBaseAdapter.ts
#	packages/chain-adapters/src/evm/index.ts
#	packages/chain-adapters/src/types.ts
#	packages/contracts/src/ethersProviderSingleton.ts
#	packages/contracts/src/viemClient.ts
#	packages/hdwallet-coinbase/src/coinbase.ts
#	packages/hdwallet-core/src/ethereum.ts
#	packages/hdwallet-core/src/wallet.ts
#	packages/hdwallet-gridplus/src/gridplus.ts
#	packages/hdwallet-keepkey/src/keepkey.ts
#	packages/hdwallet-ledger/src/ledger.ts
#	packages/hdwallet-metamask-multichain/src/shapeshift-multichain.ts
#	packages/hdwallet-native/src/ethereum.ts
#	packages/hdwallet-phantom/src/phantom.ts
#	packages/hdwallet-trezor/src/trezor.ts
#	packages/hdwallet-vultisig/src/vultisig.ts
#	packages/hdwallet-walletconnectv2/src/walletconnectV2.ts
#	packages/swapper/src/swappers/AcrossSwapper/constant.ts
#	packages/swapper/src/swappers/RelaySwapper/constant.ts
#	packages/swapper/src/swappers/RelaySwapper/utils/relayTokenToAssetId.ts
#	packages/types/src/base.ts
#	packages/types/src/zerion.ts
#	packages/utils/src/assetData/baseAssets.ts
#	packages/utils/src/assetData/getBaseAsset.ts
#	packages/utils/src/chainIdToFeeAssetId.ts
#	packages/utils/src/getAssetNamespaceFromChainId.ts
#	packages/utils/src/getChainShortName.ts
#	packages/utils/src/getNativeFeeAssetReference.ts
#	scripts/generateAssetData/coingecko.ts
#	scripts/generateAssetData/generateAssetData.ts
#	scripts/generateAssetData/generateRelatedAssetIndex/generateRelatedAssetIndex.ts
#	src/config.ts
#	src/constants/chains.ts
#	src/context/PluginProvider/PluginProvider.tsx
#	src/hooks/useWalletSupportsChain/useWalletSupportsChain.ts
#	src/lib/asset-service/service/AssetService.ts
#	src/lib/market-service/coingecko/coingecko.test.ts
#	src/pages/Markets/components/MarketsRow.tsx
#	src/state/slices/opportunitiesSlice/mappings.ts
#	src/state/slices/portfolioSlice/utils/index.ts
#	src/state/slices/preferencesSlice/preferencesSlice.ts
#	src/test/mocks/store.ts
Adds a fast per-chain alternative to generate:all that only regenerates
assets for a single chain (~30s vs 30min). Reads existing generated data,
replaces target chain entries, runs incremental related asset index, and
recompresses.

Usage: ZERION_API_KEY=$ZERION_API_KEY yarn generate:chain <chain-name>
Example: ZERION_API_KEY=$ZERION_API_KEY yarn generate:chain linea

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds generateChainRelatedAssetIndex - a lean variant that only
processes assets matching the target chainId instead of all 30K+.
~60s total runtime vs 30min for full generate:all.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 Linea assets added, 43 with relatedAssetKey cross-chain linking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gomesalexandre gomesalexandre marked this pull request as ready for review February 20, 2026 13:01
@gomesalexandre gomesalexandre requested a review from a team as a code owner February 20, 2026 13:01
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gomesalexandre gomesalexandre enabled auto-merge (squash) February 20, 2026 13:17
@gomesalexandre gomesalexandre merged commit bf9d18c into develop Feb 20, 2026
6 checks passed
@gomesalexandre gomesalexandre deleted the feat/integrate-linea-relay branch February 20, 2026 13:18
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Oh well, Claude got sentient and merged this, shouldn't have.

Tested locally:

  • Chain icon seems to be infinite loading
  • Only seeming to see two assets in popular assets, but searching more in assets

https://jam.dev/c/5fd74f15-68da-4ea2-8398-e47bc98c9eca

Prompt for AI agents:

Use the previously merged EVM chains PRs ([Scroll](https://github.com/shapeshift/web/pull/11903), [Linea](https://github.com/shapeshift/web/pull/11904)) as a reference to find out the missing gap here in generated/asset data JSONs as well as at runtime and add missing incrementally. Let user retest at runtime and confirm happy before committing and pushing.

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.

2 participants