forked from cheapETH/cheapeth-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl2.html
More file actions
78 lines (60 loc) · 3.22 KB
/
Copy pathl2.html
File metadata and controls
78 lines (60 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<pre>
Network Name: cheapOptimism
New RPC URL: https://l2.cheapeth.org/rpc
Chain ID: 96
Currency Symbol: ocTH
<a href=https://expedition.dev/?rpcUrl=https://l2.cheapeth.org/rpc>L2 Block Explorer</a>
<hr>
How to deposit cheapETH L1 -> L2:
Send cTH to 0xb4E258d801b0830985a27F74ed9DbFE5bc85bA69 (the L2DepositForwarder contract below)
Wait a bit, and you'll see the ocTH
On optimism, ocTH is an ERC20 called owETH at address 0x4200000000000000000000000000000000000006
Add it to metamask as a token to send your owETH and spread the owETH love!
<hr>
Deploying contracts with remix:
cheapOptimism doesn't run the EVM, it runs the OVM, and hence needs a different solidity compiler.
1. Go to remix.ethereum.org
2. Add compiler (ethereum-optimism/solc-js/master-0.7): https://l2.cheapeth.org/data/soljson.js
3. Make sure your metamask is on cheapOptimism.
4. Enjoy!
<hr>
// SPDX-License-Identifier: MIT
pragma solidity >0.5.0;
interface iOVM_L1ETHGateway {
function depositTo(address _to) external payable;
}
contract L2DepositForwarder {
receive() external payable {
iOVM_L1ETHGateway(0x974B6EC6DC5D0b51CA045E8cA94e4A3b22f0e096).depositTo{value: msg.value}(msg.sender);
}
}
<hr>
List of deployed contracts running L2 on cheapETH:
"AddressManager": "0xFDcc31104b4ed9853981d5512cEBFbFD46dbCBE9",
"OVM_Sequencer": "0xf219e91d368b7C9e6c742ABe1591179cF28EBC52",
"Deployer": "0xf219e91d368b7C9e6c742ABe1591179cF28EBC52",
"OVM_L2CrossDomainMessenger": "0xb0f8D0995C54bc6D6638bC5F65AA0531162a0FAC",
"OVM_L1CrossDomainMessenger": "0xfF285d141A86249f0Ab29b62E73Ff83709BDB6D4",
"Proxy__OVM_L1CrossDomainMessenger": "0x6FB8D1B6e084F20915bEAE21fC3934Ec770eB120",
"OVM_L1ETHGateway": "0x974B6EC6DC5D0b51CA045E8cA94e4A3b22f0e096",
"OVM_L1MultiMessageRelayer": "0x0AD2D4B5CdC98BCd7dee89332598B0ddfb505271",
"OVM_CanonicalTransactionChain": "0xBc0be08E277695578cCb8B1b6Dc60aa41D1120b6",
"OVM_StateCommitmentChain": "0x73d91D97673DB7BBaC58328FC2d92D885d753453",
"OVM_DeployerWhitelist": "0x82A0A456f11E54F46Dc8022E1f72098345ab1A3B",
"OVM_L1MessageSender": "0x20F4d6FE0E677ADfCc2d7B5C6412ce4511ce55f7",
"OVM_L2ToL1MessagePasser": "0x99e5a980D95765ce196fDB317Aa78220889A7b57",
"OVM_SafetyChecker": "0xc6e4E6F88D6292aeb90a368bf40A4287435dAfAB",
"OVM_ExecutionManager": "0x330fCd5206E7204C25830526FaD9C1c240ab307A",
"OVM_StateManager": "0x2b563Ea6bb051A0DebaAe4f1d2206bD526681A59",
"OVM_StateManagerFactory": "0xeD8C21724F1C37e9429C97aD8eC914654cC3f719",
"OVM_FraudVerifier": "0xa3Ca94279ecF96B096439802fF5E944Fd62CfA7D",
"OVM_StateTransitionerFactory": "0x9A674628cdcfFF0Bf69bb44e169B645Ca1a46c1b",
"OVM_ECDSAContractAccount": "0x86E113178B76b8A84399E435B1774B059d187858",
"OVM_SequencerEntrypoint": "0x70a456DE341854d4524fb6C25c3Eb8C55a480285",
"OVM_ProxySequencerEntrypoint": "0x591342e3457b9Bb66BB25CD14C40FF0c5f6bF94D",
"mockOVM_ECDSAContractAccount": "0x58a344F4532390e649F2dfD3111c66f88b7aC57e",
"OVM_BondManager": "0x1Bb637440e6f60ad18646BC07c0a2db227337D84",
"OVM_ETH": "0xba8e733dd8c0E73E797b5de693801184A461839b",
"OVM_ChainStorageContainer:CTC:batches": "0x265282c65B0988f25aDC59E5F5e80E3839eD9F45",
"OVM_ChainStorageContainer:CTC:queue": "0x6E68a1D4BdF57E04A7d8F9F0BfD5e05bA2161aec",
"OVM_ChainStorageContainer:SCC:batches": "0x77E2f3b4740C6eBa65193C44f13C191DaeC4001b"