Skip to content

Commit

Permalink
Update bridging-celo-from-holesky-to-dango-using-viem.mdx (#1438)
Browse files Browse the repository at this point in the history
* Update bridging-celo-from-holesky-to-dango-using-viem.mdx

- add intro
- add an explanation for the dango.js file 
- link the Optimism SDK

* add links to the viem OP Stack
  • Loading branch information
GigaHierz authored Aug 22, 2024
1 parent 9df05b2 commit d71ae4b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ title: Bridging Celo from Holesky to Dango using Viem
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

Bridging Celo from Holesky to Dango is simple, all you need to do is call `depositERC20Transaction` on `OptimismPortalProxy` on Holesky.
In this tutorial, you will learn how to programmatically bridge CELO from Holskey to Dango using the [viem OP Stack](https://viem.sh/op-stack).

`depositERC20Transaction` pulls Celo tokens from the account which is why you need to approve `OptimismPortalProxy` to spend Celo token first.
Bridging CELO from Holesky to Dango is simple, all you need to do is call [`depositERC20Transaction`](https://viem.sh/op-stack/actions/depositTransaction#deposittransaction) on the `OptimismPortalProxy` contract on Holesky.

The `depositERC20Transaction` pulls CELO tokens from the account which is why you need to approve `OptimismPortalProxy` to spend CELO tokens first.

As you can see, we’ve created a `dango.js` file that contains all the necessary data for interacting with the test network. Since Dango will be a short-lived testnet, chain data won’t be available through viem or wagmi, so this file ensures you have everything you need directly at hand.

<Tabs>
<TabItem value="index.js" label="index.js" default>
Expand Down

0 comments on commit d71ae4b

Please sign in to comment.