Skip to content

Commit

Permalink
Merge pull request #311 from gnosischain/main
Browse files Browse the repository at this point in the history
v0.7.2
  • Loading branch information
alebanzas authored Dec 7, 2022
2 parents cd7a6cf + df90af2 commit 4bea63a
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 15 deletions.
22 changes: 15 additions & 7 deletions docs/about/networks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ keywords: [network, gnosis mainnet, chiado, testnet, gnosis testnet, gnosis fauc

# Networks

| Network Name | Gnosis (mainnet) | Chiado (testnet) |
## Networks summary

| Network Name | [Gnosis (mainnet)](./mainnet.md) | [Chiado (testnet)](./chiado.md) |
|--------------------|-----------------------------------|-------------------------------------------|
| Native (fee) token | xDAI | Chiado xDAI |
| Chain ID | 100 | 10200 |
| EL RPC | https://rpc.gnosischain.com/ | https://rpc.chiadochain.net |
| EL Explorer | https://gnosisscan.io/ | https://blockscout.chiadochain.net |
| CL Explorer | https://gnosisscan.io/ | https://beacon.chiadochain.net/ |
| Fork monitor | | TBA |
| EthStats | https://dai-netstat.poa.network/ | TBA |
| EL RPC | https://rpc.gnosischain.com | https://rpc.chiadochain.net |
| EL Explorer | https://gnosisscan.io | https://blockscout.chiadochain.net |
| CL Explorer | https://beacon.gnosischain.com | https://beacon.chiadochain.net |
| Fork monitor | https://forkmon.gnosischain.com | https://forkmon.chiadochain.net |
| EthStats | https://ethstats.gnosischain.com | https://ethstats.chiadochain.net |
| Faucet | https://gnosisfaucet.com | https://gnosisfaucet.com |

## Chiado reset
Expand All @@ -25,4 +27,10 @@ Chiado testnet was rebooted with a new chain id, explorer and RPC endpoints.
If you are developing on Chiado:
- Re-synchronize your nodes
- Point your app to the new RPC endpoint
- Get help on [discord](https://discord.gg/gnosischain)
- Get help on [discord](https://discord.gg/gnosischain)

## Optimism on Gnosis

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

[More details](./optimism.md)
2 changes: 2 additions & 0 deletions docs/about/networks/chiado.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ keywords: [chiado, testnet, gnosis testnet, gnosis faucet, gno on chiado, xdai o

# Chiado (Testnet)

[Add to MetaMask](https://shanejonas.github.io/metamask-link/deep?method=wallet_addEthereumChain&params[0][chainId]=0x27D8&params[0][chainName]=Chiado&params[0][rpcUrls][0]=https://rpc.chiadochain.net&params[0][nativeCurrency][name]=Chiado%20xDAI&params[0][nativeCurrency][symbol]=xDAI&params[0][nativeCurrency][decimals]=18&params[0][blockExplorerUrls][0]=https://blockscout.chiadochain.net)

![Chiado Train Station](../../../static/img/about/chiado.jpg)
Image: Trams in Lisbon (credit: [Lisa Fotios](https://www.pexels.com/photo/people-at-city-1534560/))

Expand Down
88 changes: 88 additions & 0 deletions docs/about/networks/mainnet.md
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&params[0][chainId]=0x64&params[0][chainName]=Gnosis&params[0][rpcUrls][0]=https://rpc.gnosischain.com&params[0][nativeCurrency][name]=xDAI&params[0][nativeCurrency][symbol]=xDAI&params[0][nativeCurrency][decimals]=18&params[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)
116 changes: 116 additions & 0 deletions docs/about/networks/optimism.md
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/)
9 changes: 8 additions & 1 deletion docs/bridges/governance/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ keywords: [governance board, bridge governance]
The [Bridge Governance Board](./#current-bridge-governors) is responsible for enacting updates related to bridge functionality, contract upgrades, and other parameters impacting bridge operations. The following items have been implemented by the board.


## Add Karpatkey and remove Syncnode from the set of validators of AMB & xDAI Bridges

🗳 Justification: Syncnode team requested to be removed from the validator set. In the same time addition of Karpatkey validator creates additional reliability and decentralization of validators set.

✅ Implemented: December 4, 2022


## Remove Funds from lending protocols AAVE and Compound and disable Interest Function on Omni Bridge and xDAI Bridge

🗳 Justification: reduce risk and exposure during the uncertainty that came with the merge. After the merge, a new strategy must be developed in order to define how to approach this type of investment considering the implications related to transparency to the users and the risk involved.
Expand Down Expand Up @@ -259,4 +266,4 @@ Increase the amount of blocks required for confirmation on the Ethereum Mainnet
🗳 Justification: Increase decentralization by extending the governance and the bridge validators set to include Syncnode.

✅ Governor Set Implemented: January 22, 2021
✅ Oracle Implemented: January 7, 2021
✅ Oracle Implemented: January 7, 2021
3 changes: 1 addition & 2 deletions docs/bridges/tokenbridge/amb-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For a message/tokens to be relayed to another network, bridge validators need to
|------------------------------------------------------------------------------------------------------------------------|-------------------|
| [gno:0x459a3bd49f1ff109bc90b76125533699aaaaf9a6](https://gnosisscan.io/address/0x459a3bd49f1ff109bc90b76125533699aaaaf9a6) | Protofire |
| [gno:0x105CD22eD3D089Bf5589C59b452f9dE0796Ca52d](https://gnosisscan.io/address/0x105CD22eD3D089Bf5589C59b452f9dE0796Ca52d) | Giveth |
| [gno:0x19aC7c69e5F1AC95b8d49b30Cbb79e81f1ab0dba](https://gnosisscan.io/address/0x19ac7c69e5f1ac95b8d49b30cbb79e81f1ab0dba) | Syncnode |
| [gno:0xfa98b60e02a61b6590f073cad56e68326652d094](https://gnosisscan.io/address/0xfa98b60e02a61b6590f073cad56e68326652d094) | Karpatkey |
| [gno:0xbdc141c8d2343f33f40cb9edd601ccf460cd0dde](https://gnosisscan.io/address/0xbdc141c8d2343f33f40cb9edd601ccf460cd0dde) | GnosisDAO |
| [gno:0x674c97db4ce6cac04a124d745979f3e4cba0e9f0](https://gnosisscan.io/address/0x674c97db4ce6cac04a124d745979f3e4cba0e9f0) | Cow Protocol |
| [gno:0x258667E543C913264388B33328337257aF208a8f](https://gnosisscan.io/address/0x258667E543C913264388B33328337257aF208a8f) | Gnosis Safe |
Expand All @@ -56,7 +56,6 @@ For a message/tokens to be relayed to another network, bridge validators need to
|------------------------------------------------------------------------------------------------------------------------|-------------------|
| [gno:0x459a3bd49f1ff109bc90b76125533699aaaaf9a6](https://gnosisscan.io/address/0x459a3bd49f1ff109bc90b76125533699aaaaf9a6) | Protofire |
| [gno:0x105cd22ed3d089bf5589c59b452f9de0796ca52d](https://gnosisscan.io/address/0x105CD22eD3D089Bf5589C59b452f9dE0796Ca52d) | Giveth |
| [gno:0x19ac7c69e5f1ac95b8d49b30cbb79e81f1ab0dba](https://gnosisscan.io/address/0x19ac7c69e5f1ac95b8d49b30cbb79e81f1ab0dba) | Syncnode |
| [gno:0x9adb7385b598843c36fa057e45bc70542516e35d](https://gnosisscan.io/address/0x9adb7385b598843c36fa057e45bc70542516e35d) | GnosisDAO |
| [gno:0x13f3912ea00878cdb63ee5f02cf8ab65988efd2a](https://gnosisscan.io/address/0x13f3912ea00878cdb63ee5f02cf8ab65988efd2a) | Cow Protocol |
| [gno:0x5333588897ce6de00031dc30cd2d6881e5c517fb](https://gnosisscan.io/address/0x5333588897ce6de00031dc30cd2d6881e5c517fb) | Gnosis Safe |
Expand Down
Loading

0 comments on commit 4bea63a

Please sign in to comment.