From 9fd44facb811976cc570371faba3d6d3f268aa6f Mon Sep 17 00:00:00 2001 From: cpengilly <29023967+cpengilly@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:01:47 -0700 Subject: [PATCH] viem updates - fix meta json file - add Viem as proper noun - update tutorial page to reflect --- nouns.txt | 3 ++- pages/builders/app-developers/tutorials/_meta.json | 2 +- .../app-developers/tutorials/cross-dom-bridge-eth.mdx | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/nouns.txt b/nouns.txt index fc2ef774d..be98afea6 100644 --- a/nouns.txt +++ b/nouns.txt @@ -16,4 +16,5 @@ Granite Holocene Monitorism Kubernetes -Fault Proof System \ No newline at end of file +Fault Proof System +Viem \ No newline at end of file diff --git a/pages/builders/app-developers/tutorials/_meta.json b/pages/builders/app-developers/tutorials/_meta.json index f98a8dbd1..45ddaf362 100644 --- a/pages/builders/app-developers/tutorials/_meta.json +++ b/pages/builders/app-developers/tutorials/_meta.json @@ -1,7 +1,7 @@ { "first-contract": "Deploying your first contract on OP Mainnet", "cross-dom-solidity": "Communicating between chains in Solidity", - "cross-dom-bridge-eth": "Bridging ETH with the Optimism SDK", + "cross-dom-bridge-eth": "Bridging ETH with Viem", "cross-dom-bridge-erc20": "Bridging ERC-20 tokens with the Optimism SDK", "standard-bridge-custom-token": "Bridging your custom ERC-20 token to OP Mainnet", "standard-bridge-standard-token": "Bridging your standard ERC-20 token to OP Mainnet", diff --git a/pages/builders/app-developers/tutorials/cross-dom-bridge-eth.mdx b/pages/builders/app-developers/tutorials/cross-dom-bridge-eth.mdx index 129d1f698..4d5e6a95c 100644 --- a/pages/builders/app-developers/tutorials/cross-dom-bridge-eth.mdx +++ b/pages/builders/app-developers/tutorials/cross-dom-bridge-eth.mdx @@ -1,12 +1,12 @@ --- -title: Bridging ETH with viem +title: Bridging ETH with Viem lang: en-US description: Learn how to use Viem to transfer ETH between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia). --- import { Callout, Steps, Tabs } from 'nextra/components' -# Bridging ETH to OP Mainnet with viem +# Bridging ETH to OP Mainnet with Viem This tutorial explains how you can use [Viem](https://viem.sh) to bridge ETH from L1 (Ethereum or Sepolia) to L2 (OP Mainnet or OP Sepolia). Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum. @@ -45,7 +45,7 @@ Since Viem is a [Node.js](https://nodejs.org/en/) library, you'll need to create pnpm init ``` - {

Install the viem library

} + {

Install the Viem library

} ```bash pnpm add viem @@ -92,7 +92,7 @@ This will bring up a Node REPL prompt that allows you to run JavaScript code. You need to import some dependencies into your Node REPL session. -{

Import viem and other packages

} +{

Import Viem and other packages

} ```js file=/public/tutorials/cross-dom-bridge-eth.js#L3-L6 hash=88319dda3322e76accb9e50222d30abc ```