From ee55390025ac71fbfa8cd9d4cf9e081b3359f757 Mon Sep 17 00:00:00 2001 From: Metadavid <7405300+daweilv@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:52:49 +0800 Subject: [PATCH] refactor: integrate "Add to MetaMask" buttons for zkSync networks (#1004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: hsyndeniz Co-authored-by: 吕大卫 Co-authored-by: Antonio --- docs/.vuepress/components/NetworkAdder.vue | 56 +++++++++++++++++++ .../.vuepress/public/images/metamask_logo.svg | 1 + .../quick-start/add-zksync-to-metamask.md | 12 ++++ 3 files changed, 69 insertions(+) create mode 100644 docs/.vuepress/components/NetworkAdder.vue create mode 100644 docs/.vuepress/public/images/metamask_logo.svg diff --git a/docs/.vuepress/components/NetworkAdder.vue b/docs/.vuepress/components/NetworkAdder.vue new file mode 100644 index 0000000000..596baf995c --- /dev/null +++ b/docs/.vuepress/components/NetworkAdder.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/docs/.vuepress/public/images/metamask_logo.svg b/docs/.vuepress/public/images/metamask_logo.svg new file mode 100644 index 0000000000..592e01986d --- /dev/null +++ b/docs/.vuepress/public/images/metamask_logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/build/quick-start/add-zksync-to-metamask.md b/docs/build/quick-start/add-zksync-to-metamask.md index 9cb6ddcc61..3584a9a93b 100644 --- a/docs/build/quick-start/add-zksync-to-metamask.md +++ b/docs/build/quick-start/add-zksync-to-metamask.md @@ -18,6 +18,12 @@ Fill in the following details for the zkSync network: ## Mainnet network info +Add zkSync Era Mainnet automatically using the button below: + + + +**Network details:** + - Network Name: `zkSync Era Mainnet` - RPC URL: `https://mainnet.era.zksync.io` - Chain ID: `324` @@ -27,6 +33,12 @@ Fill in the following details for the zkSync network: ## Sepolia testnet network info +Add zkSync Era testnet automatically using the button below: + + + +**Network details:** + - Network Name: `zkSync Era Sepolia Testnet` - RPC URL: `https://sepolia.era.zksync.dev` - Chain ID: `300`