-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from gnosischain/main
v0.7.2
- Loading branch information
Showing
11 changed files
with
243 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
description: Gnosis mainnet infrstructure details. | ||
keywords: [gnosis mainnet, mainnet, gnosis infrastructure, gnosis faucet, gno, xdai] | ||
--- | ||
|
||
# Gnosis (Mainnet) | ||
|
||
[Add to MetaMask](https://shanejonas.github.io/metamask-link/deep?method=wallet_addEthereumChain¶ms[0][chainId]=0x64¶ms[0][chainName]=Gnosis¶ms[0][rpcUrls][0]=https://rpc.gnosischain.com¶ms[0][nativeCurrency][name]=xDAI¶ms[0][nativeCurrency][symbol]=xDAI¶ms[0][nativeCurrency][decimals]=18¶ms[0][blockExplorerUrls][0]=https://blockscout.com/xdai/mainnet) | ||
|
||
## Summary | ||
|
||
| Network Name | Gnosis | | ||
| ------------------------------ | ------------------------------------------------------------- | | ||
| Native (fee) token | [xDai](../tokens/xdai.md) | | ||
| Staking token | [GNO](../tokens/gno.md) | | ||
| Chain ID | 100 | | ||
|
||
## Key Infra | ||
|
||
### Execution Layer | ||
|
||
| Execution Layer | | | ||
| ------------------------------ | -------------------------------------------------------------------- | | ||
| Execution Layer RPC | https://rpc.ap-southeast-1.gateway.fm/v1/gnosis/non-archival/mainnet | | ||
| Execution Layer RPC | https://rpc.gnosischain.com | | ||
| More RPC endpoints | [RPC Providers](../../tools/rpc/README.mdx) | | ||
| Execution Layer Explorer | https://gnosisscan.io | | ||
| Execution Layer Explorer | https://blockscout.com/xdai/mainnet | | ||
| Fork monitor | https://forkmon.gnosischain.com/ | | ||
| EthStats | https://ethstats.gnosischain.com/ | | ||
| Forked Blocks | https://blockscout.com/xdai/mainnet/reorgs | | ||
| Faucet | https://gnosisfaucet.com | | ||
|
||
|
||
|
||
### Consensus Layer | ||
|
||
| Consensus Layer | | | ||
| ------------------------------ | ------------------------------------------------------------- | | ||
| Beacon Explorer | https://beacon.gnosischain.com/ | | ||
| Beacon Explorer Backup 1 | https://beacon-v1.gnosischain.com/ | | ||
| Beacon Explorer Backup 2 | https://beacon-v2.gnosischain.com/ | | ||
| Beacon Checkpoint Sync | https://checkpoint.gnosis.gateway.fm | | ||
| Beacon Checkpoint Sync | https://checkpoint.gnosischain.com/ | | ||
| NodeWatch | https://nodewatch.gnosischain.com/ | | ||
|
||
### Other Tools | ||
|
||
| Other Tools | | | ||
| ------------------------------ | ------------------------------------------------------------- | | ||
| GnosisPools.info | https://gnosispools.info | | ||
| D14N Info | https://d14n.info/ | | ||
| Bordel | https://bordel.wtf/ | | ||
| More tools | [Tools](../../tools/README.md) | | ||
|
||
|
||
## Key Parameters | ||
| Param | Value | | ||
| ----------------- | --------- | | ||
| Slot Time | 5s | | ||
| Epoch | 16 slots | | ||
| Finalization Time | 2.7 min | | ||
| Staking Deposit | 1 GNO | | ||
|
||
## Native Tokens | ||
|
||
- Fee Token: [xDai](../tokens/xdai.md) | ||
- Staking Token: [GNO](../tokens/gno.md) | ||
|
||
## Network Config | ||
### Config Repo | ||
|
||
Gnosis maintains a [Configs Repo](https://github.com/gnosischain/configs/) that is the canonical source for Gnosis Chain networks. | ||
|
||
|
||
* [config.yaml](https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml) | ||
* [genesis.json](https://github.com/gnosischain/configs/blob/main/mainnet/genesis.json) | ||
* [GnosisDAO's Recommended CL Bootnodes](https://github.com/gnosischain/configs/blob/main/mainnet/bootnodes.yaml) | ||
* [Nethermind's Recommended CL Bootnodes](https://github.com/NethermindEth/ansible-deployments/blob/main/poa_networks/gnosis/inventory/data/bootnodes-beacon.json) | ||
* [Nethermind's Recommended EL Bootnodes](https://github.com/NethermindEth/ansible-deployments/blob/main/poa_networks/gnosis/inventory/data/bootnodes-execution.json) | ||
|
||
|
||
## Key Contracts | ||
|
||
- [xDai Bridge](../../bridges/tokenbridge/xdai-bridge#key-contracts) | ||
- [AMB Bridge](../../bridges/tokenbridge/amb-bridge#key-contracts) | ||
- [OmniBridge](../../bridges/tokenbridge/omnibridge#key-contracts) | ||
- [Beacon Chain](../../specs/gbc/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
title: Optimism | ||
description: Optimism implementation is deployed on Gnosis. Gnosis functions as the L1 (akin to Ethereum) and Optimism on Gnosis as the L2. | ||
keywords: [optimism, gnosis optimism] | ||
--- | ||
|
||
# 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](https://community.optimism.io/) with updated configs to match the Gnosis chain setup. | ||
|
||
|
||
| Parameter | Value | | ||
| -------------------------------- | ----------------------------------------------------------------------------- | | ||
| Network Name | Optimism on Gnosis | | ||
| Chain ID | 300 | | ||
| RPC Endpoint | https://optimism.gnosischain.com | | ||
| WebSocket Endpoint | wss://optimism.gnosischain.com/wss | | ||
| Block Explorer | [https://blockscout.com/xdai/optimism](https://blockscout.com/xdai/optimism) | | ||
| L1 (GC) Contract Addresses | [L1 Addresses](#l1-contract-addresses) | | ||
| L2 (Optimism) Contract Addresses | [L2 Addresses](#l2-contract-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](https://blockscout.com/xdai/mainnet/address/0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80/transactions) 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.` | ||
::: | ||
|
||
<details> | ||
<summary>Example using BlockScout</summary> | ||
|
||
1. Go to [https://blockscout.com/xdai/mainnet/address/0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80/write-proxy](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. | ||
|
||
![](/img/about/optimism/connect-wallet.png) | ||
|
||
3. 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. | ||
|
||
![](/img/about/optimism/method.png) | ||
|
||
</details> | ||
|
||
:::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](https://github.com/ethereum-optimism/optimism/tree/56961f9208af8a43a25a138cce21ef488c418141/packages/contracts/docs). | ||
|
||
| Contract | Address | | ||
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| BondManager | [0x730fE4431a00286Ff8dc7E9B03c661E63Ef05121](https://blockscout.com/xdai/mainnet/address/0x730fE4431a00286Ff8dc7E9B03c661E63Ef05121/transactions) | | ||
| CanonicalTransactionChain | [0x636434F59e52D50423bD8272FEB3B2bff5dF586b](https://blockscout.com/xdai/mainnet/address/0x636434F59e52D50423bD8272FEB3B2bff5dF586b/transactions) | | ||
| ChainStorageContainer-CTC-batches | [0xEc64fee4f95E48A3BAd799A5912F183d222086A8](https://blockscout.com/xdai/mainnet/address/0xEc64fee4f95E48A3BAd799A5912F183d222086A8/transactions) | | ||
| ChainStorageContainer-SCC-batches | [0x26EbaD990cC56ef36166d1C4114CEF25F024b75D](https://blockscout.com/xdai/mainnet/address/0x26EbaD990cC56ef36166d1C4114CEF25F024b75D/transactions) | | ||
| ChugSplashDictator | [0x77fAf5Aa4EB7874a676F773fc308e0FD8e9400f7](https://blockscout.com/xdai/mainnet/address/0x77fAf5Aa4EB7874a676F773fc308e0FD8e9400f7/transactions) | | ||
| ERC1820Registry | [x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24](https://blockscout.com/xdai/mainnet/address/0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24/transactions) | | ||
| L1StandardBridge | [0x3804bA4ecC886AAe91A6D57dE880616E17C8269C](https://blockscout.com/xdai/mainnet/address/0x3804bA4ecC886AAe91A6D57dE880616E17C8269C/transactions) | | ||
| OVM\_L1CrossDomainMessenger | [0x6A52b1dbE0293F1ba1bc136b0f8C8f0395F940b9](https://blockscout.com/xdai/mainnet/address/0x6A52b1dbE0293F1ba1bc136b0f8C8f0395F940b9/transactions) | | ||
| OVM\_Proposer | [0xE57cfefE4B7EddE88af28d4ffB3BD63b272f578A](https://blockscout.com/xdai/mainnet/address/0xE57cfefE4B7EddE88af28d4ffB3BD63b272f578A/transactions) | | ||
| OVM\_Sequencer | [0xFDCa025dB7368A84deeCc0d82598eB90638D52DF](https://blockscout.com/xdai/mainnet/address/0xFDCa025dB7368A84deeCc0d82598eB90638D52DF/transactions) | | ||
| Proxy\_\_OVM\_L1CrossDomainMessenger | [0x4324fdD26161457f4BCc1ABDA87709d3Be8Fd10E](https://blockscout.com/xdai/mainnet/address/0x4324fdD26161457f4BCc1ABDA87709d3Be8Fd10E/transactions) | | ||
| Proxy\_\_OVM\_L1StandardBridge | [0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80](https://blockscout.com/xdai/mainnet/address/0x184a119d4C1D08A459FCfBFe7ECc051c163B4c80/transactions) | | ||
| StateCommitmentChain | [0xbAE5EA90F4A1dFBC1b0D145453f371E06287a6D8](https://blockscout.com/xdai/mainnet/address/0xbAE5EA90F4A1dFBC1b0D145453f371E06287a6D8/transactions) | | ||
|
||
|
||
## L2 Contract Addresses | ||
|
||
* Optimism L2 contracts can be explored at [https://blockscout.com/xdai/optimism](https://blockscout.com/xdai/optimism) | ||
* Additional Info related to specific contracts is [available here](https://github.com/ethereum-optimism/optimism/tree/56961f9208af8a43a25a138cce21ef488c418141/packages/contracts/docs). | ||
* Summaries for [relevant predeploys here](https://github.com/ethereum-optimism/optimism/blob/8d67991aba584c1703692ea46273ea8a1ef45f56/specs/protocol/components/predeploys.md). | ||
|
||
| Contract | Address | | ||
| ---------------------------- | ------------------------------------------ | | ||
| OVM\_L2ToL1MessagePasser | 0x4200000000000000000000000000000000000000 | | ||
| OVM\_L1MessageSender | 0x4200000000000000000000000000000000000001 | | ||
| OVM\_DeployerWhitelist | 0x4200000000000000000000000000000000000002 | | ||
| OVM\_ECDSAContractAccount | 0x4200000000000000000000000000000000000003 | | ||
| OVM\_SequencerEntrypoint | 0x4200000000000000000000000000000000000005 | | ||
| OVM\_ETH | 0x4200000000000000000000000000000000000006 | | ||
| OVM\_L2CrossDomainMessenger | 0x4200000000000000000000000000000000000007 | | ||
| Lib\_AddressManager | 0x4200000000000000000000000000000000000008 | | ||
| OVM\_ProxyEOA | 0x4200000000000000000000000000000000000009 | | ||
| OVM\_L2StandardBridge | 0x4200000000000000000000000000000000000010 | | ||
| OVM\_SequencerFeeVault | 0x4200000000000000000000000000000000000011 | | ||
| OVM\_ExecutionManagerWrapper | 0x420000000000000000000000000000000000000B | | ||
| OVM\_GasPriceOracle | 0x420000000000000000000000000000000000000F | | ||
|
||
## Graph Protocol | ||
|
||
When starting the graph-node the network key is: **`optimism`** | ||
|
||
* Graph [https://graph-optimism.gnosischain.com/](https://graph-optimism.gnosischain.com/) | ||
* Admin [https://admin-graph-optimism.gnosischain.com/](https://admin-graph-optimism.gnosischain.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.