From d546fe214c371bdf9fa51fa1317f141c4c24f57c Mon Sep 17 00:00:00 2001 From: mariobern <110480440+mariobern@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:53:44 +0800 Subject: [PATCH 1/5] feat(docs): add Pyth to Scroll docs (#413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add turkish transalation (build fix) (#256) (#257) * lang "tr" added, sections "getting-started" and "user-guide" is translated accordingly * Update overview.md * technology/bridge turkish translations are added * lang[tr] user-guide finalized * learn added, getting started improvements * /learn and most of the /technology is translated to lang[tr] * /technology/chain finished * /developers section translations to lang[tr] * /developers developer-quickstart and transaction-fees-on-scroll translated to lang[tr] * /developers section finished except guides part. some other language correctments in lang[tr] * execution-node-tr completed * rollup-node-tr completed * /developers/guides is completed * added lang[tr] for welcome page frontend * cross-domain-messaging-tr completed * deposit-gateways-tr completed * withdraw-gateways-tr completed * minor improvements * visual bugs fixed in kzg schemes lang[tr] * minor improvements * general language improvements and word suffix correctments lang[tr] * translation completions of some overlooked technical terms lang[tr] * minor fix * term improvements * minor improvements in terms * minor punctuation suffix correction * minor punctuation suffix fixes * more minor improvements * minor update * zktrie.mdx güncelleme * refactor * /technology/sequencer/zktrie.mdx translation completed * refactor * mini typo in kzg schemes * mempool changes * Bridge part refactor * Withdraw-gateways refactor * Minor translation fixes in Learn folder. * Zktrie and Zkevm part * minor corrections in translations of rollup, opcode and hash * minor corrections in gateway translation * minor translation corrections * "SB" changed to ZK in get started, learn and devs * "Haberci"ler "Messenger"a donusturuldu. * local preview fixes * proof read "getting started" "user guide" "learn" * punctuation mistake while proof reading * getting started/user guide/learn proofread finished, front page translation updates, menu.ts is translated, some parts of translation.js is translated * minor changes in index and overview * tr/technology/chain proofread and corrections completed * syntax corrections in tr/technology/overview * Typo correction in chain/blocks * json translations * translation json translated * "Baslayin" changed to "Basla" in Menu * /tr/technology/bridge proofread completed, corrections made * /tr/technology/sequencer proofread, corrections completed * /tr/technology/zkevm and /tr/technology/security proofread and corrections completed * technology subheaders translation changed * mini term fix * Proof read dev * Warning titles have been changed * minor changes * a link, a prefix, and a minor main page correction * fix: npm run build now works with node 18.14.1 --------- Co-authored-by: emremreistaken Co-authored-by: emremre <101284529+emremreistaken@users.noreply.github.com> Co-authored-by: memduh Co-authored-by: bahribugra Co-authored-by: Dilara * Curie updates (#289) * Curie updates (#271) * curie-update-libzkp-version * security nit * move contact info into highlight * change Aside type * Update running-a-scroll-node.mdx (#278) * nodeKey hashing are done with domain 512 not 256 Am currently making a storage prover in noir and found this error In the zktrie repo nodekeys are hashed with ToSecureKey() in type/util.go (afaik) https://github.com/scroll-tech/zktrie/blob/23181f209e94137f74337b150179aeb80c72e7c8/types/util.go#L107 ToSecureKey() uses Hash() in types/bytes32.go which uses HASH_DOMAIN_BYTE32 as domain which is 256 *2 (512) see here: https://github.com/scroll-tech/zktrie/blob/23181f209e94137f74337b150179aeb80c72e7c8/types/hash.go#L16 and here is where i did my test in noir :D (account leaf is lower in same file) https://github.com/jimjimvalkema/scrollZkStorageProofs/blob/bcdd922405e046e99787b8b47f374befac170779/ScrollStorageProver/src/main.nr#L168 * add get in touch button * Revert "add get in touch button" This reverts commit 5c695f26137187667c981faa7731acbd88850b38. * Curie update details (#286) * remove legacy flag for foundry * update Curie details * fix typo * oops * Add PR descriptions --------- Co-authored-by: colinlyguo Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com> Co-authored-by: Sina Pilehchiha Co-authored-by: Péter Garamvölgyi Co-authored-by: jimjimvalkema Co-authored-by: Daniel Helm Co-authored-by: zhengqi zhang <770166635@qq.com> * Merge pull request #338 from SahilAujla/develop add alchemy to scroll tools * Merge pull request #342 from jlin27/develop add 0x to dev tooling explorer * Merge to prod (#349) * Darwinv2 changes (#332) * darwinv2 changes * oops * note on reorgs and finality * formatting * added guide for the graph (#334) * add alchemy to scroll tools * update text in alchemy.mdx * add 0x to dev tooling explorer * fix feedback --------- Co-authored-by: AK Co-authored-by: Sahil Aujla Co-authored-by: emilyJLin95 <17280653+emilyJLin95@users.noreply.github.com> Co-authored-by: Jessica Lin * Publish Canvas guide (#371) * Darwinv2 changes (#332) * darwinv2 changes * oops * note on reorgs and finality * formatting * added guide for the graph (#334) * add alchemy to scroll tools * update text in alchemy.mdx * add 0x to dev tooling explorer * fix feedback * Guide for adding Canvas badges (#333) * add Canvas guide * fix * add to nav * display images side by side * feedback * add image margins * fix the title (#337) * Update the content detail and unbold text (#341) * fix the title * Unbold the text under toggle list * Update the content (#348) * fix the title * Unbold the text under toggle list * Update the content * small edits * Apply suggestions from code review Co-authored-by: Péter Garamvölgyi * Isabellewei/canvas (#367) * fix the title * Unbold the text under toggle list * Update the content * update content based on the comments --------- Co-authored-by: isabellewei --------- Co-authored-by: fanyarachel <43579854+fanyarachel@users.noreply.github.com> Co-authored-by: Péter Garamvölgyi --------- Co-authored-by: AK Co-authored-by: Sahil Aujla Co-authored-by: emilyJLin95 <17280653+emilyJLin95@users.noreply.github.com> Co-authored-by: Jessica Lin Co-authored-by: fanyarachel <43579854+fanyarachel@users.noreply.github.com> Co-authored-by: Péter Garamvölgyi * add pyth to scroll * fix pyth excerpt * fix typos --------- Co-authored-by: Daniel Helm Co-authored-by: Ahmed Castro Co-authored-by: emremreistaken Co-authored-by: emremre <101284529+emremreistaken@users.noreply.github.com> Co-authored-by: memduh Co-authored-by: bahribugra Co-authored-by: Dilara Co-authored-by: isabellewei Co-authored-by: colinlyguo Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com> Co-authored-by: Sina Pilehchiha Co-authored-by: Péter Garamvölgyi Co-authored-by: jimjimvalkema Co-authored-by: zhengqi zhang <770166635@qq.com> Co-authored-by: vincent Co-authored-by: ChuhanJin <60994121+ChuhanJin@users.noreply.github.com> Co-authored-by: emilyJLin95 <17280653+emilyJLin95@users.noreply.github.com> Co-authored-by: AK Co-authored-by: Sahil Aujla Co-authored-by: Jessica Lin Co-authored-by: fanyarachel <43579854+fanyarachel@users.noreply.github.com> Co-authored-by: Morty <70688412+yiweichi@users.noreply.github.com> --- src/content/tools/en/pyth.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/content/tools/en/pyth.mdx diff --git a/src/content/tools/en/pyth.mdx b/src/content/tools/en/pyth.mdx new file mode 100644 index 00000000..5ae511b9 --- /dev/null +++ b/src/content/tools/en/pyth.mdx @@ -0,0 +1,16 @@ +--- +name: "Pyth" +category: ["Oracle"] +excerpt: "Pyth Network is the largest first-party oracle network, focusing on delivering real-time financial data." +logo: { src: "https://pbs.twimg.com/profile_images/1876029224277966848/ZvI083Fa_400x400.jpg", alt: "Pyth Logo" } +website: "https://pyth.network/" +network: ["Mainnet", "Testnet"] +--- + +You can find contract addresses for Pyth for Scroll Mainnet and Scroll Sepolia: + +- [How to use Pyth on Scroll](https://docs.pyth.network/price-feeds/use-real-time-data/evm) +- [Price Feed IDs for Scroll](https://www.pyth.network/developers/price-feed-ids) +- [Pyth Scroll Mainnet and Scroll Sepolia contracts](https://docs.pyth.network/price-feeds/contract-addresses/evm) + + From 8efbbd7c1b7e10b87ad1e449e78493c826076d7a Mon Sep 17 00:00:00 2001 From: RH <93211672+PrintRH@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:56:39 +0800 Subject: [PATCH 2/5] docs: add mainnet setup --- src/content/docs/en/user-guide/setup.mdx | 65 ++++++++++++++++++------ 1 file changed, 50 insertions(+), 15 deletions(-) diff --git a/src/content/docs/en/user-guide/setup.mdx b/src/content/docs/en/user-guide/setup.mdx index e12cd9a8..1eeaee3b 100644 --- a/src/content/docs/en/user-guide/setup.mdx +++ b/src/content/docs/en/user-guide/setup.mdx @@ -5,38 +5,73 @@ title: "Setup" lang: "en" permalink: "user-guide/setup/" whatsnext: { "Grab Sepolia ETH from a Faucet": "/en/user-guide/faucet" } -excerpt: "You need to have a wallet to interact with the Scroll Testnet. You can find some example wallets and configuration tips here." +excerpt: "You need to have a wallet to interact with the Scroll network. You can find some example wallets and configuration tips here." --- import Aside from "../../../../components/Aside.astro" +import ToggleElement from "../../../../components/ToggleElement.astro" ## Wallet -You need to have a wallet to interact with dApps on the Scroll Sepolia testnet. You can find some example wallets and configuration tips below. Our Bridge app supports MetaMask, Coinbase Wallet, or any wallet with WalletConnect support. +You need to have a wallet to interact with dApps on Scroll. You can find some example wallets and configuration tips below. Our Bridge app supports MetaMask, Coinbase Wallet, or any wallet with WalletConnect support. ### MetaMask You can install MetaMask from their [official website](https://metamask.io/download/). -You can import the Scroll Sepolia testnet configurations to your MetaMask wallet. To do this, visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" buttons for Sepolia Testnet and Scroll Sepolia Testnet. This will import the chain ID and RPC URLs for the Scroll Sepolia Testnet. The Sepolia Testnet is also configured on MetaMask by default. To show it, click "Show/hide test networks" in the MetaMask network selection dropdown menu. +You can import the Scroll mainnet and Scroll Sepolia testnet configurations to your MetaMask wallet by following the steps below. -### Manual network configuration (for other wallets) +To do this, visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" buttons for Sepolia Testnet and Scroll Sepolia Testnet. This will import the chain ID and RPC URLs for the Scroll Sepolia Testnet. The Sepolia Testnet is also configured on MetaMask by default. To show it, click "Show/hide test networks" in the MetaMask network selection dropdown menu. -The **Add to wallet** links may not be compatible with every wallet. If you are having issues using them, you may need to manually add the _Sepolia Testnet_ and _Scroll Sepolia_ network by inserting the configuration details from the table below: +## Network Configuration -| Network Name | Scroll Sepolia Testnet | Sepolia Testnet | -| ------------------ | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| RPC URL | [https://sepolia-rpc.scroll.io/](https://sepolia-rpc.scroll.io/) | [https://eth-sepolia-public.unifra.io](https://eth-sepolia-public.unifra.io) | -| Chain ID | 534351 | 11155111 | -| Currency Symbol | ETH | ETH | -| Block Explorer URL | [https://sepolia.scrollscan.com](https://sepolia.scrollscan.com) | [https://sepolia.etherscan.io](https://sepolia.etherscan.io) | +### Scroll Mainnet + +Visit the [Scroll portal](https://scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" button for Layer 2 Scroll to directly import the network configurations. Finally, click "Approve" to add the network to your MetaMask wallet. + +Alternatively, you may use the table below to manually configure Scroll mainnet in other wallets. + +| Network Name | Scroll | Ethereum Mainnet | +| ------------------ | -------------------------------------------------- | ---------------------------------------------------- | +| RPC URL | [https://rpc.scroll.io/](https://rpc.scroll.io/) | [https://eth.llamarpc.com](https://eth.llamarpc.com) | +| Chain ID | 534352 | 1 | +| Currency Symbol | ETH | ETH | +| Block Explorer URL | [https://scrollscan.com/](https://scrollscan.com/) | [https://etherscan.io](https://etherscan.io) | + + +
Additional Scroll Mainnet RPCs and Infra
+ - [Scroll Native Bridge](https://scroll.io/bridge) + - [Scroll RPC Providers on ChainList.org](https://chainlist.org/chain/534352) + - [Ethereum RPC Providers on ChainList.org](https://chainlist.org/chain/1) + +
+ +### Scroll Sepolia Testnet + +Visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" buttons for Scroll Sepolia Testnet. This will import the chain ID and RPC URLs for the Scroll Sepolia Testnet. The Ethereum Sepolia Testnet is also configured on MetaMask by default. To show it, click "Show/hide test networks" in the MetaMask network selection dropdown menu. + +Alternatively, you may use the table below to manually configure Scroll Sepolia testnet in other wallets. + +| Network Name | Scroll Sepolia | Ethereum Sepolia | +| ------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------ | +| RPC URL | [https://sepolia-rpc.scroll.io/](https://sepolia-rpc.scroll.io/) | [https://rpc2.sepolia.org](https://rpc2.sepolia.org) | +| Chain ID | 534351 | 11155111 | +| Currency Symbol | ETH | ETH | +| Block Explorer URL | [https://sepolia.scrollscan.com](https://sepolia.scrollscan.com/) | [https://sepolia.etherscan.io](https://sepolia.etherscan.io) | + + +
Additional Scroll Sepolia RPCs and Infra
+ - [Scroll Sepolia Native Bridge](https://sepolia.scroll.io/bridge) + - [Scroll Sepolia RPC Providers on ChainList.org](https://chainlist.org/chain/534351) + - [Ethereum Sepolia RPC Providers on ChainList.org](https://chainlist.org/chain/11155111) + +
From 1091e8c4532e10df7620b7e701760c5a96ab0885 Mon Sep 17 00:00:00 2001 From: RH <93211672+PrintRH@users.noreply.github.com> Date: Wed, 5 Feb 2025 17:19:40 +0800 Subject: [PATCH 3/5] docs: clarify edits --- src/content/docs/en/user-guide/setup.mdx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/content/docs/en/user-guide/setup.mdx b/src/content/docs/en/user-guide/setup.mdx index 1eeaee3b..8bb00b4d 100644 --- a/src/content/docs/en/user-guide/setup.mdx +++ b/src/content/docs/en/user-guide/setup.mdx @@ -19,7 +19,7 @@ You need to have a wallet to interact with dApps on Scroll. You can find some ex You can install MetaMask from their [official website](https://metamask.io/download/). -You can import the Scroll mainnet and Scroll Sepolia testnet configurations to your MetaMask wallet by following the steps below. +You can import the Scroll mainnet and Scroll Sepolia testnet configurations to your MetaMask wallet by following the steps below. To do this, visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" buttons for Sepolia Testnet and Scroll Sepolia Testnet. This will import the chain ID and RPC URLs for the Scroll Sepolia Testnet. The Sepolia Testnet is also configured on MetaMask by default. To show it, click "Show/hide test networks" in the MetaMask network selection dropdown menu. @@ -27,9 +27,9 @@ To do this, visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), ### Scroll Mainnet -Visit the [Scroll portal](https://scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" button for Layer 2 Scroll to directly import the network configurations. Finally, click "Approve" to add the network to your MetaMask wallet. +Visit the [Scroll portal](https://scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" button in "Layer2: Scroll" to directly import the network configurations. Finally, click "Approve" to add the network to your MetaMask wallet. -Alternatively, you may use the table below to manually configure Scroll mainnet in other wallets. +Alternatively, you can use the table below to manually configure Scroll mainnet in other wallets. | Network Name | Scroll | Ethereum Mainnet | | ------------------ | -------------------------------------------------- | ---------------------------------------------------- | @@ -50,7 +50,7 @@ Alternatively, you may use the table below to manually configure Scroll mainnet Visit the [Scroll Sepolia portal](https://sepolia.scroll.io/portal), then click the "Connect Wallet" button and select MetaMask. Next, click the "Add to MetaMask" buttons for Scroll Sepolia Testnet. This will import the chain ID and RPC URLs for the Scroll Sepolia Testnet. The Ethereum Sepolia Testnet is also configured on MetaMask by default. To show it, click "Show/hide test networks" in the MetaMask network selection dropdown menu. -Alternatively, you may use the table below to manually configure Scroll Sepolia testnet in other wallets. +Alternatively, you can use the table below to manually configure Scroll Sepolia testnet in other wallets. | Network Name | Scroll Sepolia | Ethereum Sepolia | | ------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------ | @@ -69,8 +69,7 @@ Alternatively, you may use the table below to manually configure Scroll Sepolia