Skip to content

Commit

Permalink
deploy: 922fe41
Browse files Browse the repository at this point in the history
  • Loading branch information
jakim929 committed Nov 12, 2024
1 parent 6c8865a commit b19e513
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
17 changes: 15 additions & 2 deletions getting-started/first-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,23 @@ <h2 id="deposit-eth-from-the-l1-into-the-l2-l1-to-l2-message-passing"><a class="
<p>Grab the balance of the sender account on L2:</p>
<pre><code class="language-sh">cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545
</code></pre>
<p><strong>2. Call <code>bridgeETH</code> function on the <code>L1StandardBridgeProxy</code> contract on the L1 (chain 900)</strong></p>
<br>
<p><strong>2. Send the Ether</strong>
<br />
It exists two different methods to do this action</p>
<h3 id="first-method---optimismportal"><a class="header" href="#first-method---optimismportal">First method - <code>OptimismPortal</code></a></h3>
<p>Send the Ether to <code>OptimismPortal</code> contract of the respective L2 (on chain 900)**</p>
<p>Initiate a bridge transaction on the L1:<br>
<em>In the case of the chain 901 the contract is <code>0x37a418800d0c812A9dE83Bc80e993A6b76511B57</code></em></p>
<pre><code class="language-sh">cast send 0x37a418800d0c812A9dE83Bc80e993A6b76511B57 --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
</code></pre>
<h3 id="second-method---l1standardbridge"><a class="header" href="#second-method---l1standardbridge">Second method - <code>L1StandardBridge</code></a></h3>
<p><strong>Call <code>bridgeETH</code> function on the <code>L1StandardBridgeProxy</code> / <code>L1StandardBridge</code> contract of the respective L2 on L1 (chain 900)</strong>
<em>In the case of the chain 901 the contract is <code>0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0</code></em></p>
<p>Initiate a bridge transaction on the L1:</p>
<pre><code class="language-sh">cast send 0xa01ae68902e205B420FD164435F299E07b0C778b "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
<pre><code class="language-sh">cast send 0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0 "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
</code></pre>
<br>
<p><strong>3. Check the balance on the L2 (chain 901)</strong></p>
<p>Verify that the ETH balance of the sender has increased on the L2:</p>
<pre><code class="language-sh">cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545
Expand Down
17 changes: 15 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,23 @@ <h2 id="deposit-eth-from-the-l1-into-the-l2-l1-to-l2-message-passing"><a class="
<p>Grab the balance of the sender account on L2:</p>
<pre><code class="language-sh">cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545
</code></pre>
<p><strong>2. Call <code>bridgeETH</code> function on the <code>L1StandardBridgeProxy</code> contract on the L1 (chain 900)</strong></p>
<br>
<p><strong>2. Send the Ether</strong>
<br />
It exists two different methods to do this action</p>
<h3 id="first-method---optimismportal"><a class="header" href="#first-method---optimismportal">First method - <code>OptimismPortal</code></a></h3>
<p>Send the Ether to <code>OptimismPortal</code> contract of the respective L2 (on chain 900)**</p>
<p>Initiate a bridge transaction on the L1:<br>
<em>In the case of the chain 901 the contract is <code>0x37a418800d0c812A9dE83Bc80e993A6b76511B57</code></em></p>
<pre><code class="language-sh">cast send 0x37a418800d0c812A9dE83Bc80e993A6b76511B57 --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
</code></pre>
<h3 id="second-method---l1standardbridge"><a class="header" href="#second-method---l1standardbridge">Second method - <code>L1StandardBridge</code></a></h3>
<p><strong>Call <code>bridgeETH</code> function on the <code>L1StandardBridgeProxy</code> / <code>L1StandardBridge</code> contract of the respective L2 on L1 (chain 900)</strong>
<em>In the case of the chain 901 the contract is <code>0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0</code></em></p>
<p>Initiate a bridge transaction on the L1:</p>
<pre><code class="language-sh">cast send 0xa01ae68902e205B420FD164435F299E07b0C778b "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
<pre><code class="language-sh">cast send 0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0 "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
</code></pre>
<br>
<p><strong>3. Check the balance on the L2 (chain 901)</strong></p>
<p>Verify that the ETH balance of the sender has increased on the L2:</p>
<pre><code class="language-sh">cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit b19e513

Please sign in to comment.