feat: integrate linea as second-class citizen#11922
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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)
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. Comment |
…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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gomesalexandre
left a comment
There was a problem hiding this comment.
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.
Summary
VITE_FEATURE_LINEAfeature flagChecklist