Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .beads/ss-dx5.16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[
{
"id": "ss-dx5.16",
"title": "Integrate Story (chainId: 1514, IP, L1)",
"description": "TVL: $42.4M | RPC: https://mainnet.storyrpc.io | Explorer: https://storyscan.xyz | Token Support: All | Pattern B (RPC-only) | IP blockchain",
"notes": "\nLogo: https://assets.relay.link/icons/1514/light.png (dark: dark.png)\nCoinGecko platform: story\nCoinGecko native ID: story-2 (⚠️ NOT \"story\"!)\nArch: L1 (IP/Intellectual Property blockchain)\nNative token: IP (18 decimals)\nSLIP44: 60 (Ethereum)\nETH-native: NO — IP gas token\nViem: ✅ story (id: 1514) — import { story } from \"viem/chains\"\nAcross: ❌ NOT SUPPORTED\nZerion ID: \"story\" (standard lowercase)\n\n--- PHASE 1 LEARNED CHECKLIST (MANDATORY) ---\n[ ] adapter.json: Create packages/caip/src/adapters/coingecko/generated/eip155_1514/adapter.json → {\"eip155:1514/slip44:60\":\"story-2\"}\n[ ] Wire adapter.json: Import+export from packages/caip/src/adapters/coingecko/generated/index.ts\n[ ] getCoingeckoSupportedChainIds: Add storyChainId (feature-flagged) in src/lib/coingecko/utils.ts\n[ ] Zerion: Add \"story\" to ZERION_CHAINS + ZERION_CHAINS_MAP in packages/types/src/zerion.ts\n[ ] Across: ❌ SKIP — not supported\n[ ] ETH test ordering: ❌ SKIP — not ETH-native\n[ ] Market-service counts: ❌ SKIP — not ETH-native\n[ ] relatedAssetKey: null (NOT eip155:1/slip44:60)\n\n--- RELAY ACTIVATION ---\n[ ] Add [storyChainId]: story.id to chainIdToRelayChainId\n[ ] Add native asset case in relayTokenToAssetId.ts\n--- ASSET DATA REGEN ---\n[ ] Create scripts/generateAssetData/story/index.ts\n[ ] Add case to scripts/generateAssetData/coingecko.ts\n[ ] Add import + getAssets call to generateAssetData.ts\n--- DRAFT PR ---\n[ ] Branch: feat/integrate-story-relay (off develop)\n[ ] gh pr create --draft\n[ ] yarn lint --fix \u0026\u0026 yarn type-check must pass\n",
"status": "open",
"priority": 2,
"issue_type": "task",
"owner": "14963751+NeOMakinG@users.noreply.github.com",
"created_at": "2026-02-17T10:56:01Z",
"created_by": "NeOMakinG",
"updated_at": "2026-02-17T22:43:23Z",
"labels": [
"evm",
"non-eth-gas",
"relay",
"tier-2"
],
"dependencies": [
{
"id": "ss-dx5",
"title": "Add support for missing Relay.link EVM chains",
"description": "Master epic tracking integration of ALL chains supported by Relay.link that ShapeShift web doesn't currently support. Enables cross-chain bridging capabilities via Relay infrastructure. See https://github.com/shapeshift/web/issues/11902 for full details. All new EVM chains will use Pattern B (RPC-only + getKnownTokens) since no ShapeShift unchained indexer infrastructure exists for these chains.",
"notes": "=== FROM ISSUE COMMENTS ===\n\nLOGO PATTERN: https://assets.relay.link/icons/{chainId}/light.png (dark: dark.png)\n\nARCHITECTURE GROUPS:\n- OP Stack (standard): Ink, Unichain, BOB, Mode, Hemi, World Chain, Soneium, Zircuit, Lisk, Cyber, Blast, Zora, Redstone, Shape, Superseed, Manta Pacific\n- zkEVM (special handling): Scroll, zkSync Era, Linea, Polygon zkEVM, Taiko, Abstract\n- Arbitrum Orbit: ApeChain, Xai, Sanko\n- Non-ETH gas (10 chains): Mantle(MNT), Metis(METIS), Cronos(CRO), Ronin(RON), Sonic(S), Flow(FLOW), Berachain(BERA), Plume(PLUME), Story(IP), Stable(gUSDT)\n\nCRITICAL CHAINS:\n1. Celo (42220): Native token is BOTH native AND ERC20. Relay uses wrapped CELO. Check relayTransactionMetadata.assetRequiringApproval\n2. Blast (81457): Rebasing ETH from L1 staking yield. USDB also rebases. Handle in balance displays.\n3. Ethereal (5064014): NOT in viem. Needs custom chain definition.\n4. zkSync Era (324) + Abstract (2741): Type 113 (EIP-712) transactions. Use viem zksync chainConfig.\n5. Linea (59144): Custom linea_estimateGas RPC method.\n6. Sei (1329): Parallelized EVM + CosmWasm interop. CoinGecko uses sei-v2 NOT sei.\n\nCOINGECKO GOTCHAS: sei-\u003esei-v2, plume-\u003eplume-network, zksync-\u003ezksync, metis-\u003emetis-andromeda, morph-\u003emorph-l2, gravity-\u003egravity-alpha, boba-\u003eboba, zora-\u003ezora-network, funkichain-\u003efunki, Superposition (capital S). BOB/Zero Network have null chain_identifier. 11 chains not on CoinGecko at all.\n\nPER-CHAIN CHECKLIST: [ ] chain-adapters [ ] caip [ ] asset-service [ ] feature-flag [ ] plugin [ ] env-config [ ] icon/logo\n\n=== RELAY SWAPPER INTEGRATION (per chain) ===\n\nFILE 1: packages/swapper/src/swappers/RelaySwapper/constant.ts\n - Add to chainIdToRelayChainId map: [newChainChainId]: \u003cviem_chain\u003e.id (or numeric chain ID)\n - Import the caip chainId (e.g., scrollChainId) from @shapeshiftoss/caip\n - Import viem chain from viem/chains (or use raw numeric ID if not in viem)\n - The reverse map relayChainIdToChainId auto-generates via invert()\n\nFILE 2: packages/swapper/src/swappers/RelaySwapper/utils/relayTokenToAssetId.ts\n - Add case CHAIN_REFERENCE.NewChainMainnet: with ASSET_REFERENCE.NewChain + ASSET_NAMESPACE.slip44\n\nNO CHANGES NEEDED (for EVM chains):\n - getRelayAssetAddress.ts (uses generic isNativeEvmAsset + DEFAULT_RELAY_EVM_TOKEN_ADDRESS)\n - getRelayDefaultUserAddress.ts (falls through to DEFAULT_RELAY_EVM_USER_ADDRESS default)\n\nUPSTREAM DEPS REQUIRED (in @shapeshiftoss packages):\n - @shapeshiftoss/caip: export newChainChainId, CHAIN_REFERENCE.NewChainMainnet, ASSET_REFERENCE.NewChain\n - @shapeshiftoss/types: KnownChainIds.NewChainMainnet\n - @shapeshiftoss/chain-adapters: NewChain chain adapter class\n - viem/chains: chain config (or custom if not in viem)\n\nRELAY API: https://api.relay.link (env: VITE_RELAY_API_URL) - no per-chain config needed\n\n=== ASSET DATA REGENERATION (per chain) ===\n\nAfter integrating each chain, run a partial assets data regen to populate the token list.\n\nFILE 1 (CREATE): scripts/generateAssetData/\u003cchainname\u003e/index.ts\n Pattern (identical for all EVM chains):\n import { \u003cchainname\u003eChainId } from '@shapeshiftoss/caip'\n import type { Asset } from '@shapeshiftoss/types'\n import { \u003cchainname\u003e, unfreeze } from '@shapeshiftoss/utils'\n import * as coingecko from '../coingecko'\n export const getAssets = async (): Promise\u003cAsset[]\u003e =\u003e {\n const assets = await coingecko.getAssets(\u003cchainname\u003eChainId)\n return [...assets, unfreeze(\u003cchainname\u003e)]\n }\n\nFILE 2 (MODIFY): scripts/generateAssetData/coingecko.ts\n - Import \u003cchainname\u003eChainId from @shapeshiftoss/caip\n - Import \u003cchainname\u003e native asset from @shapeshiftoss/utils\n - Add case in the switch: case \u003cchainname\u003eChainId: return { assetNamespace: ASSET_NAMESPACE.erc20, category: adapters.chainIdToCoingeckoAssetPlatform(chainId), explorer/explorerAddressLink/explorerTxLink from \u003cchainname\u003e utils }\n - NOTE: chains not on CoinGecko will only have the native asset (no ERC20 token list)\n\nFILE 3 (MODIFY): scripts/generateAssetData/generateAssetData.ts\n - Import: import * as \u003cchainname\u003e from './\u003cchainname\u003e'\n - Call: const \u003cchainname\u003eAssets = await \u003cchainname\u003e.getAssets()\n - Spread into unfilteredAssetData: ...\u003cchainname\u003eAssets\n\nCOMMAND: yarn generate:asset-data\n This regenerates: src/generated/asset-data.json + related-asset-index + manifest + compressed assets\n\n=== DRAFT PR CREATION (final step per chain) ===\n\nAfter all code changes are complete for a chain, open a draft PR using the repo template.\n\nBRANCH NAMING: feat/integrate-\u003cchainname\u003e-relay (e.g. feat/integrate-scroll-relay)\n\nCOMMAND:\n gh pr create --draft --title 'feat: integrate \u003cChainName\u003e (chainId: \u003cid\u003e) via Relay' --body \"$(cat \u003c\u003c'PREOF'\n ## Description\n\n Add \u003cChainName\u003e (chainId: \u003cid\u003e) as a second-class EVM chain in ShapeShift Web with Relay bridge support.\n\n **Changes:**\n - Plugin registration in src/plugins/\u003cchainname\u003e/\n - Feature flag `\u003cChainName\u003e` in preferencesSlice\n - Relay swapper chain mapping in RelaySwapper/constant.ts\n - Asset data generation via CoinGecko (`\u003ccoingecko_platform_id\u003e`)\n - Environment config for RPC URL\n\n **Chain details:**\n - TVL: \u003ctvl\u003e\n - Native token: \u003ctoken\u003e (18 decimals)\n - Architecture: \u003carch_type\u003e\n - RPC: \u003crpc_url\u003e\n - Explorer: \u003cexplorer_url\u003e\n\n ## Issue (if applicable)\n\n Part of #11902\n\n ## Risk\n\n Low risk — new chain behind feature flag (`\u003cChainName\u003e`), no existing functionality affected.\n\n \u003e New chain plugin + Relay bridge mapping. No modifications to existing chain logic.\n\n ## Testing\n\n ### Engineering\n\n 1. Enable feature flag: set `VITE_FEATURE_\u003cCHAINNAME\u003e=true` in .env\n 2. Verify chain appears in supported chains list\n 3. Verify native token balance loads (connect wallet with \u003ctoken\u003e on \u003cChainName\u003e)\n 4. Verify Relay bridge quote works: bridge ETH from Ethereum → \u003cChainName\u003e\n 5. Run `yarn lint --fix \u0026\u0026 yarn type-check` — must pass\n\n ### Operations\n\n - [x] :checkered_flag: My feature is behind a flag and doesn't require operations testing (yet)\n\n ## Screenshots (if applicable)\n\n N/A — chain integration, no UI changes.\n PREOF\n )\"\n\nNOTE: Replace all \u003cplaceholders\u003e with actual chain values from the bead description/notes.\nNOTE: Use --draft flag to create as draft PR.\nNOTE: Branch off develop (main branch is develop, not main).",
"status": "open",
"priority": 0,
"issue_type": "epic",
"owner": "14963751+NeOMakinG@users.noreply.github.com",
"created_at": "2026-02-17T10:55:02Z",
"created_by": "NeOMakinG",
"updated_at": "2026-02-17T11:21:27Z",
"external_ref": "gh-11902",
"dependency_type": "parent-child"
}
],
"parent": "ss-dx5"
}
]
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ VITE_MEGAETH_NODE_URL=https://mainnet.megaeth.com/rpc
VITE_LINEA_NODE_URL=https://rpc.linea.build
VITE_SCROLL_NODE_URL=https://rpc.scroll.io/
VITE_KATANA_NODE_URL=https://rpc.katana.network
VITE_STORY_NODE_URL=https://mainnet.storyrpc.io
VITE_ZKSYNC_ERA_NODE_URL=https://mainnet.era.zksync.io
VITE_BLAST_NODE_URL=https://rpc.blast.io
VITE_WORLDCHAIN_NODE_URL=https://worldchain-mainnet.g.alchemy.com/public
Expand Down Expand Up @@ -326,6 +327,7 @@ VITE_FEATURE_BERACHAIN=false
VITE_FEATURE_SCROLL=false
VITE_FEATURE_NEAR=true
VITE_FEATURE_KATANA=true
VITE_FEATURE_STORY=false
VITE_FEATURE_ZK_SYNC_ERA=false
VITE_FEATURE_BLAST=false
VITE_FEATURE_HEMI=false
Expand Down
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ VITE_BASE_NODE_URL=https://dev-api.base.shapeshift.com/api/v1/jsonrpc
VITE_MONAD_NODE_URL=https://rpc.monad.xyz
VITE_PLASMA_NODE_URL=https://rpc.plasma.to
VITE_KATANA_NODE_URL=https://rpc.katana.network
VITE_STORY_NODE_URL=https://mainnet.storyrpc.io
VITE_ZKSYNC_ERA_NODE_URL=https://mainnet.era.zksync.io
VITE_BLAST_NODE_URL=https://rpc.blast.io
VITE_WORLDCHAIN_NODE_URL=https://worldchain-mainnet.g.alchemy.com/public
Expand Down Expand Up @@ -117,6 +118,7 @@ VITE_FEATURE_LINEA=true
VITE_FEATURE_BERACHAIN=true
VITE_FEATURE_SCROLL=true
VITE_FEATURE_KATANA=true
VITE_FEATURE_STORY=true
VITE_FEATURE_ZK_SYNC_ERA=true
VITE_FEATURE_BLAST=true
VITE_FEATURE_WORLDCHAIN=true
Expand Down
10 changes: 10 additions & 0 deletions headers/csps/chains/story.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { loadEnv } from 'vite'

