From e0b9635e73d6514216cb6a5208f1516ff9594a9a Mon Sep 17 00:00:00 2001 From: "Karim H." <98668332+khadni@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:48:33 +0100 Subject: [PATCH] DS - Scroll integration (#2284) * ds-scroll * add scroll to QL --- public/assets/chains/scroll.svg | 4 +++- public/changelog.json | 12 ++++++++++++ .../QuickLinks/data/productChainLinks.ts | 1 + src/content/ccip/concepts/cross-chain-tokens.mdx | 11 +++++------ src/features/feeds/components/Tables.tsx | 14 ++++++++++++++ 5 files changed, 35 insertions(+), 7 deletions(-) diff --git a/public/assets/chains/scroll.svg b/public/assets/chains/scroll.svg index 27ae4252c76..4714d1dbf11 100644 --- a/public/assets/chains/scroll.svg +++ b/public/assets/chains/scroll.svg @@ -6,7 +6,7 @@ id="图层_1" x="0px" y="0px" - viewBox="0 0 185.5 182.5" + viewBox="0 0 235.5 232.5" xml:space="preserve" sodipodi:docname="scroll.svg" width="185.5" @@ -44,6 +44,7 @@ .st1{fill:#EBC28E;} .st2{fill:#190602;} + @@ -96,4 +97,5 @@ + diff --git a/public/changelog.json b/public/changelog.json index dd40d6ac800..4ed4839a8a4 100644 --- a/public/changelog.json +++ b/public/changelog.json @@ -1,4 +1,16 @@ [ + { + "category": "integration", + "changes": [], + "date": "2025-01-29", + "description": "Chainlink Data Streams is available in Early Access on Scroll. The verifier proxy addresses and stream IDs are available on the [Stream Addresses](https://docs.chain.link/data-streams/crypto-streams) page.", + "relatedNetworks": ["scroll"], + "relatedTokens": [], + "title": "Data Streams on Scroll", + "topic": "data", + "subTopic": "data-streams", + "urls": [] + }, { "category": "integration", "changes": [], diff --git a/src/components/QuickLinks/data/productChainLinks.ts b/src/components/QuickLinks/data/productChainLinks.ts index c658cb5223e..f4fa5230921 100644 --- a/src/components/QuickLinks/data/productChainLinks.ts +++ b/src/components/QuickLinks/data/productChainLinks.ts @@ -94,6 +94,7 @@ export const productChainLinks: ProductChainLinks = { base: "/data-streams/crypto-streams", soneium: "/data-streams/crypto-streams", opbnb: "/data-streams/crypto-streams", + scroll: "/data-streams/crypto-streams", solana: "/data-streams/crypto-streams", sonic: "/data-streams/crypto-streams", optimism: "/data-streams/crypto-streams", diff --git a/src/content/ccip/concepts/cross-chain-tokens.mdx b/src/content/ccip/concepts/cross-chain-tokens.mdx index 9f8408a5df0..61b0f867fa0 100644 --- a/src/content/ccip/concepts/cross-chain-tokens.mdx +++ b/src/content/ccip/concepts/cross-chain-tokens.mdx @@ -158,20 +158,19 @@ On the **destination blockchain**, the CCIP OffRamp contract performs three key **v1.5.0** -Token pools on **v1.5.0** do not support tokens with different decimal places across blockchains. When transferring a token between blockchains with differing decimal places, the token loses precision resulting in different amounts of tokens between the source and destination blockchain. +Token pools on **v1.5.0** do not support tokens with different decimal places across blockchains. When transferring a token between blockchains with differing decimal places, the token loses precision resulting in different amounts of tokens between the source and destination blockchain. Consider a token developer who deployed their token across two blockchains with different decimal configurations: - Blockchain A: Token with 12 decimals - Blockchain B: Token with 6 decimals -| Transfer Path | Example | Explanation | Impact | -|----------------|------------------------------------------------------------------|-----------------------|--------------------------------| -| **A → B**(12 → 6) | • Send **1.0** from A (= 10^12 base units)
• Receive on B: 1,000,000 | 10^12/10^6= **1,000,000** | **Gain** of 999,999 (1,000,000 -1) | +| Transfer Path | Example | Explanation | Impact | +| ----------------- | ------------------------------------------------------------------------ | ------------------------- | ---------------------------------- | +| **A → B**(12 → 6) | • Send **1.0** from A (= 10^12 base units)
• Receive on B: 1,000,000 | 10^12/10^6= **1,000,000** | **Gain** of 999,999 (1,000,000 -1) | | **B → A**(6 → 12) | • Send **1.0** from B(= 10^6 base units)
• Receive on A: 0.000001 | 10^6/10^12= **0.000001** | **Loss** of 0.999999 (1-0.000001) | - -We highly recommend [upgrading to v1.5.1](#upgrading-from-v150) to leverage the native support for token decimal handling. If using v1.5.0, please make sure to [configure a custom v1.5.0 token pool](#custom-token-pools). +We highly recommend [upgrading to v1.5.1](#upgrading-from-v150) to leverage the native support for token decimal handling. If using v1.5.0, please make sure to [configure a custom v1.5.0 token pool](#custom-token-pools). **v1.5.1** diff --git a/src/features/feeds/components/Tables.tsx b/src/features/feeds/components/Tables.tsx index 39b0c199a01..34d722f99a2 100644 --- a/src/features/feeds/components/Tables.tsx +++ b/src/features/feeds/components/Tables.tsx @@ -420,6 +420,20 @@ const StreamsNetworksData = [ explorerUrl: "https://sepolia-optimism.etherscan.io/address/%s", }, }, + { + network: "Scroll", + logoUrl: "/assets/chains/scroll.svg", + mainnet: { + label: "Scroll Mainnet", + verifierProxy: "0x37e550C9b35DB56F9c943126F1c2642fcbDF7B51", + explorerUrl: "https://scrollscan.com/address/%s", + }, + testnet: { + label: "Scroll Sepolia Testnet", + verifierProxy: "0xE17A7C6A7c2eF0Cb859578aa1605f8Bc2434A365", + explorerUrl: "https://sepolia.scrollscan.com/address/%s", + }, + }, { network: "Shibarium", logoUrl: "/assets/chains/shibarium.svg",