Skip to main content

Optimism on Gnosis

danger

This is an experimental implementation. Use at your own risk. Deposited funds may not be withdrawable.

An Optimism implementation is deployed on Gnosis. Gnosis functions as the L1 (akin to Ethereum) and Optimism on Gnosis as the L2.

Deployment processes are similar to using Optimism with Ethereum with updated configs to match the Gnosis chain setup.

ParameterValue
Network NameOptimism on Gnosis
Chain ID300
RPC Endpointhttps://optimism.gnosischain.com
WebSocket Endpointwss://optimism.gnosischain.com/wss
Block Explorerhttps://blockscout.com/xdai/optimism
L1 (GC) Contract AddressesL1 Addresses
L2 (Optimism) Contract AddressesL2 Addresses

Make a Deposit

danger

This is an experimental implementation. Use at your own risk. Deposited funds may not be withdrawable.

Deposits are initiated through the Proxy__OVM_L1StandardBridge contract on the Gnosis Chain with the depositETH method and the following inputs:

  • _l2Gas: 200000
  • data: 0x
  • value: Deposit value in xDai (ie. 0.1 = 0.1 xDai)
info

Some smart contract wallets are blocked from calling the depositETH (and depositERC20) methods. If you want to deposit using a smart contract wallet you can use the depositETHTo function instead.

Example using BlockScout
  1. Go to https://blockscout.com/xdai/mainnet/address/0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80/write-proxy

  2. Connect a web3 wallet like MetaMask that contains some xDai for funding and gas fees.

  1. Scroll down to the depositETH method and enter the following:
  • _l2Gas: 200000
  • _data: 0x
  • value: Deposit value in xDai
  • Click Write and complete the transaction with your wallet.

info

It may take several minutes for the deposit to be processed and the balance to update on the Optimism on GC Chain.

L1 Contract Addresses

Additional Info related to specific contracts is available here.

ContractAddress
BondManager0x730fE4431a00286Ff8dc7E9B03c661E63Ef05121
CanonicalTransactionChain0x636434F59e52D50423bD8272FEB3B2bff5dF586b
ChainStorageContainer-CTC-batches0xEc64fee4f95E48A3BAd799A5912F183d222086A8
ChainStorageContainer-SCC-batches0x26EbaD990cC56ef36166d1C4114CEF25F024b75D
ChugSplashDictator0x77fAf5Aa4EB7874a676F773fc308e0FD8e9400f7
ERC1820Registryx1820a4B7618BdE71Dce8cdc73aAB6C95905faD24
L1StandardBridge0x3804bA4ecC886AAe91A6D57dE880616E17C8269C
OVM_L1CrossDomainMessenger0x6A52b1dbE0293F1ba1bc136b0f8C8f0395F940b9
OVM_Proposer0xE57cfefE4B7EddE88af28d4ffB3BD63b272f578A
OVM_Sequencer0xFDCa025dB7368A84deeCc0d82598eB90638D52DF
Proxy__OVM_L1CrossDomainMessenger0x4324fdD26161457f4BCc1ABDA87709d3Be8Fd10E
Proxy__OVM_L1StandardBridge0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80
StateCommitmentChain0xbAE5EA90F4A1dFBC1b0D145453f371E06287a6D8

L2 Contract Addresses

ContractAddress
OVM_L2ToL1MessagePasser0x4200000000000000000000000000000000000000
OVM_L1MessageSender0x4200000000000000000000000000000000000001
OVM_DeployerWhitelist0x4200000000000000000000000000000000000002
OVM_ECDSAContractAccount0x4200000000000000000000000000000000000003
OVM_SequencerEntrypoint0x4200000000000000000000000000000000000005
OVM_ETH0x4200000000000000000000000000000000000006
OVM_L2CrossDomainMessenger0x4200000000000000000000000000000000000007
Lib_AddressManager0x4200000000000000000000000000000000000008
OVM_ProxyEOA0x4200000000000000000000000000000000000009
OVM_L2StandardBridge0x4200000000000000000000000000000000000010
OVM_SequencerFeeVault0x4200000000000000000000000000000000000011
OVM_ExecutionManagerWrapper0x420000000000000000000000000000000000000B
OVM_GasPriceOracle0x420000000000000000000000000000000000000F

Graph Protocol

When starting the graph-node the network key is: optimism