import type { Csp } from '../../types'

const mode = process.env.MODE ?? process.env.NODE_ENV ?? 'development'
const env = loadEnv(mode, process.cwd(), '')

export const csp: Csp = {
'connect-src': [env.VITE_STORY_NODE_URL],
}
2 changes: 2 additions & 0 deletions headers/csps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { csp as solana } from './chains/solana'
import { csp as soneium } from './chains/soneium'
import { csp as sonic } from './chains/sonic'
import { csp as starknet } from './chains/starknet'
import { csp as story } from './chains/story'
import { csp as sui } from './chains/sui'
import { csp as thorchain } from './chains/thorchain'
import { csp as ton } from './chains/ton'
Expand Down Expand Up @@ -159,6 +160,7 @@ export const csps = [
monad,
near,
plasma,
story,
worldchain,
sonic,
trustwallet,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"eip155:1514/slip44:60":"story-2"}
2 changes: 2 additions & 0 deletions packages/caip/src/adapters/coingecko/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import linea from "./eip155_59144/adapter.json";
import bob from "./eip155_60808/adapter.json";
import mode from "./eip155_34443/adapter.json";
import megaeth from "./eip155_4326/adapter.json";
import story from "./eip155_1514/adapter.json";
import mantle from "./eip155_5000/adapter.json";
import berachain from "./eip155_80094/adapter.json";
import ink from "./eip155_57073/adapter.json";
Expand Down Expand Up @@ -65,6 +66,7 @@ export {
linea,
mode,
megaeth,
story,
mantle,
berachain,
ink,
Expand Down
6 changes: 6 additions & 0 deletions packages/caip/src/adapters/coingecko/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
soneiumChainId,
sonicChainId,
starknetChainId,
storyChainId,
suiChainId,
thorchainChainId,
tonChainId,
Expand Down Expand Up @@ -67,6 +68,7 @@ export enum CoingeckoAssetPlatform {
Plasma = 'plasma',
Ink = 'ink',
Katana = 'katana',
Story = 'story',
ZkSyncEra = 'zksync',
Blast = 'blast',
WorldChain = 'world-chain',
Expand Down Expand Up @@ -142,6 +144,8 @@ export const chainIdToCoingeckoAssetPlatform = (chainId: ChainId): string => {
return CoingeckoAssetPlatform.Plasma
case CHAIN_REFERENCE.KatanaMainnet:
return CoingeckoAssetPlatform.Katana
case CHAIN_REFERENCE.StoryMainnet:
return CoingeckoAssetPlatform.Story
case CHAIN_REFERENCE.ZkSyncEraMainnet:
return CoingeckoAssetPlatform.ZkSyncEra
case CHAIN_REFERENCE.BlastMainnet:
Expand Down Expand Up @@ -283,6 +287,8 @@ export const coingeckoAssetPlatformToChainId = (
return worldChainChainId
case CoingeckoAssetPlatform.Katana:
return katanaChainId
case CoingeckoAssetPlatform.Story:
return storyChainId
case CoingeckoAssetPlatform.Mantle:
return mantleChainId
case CoingeckoAssetPlatform.Sonic:
Expand Down
3 changes: 3 additions & 0 deletions packages/caip/src/adapters/coingecko/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ describe('adapters:coingecko:utils', () => {
'eip155:747474': {
'eip155:747474/slip44:60': 'katana',
},
'eip155:1514': {
'eip155:1514/slip44:60': 'story-2',
},
Comment on lines +194 to +196
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Test expectation will need updating once the CoinGecko ID bug in utils.ts is fixed.

See the comment on packages/caip/src/adapters/coingecko/utils.ts — the coin ID 'story-2' is incorrect. Once that is corrected to 'story', this expectation should become:

🐛 Proposed fix
-        'eip155:1514': {
-          'eip155:1514/slip44:60': 'story-2',
-        },
+        'eip155:1514': {
+          'eip155:1514/slip44:60': 'story',
+        },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'eip155:1514': {
'eip155:1514/slip44:60': 'story-2',
},
'eip155:1514': {
'eip155:1514/slip44:60': 'story',
},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/caip/src/adapters/coingecko/utils.test.ts` around lines 194 - 196,
The test expectation currently asserts that the CoinGecko ID for
'eip155:1514/slip44:60' is 'story-2', but the utils bug will change the mapped
ID to 'story'; update the assertion in
packages/caip/src/adapters/coingecko/utils.test.ts to expect 'story' instead of
'story-2' for the key 'eip155:1514/slip44:60' (adjust any related fixtures or
expected maps that reference the old 'story-2' value).

'eip155:324': {
'eip155:324/slip44:60': 'ethereum',
},
Expand Down
17 changes: 17 additions & 0 deletions packages/caip/src/adapters/coingecko/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ import {
sonicChainId,
starknetAssetId,
starknetChainId,
storyAssetId,
storyChainId,
suiAssetId,
suiChainId,
thorchainChainId,
Expand Down Expand Up @@ -431,6 +433,20 @@ export const parseData = (coins: CoingeckoCoin[]): AssetMap => {
}
}

if (Object.keys(platforms).includes(CoingeckoAssetPlatform.Story)) {
try {
const assetId = toAssetId({
chainNamespace: CHAIN_NAMESPACE.Evm,
chainReference: CHAIN_REFERENCE.StoryMainnet,
assetNamespace: 'erc20',
assetReference: platforms[CoingeckoAssetPlatform.Story],
})
prev[storyChainId][assetId] = id
} catch {
// unable to create assetId, skip token
}
}

if (Object.keys(platforms).includes(CoingeckoAssetPlatform.ZkSyncEra)) {
try {
const assetId = toAssetId({
Expand Down Expand Up @@ -606,6 +622,7 @@ export const parseData = (coins: CoingeckoCoin[]): AssetMap => {
[berachainChainId]: { [berachainAssetId]: 'berachain-bera' },
[cronosChainId]: { [cronosAssetId]: 'crypto-com-chain' },
[katanaChainId]: { [katanaAssetId]: 'katana' },
[storyChainId]: { [storyAssetId]: 'story-2' },
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Story Protocol native IP token CoinGecko coin ID

💡 Result:

Story Protocol’s native IP token (“Story”, ticker IP) has CoinGecko coin ID: story. [1]


🏁 Script executed:

# Check the actual line 625 in the utils.ts file
sed -n '620,630p' packages/caip/src/adapters/coingecko/utils.ts

Repository: shapeshift/web

Length of output: 696


🏁 Script executed:

# Check for all references to story in the coingecko utils file
rg -n "story" packages/caip/src/adapters/coingecko/utils.ts -i

Repository: shapeshift/web

Length of output: 413


🏁 Script executed:

# Check the test file for references to story
rg -n "story" packages/caip/src/adapters/coingecko/utils.test.ts -i -A 2 -B 2

Repository: shapeshift/web

Length of output: 194


Wrong CoinGecko coin ID for Story Protocol's native IP asset — will source market data from incorrect token.

'story-2' is a defunct charity token on BNB Chain with no active trading. Story Protocol's native IP token has CoinGecko coin ID 'story'.

Update line 625 in utils.ts and line 195 in utils.test.ts:

Proposed fixes
-      [storyChainId]: { [storyAssetId]: 'story-2' },
+      [storyChainId]: { [storyAssetId]: 'story' },
-          'eip155:1514/slip44:60': 'story-2',
+          'eip155:1514/slip44:60': 'story',
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/caip/src/adapters/coingecko/utils.ts` at line 625, Replace the
incorrect CoinGecko ID 'story-2' with the correct 'story' in the mapping entry
where the keys are [storyChainId] and [storyAssetId] (the object currently
written as [storyChainId]: { [storyAssetId]: 'story-2' }) and update the
corresponding unit test assertion in utils.test.ts that expects 'story-2' to
instead expect 'story'; ensure both the mapping and the test reference the
CoinGecko coin ID 'story' so market data will be sourced for Story Protocol's
native IP token.

[zkSyncEraChainId]: { [zkSyncEraAssetId]: 'ethereum' },
[blastChainId]: { [blastAssetId]: 'ethereum' },
[worldChainChainId]: { [worldChainAssetId]: 'ethereum' },
Expand Down
6 changes: 6 additions & 0 deletions packages/caip/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const worldChainAssetId: AssetId = 'eip155:480/slip44:60'
export const berachainAssetId: AssetId = 'eip155:80094/slip44:60'
export const cronosAssetId: AssetId = 'eip155:25/slip44:60'
export const katanaAssetId: AssetId = 'eip155:747474/slip44:60'
export const storyAssetId: AssetId = 'eip155:1514/slip44:60'
export const zkSyncEraAssetId: AssetId = 'eip155:324/slip44:60'
export const blastAssetId: AssetId = 'eip155:81457/slip44:60'
export const hemiAssetId: AssetId = 'eip155:43111/slip44:60'
Expand Down Expand Up @@ -101,6 +102,7 @@ export const worldChainChainId: ChainId = 'eip155:480'
export const berachainChainId: ChainId = 'eip155:80094'
export const cronosChainId: ChainId = 'eip155:25'
export const katanaChainId: ChainId = 'eip155:747474'
export const storyChainId: ChainId = 'eip155:1514'
export const zkSyncEraChainId: ChainId = 'eip155:324'
export const blastChainId: ChainId = 'eip155:81457'
export const hemiChainId: ChainId = 'eip155:43111'
Expand Down Expand Up @@ -168,6 +170,7 @@ export const CHAIN_REFERENCE = {
BerachainMainnet: '80094',
CronosMainnet: '25',
KatanaMainnet: '747474', // https://docs.katana.network
StoryMainnet: '1514', // https://docs.story.foundation
ZkSyncEraMainnet: '324', // https://docs.zksync.io
BlastMainnet: '81457', // https://docs.blast.io
HemiMainnet: '43111', // https://docs.hemi.xyz
Expand Down Expand Up @@ -227,6 +230,7 @@ export const ASSET_REFERENCE = {
Berachain: '60', // evm chain which uses ethereum derivation path as common practice
Cronos: '60', // evm chain which uses ethereum derivation path as common practice
Katana: '60', // evm chain which uses ethereum derivation path as common practice
Story: '60', // evm chain which uses ethereum derivation path as common practice
ZkSyncEra: '60', // evm chain which uses ethereum derivation path as common practice
Blast: '60', // evm chain which uses ethereum derivation path as common practice
WorldChain: '60', // evm chain which uses ethereum derivation path as common practice
Expand Down Expand Up @@ -272,6 +276,7 @@ export const VALID_CHAIN_IDS: ValidChainMap = Object.freeze({
CHAIN_REFERENCE.BerachainMainnet,
CHAIN_REFERENCE.CronosMainnet,
CHAIN_REFERENCE.KatanaMainnet,
CHAIN_REFERENCE.StoryMainnet,
CHAIN_REFERENCE.ZkSyncEraMainnet,
CHAIN_REFERENCE.BlastMainnet,
CHAIN_REFERENCE.WorldChainMainnet,
Expand Down Expand Up @@ -340,6 +345,7 @@ export const FEE_ASSET_IDS = [
mantleAssetId,
inkAssetId,
megaethAssetId,
storyAssetId,
zkSyncEraAssetId,
blastAssetId,
hemiAssetId,
Expand Down
9 changes: 9 additions & 0 deletions packages/chain-adapters/src/evm/EvmBaseAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
supportsScroll,
supportsSoneium,
supportsSonic,
supportsStory,
supportsUnichain,
supportsWorldChain,
supportsZkSyncEra,
Expand Down Expand Up @@ -107,6 +108,7 @@ export const evmChainIds = [
KnownChainIds.BerachainMainnet,
KnownChainIds.CronosMainnet,
KnownChainIds.KatanaMainnet,
KnownChainIds.StoryMainnet,
KnownChainIds.ZkSyncEraMainnet,
KnownChainIds.BlastMainnet,
KnownChainIds.WorldChainMainnet,
Expand Down Expand Up @@ -230,6 +232,8 @@ export abstract class EvmBaseAdapter<T extends EvmChainId> implements IChainAdap
return supportsCronos(wallet)
case Number(fromChainId(KnownChainIds.KatanaMainnet).chainReference):
return supportsKatana(wallet)
case Number(fromChainId(KnownChainIds.StoryMainnet).chainReference):
return supportsStory(wallet)
case Number(fromChainId(KnownChainIds.ZkSyncEraMainnet).chainReference):
return supportsZkSyncEra(wallet)
case Number(fromChainId(KnownChainIds.BlastMainnet).chainReference):
Expand Down Expand Up @@ -369,6 +373,11 @@ export abstract class EvmBaseAdapter<T extends EvmChainId> implements IChainAdap
symbol: 'ETH',
explorer: 'https://katanascan.com',
},
[KnownChainIds.StoryMainnet]: {
name: 'Story',
symbol: 'IP',
explorer: 'https://storyscan.xyz',
},
[KnownChainIds.ZkSyncEraMainnet]: {
name: 'Ether',
symbol: 'ETH',
Expand Down
Loading
Loading