Skip to content

Commit

Permalink
Merge pull request #496 from gnosischain/main
Browse files Browse the repository at this point in the history
merge from main
  • Loading branch information
zengzengzenghuy authored Aug 17, 2023
2 parents 8d0a50f + ebfa86b commit e4d0fcb
Show file tree
Hide file tree
Showing 35 changed files with 973 additions and 919 deletions.
7 changes: 7 additions & 0 deletions docs/bridges/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ Tokens that are bridged using [Omnibridge](/bridges/tokenbridge/omnibridge) are
## Roadmap

Gnosis has a [long-term roadmap](/bridges/roadmap) to move towards trustless bridges, and is actively funding research and development in this area.

## Feedback & Suggestion

We would love to hear from you on suggestions and ideas on bridges in Gnosis Chain.

- [Gnosis Bridges Improvement Proposals](https://docs.google.com/forms/d/1V5RH7rIcHw-7JSePErUNutWO_p59HwbbsNedoWidTKA/viewform?edit_requested=true)
- [AMB developers form](https://docs.google.com/forms/d/1wj31wGZ2sxMd_n35ZTavqegQo8XEp2C9brBPLFwCMn0/viewform?edit_requested=true#responses)
2 changes: 1 addition & 1 deletion docs/bridges/governance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ There are currently 16 Bridge Governors, of which 8-of-16 are required to pass a
| 1Hive | 0x86Da253817DC599059e3AD5A1F098F7b96aBf34c |
| Peerion | 0x1685324Bf373670ad5C9c56bd88A1dc1C063b0f9 |
| 01Node | 0x0101016044726994aFd16f4A99f0d960090D35e7 |
| Cow Protocol | 0x262d23a2d916f6CF08e0235315aA51E22d142d0b |
| Cow Protocol | 0xAC0622953d25e1a6c4e0f32Ffc1A9C1cE350B60E |
| Safe | 0xDdf2d07267EAF2cE3E13ee4319bE1F34D55ed992 |
| Agave | 0xc44caeb7F0724A156806664d2361fD6f32a2d2C8 |

Expand Down
7 changes: 0 additions & 7 deletions docs/bridges/hashi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,20 @@ By using domain=5 and blockNo a blockNumber that has been reported by the oracle
| Contract | Deployed on | Address |
| ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| Hashi | Gnosis Chain | [0xf59aedc291e0aF64943541709cdd041D992b4De4](https://gnosis.blockscout.com/address/0xf59aedc291e0aF64943541709cdd041D992b4De4) |
| Yaru | Gnosis Chain | [0x49E64aa15AD51D20Ed91d0a7900deb442A8AfEa6](https://gnosisscan.io/address/0x49E64aa15AD51D20Ed91d0a7900deb442A8AfEa6) |
| Yaho | Gnosis Chain | [0xE67eA33c115afe3F03bc80bBBBB747fB13c039D6](https://gnosisscan.io/address/0xE67eA33c115afe3F03bc80bBBBB747fB13c039D6) |
| ShoyuBashi | Gnosis Chain | [0x31a8E89D6f98454D38C03eCA3DC543F6581d607C](https://gnosisscan.io/address/0x31a8e89d6f98454d38c03eca3dc543f6581d607c) |
| HeaderStorage | Gnosis Chain | [0xB256d8a90852DBb222653ab89b611c2426011C0D](https://gnosisscan.io/address/0xB256d8a90852DBb222653ab89b611c2426011C0D) |
| AMB Header Reporter | Gnosis Chain | [0x5DE3417a21eEd340836C9c1339913b60743b3470](https://gnosisscan.io/address/0x5DE3417a21eEd340836C9c1339913b60743b3470) |
| AMB Adapter | Gnosis Chain | [0x32Cd442309cA6E79Db2194aac61024FBD2B14eb9](https://gnosis.blockscout.com/address/0x32Cd442309cA6E79Db2194aac61024FBD2B14eb9) |
| AMB | Gnosis Chain | [0x9f696CF3c1a0A418cBBFD6E1ab3EBe8A78971Dea](https://gnosisscan.io/address/0x9f696CF3c1a0A418cBBFD6E1ab3EBe8A78971Dea) |
| AMB Message Relay | Gnosis Chain | [0x6D6c06DD4a2D731F502ef092473bD210f603ec06](https://gnosisscan.io/address/0x6D6c06DD4a2D731F502ef092473bD210f603ec06) |
| Telepathy Adapter | Gnosis Chain | [0x2f1E51a2763FB67fe09971Fd8d849716137A3357](https://gnosis.blockscout.com/address/0x2f1E51a2763FB67fe09971Fd8d849716137A3357) |
| Telepathy Light Client | Gnosis Chain | [0x34b5378DE786389a477b40dD710812c250185f83](https://gnosisscan.io/address/0x34b5378DE786389a477b40dD710812c250185f83) |
| Sygma Adapter | Gnosis Chain | [0x9AD7a6f4FDA8247cC0bF5932B68c5b619937dB15](https://gnosisscan.io/address/0x9AD7a6f4FDA8247cC0bF5932B68c5b619937dB15) |
| Sygma | Gnosis Chain | [0xd2d95f7611c83b1f9041539557810033aC7B8742](https://gnosisscan.io/address/0xd2d95f7611c83b1f9041539557810033aC7B8742) |
| Dendreth Adapter | Gnosis Chain | [0x719523EaF5CFd101Ef501C64597613FBB7aEdED9](https://gnosisscan.io/address/0x719523EaF5CFd101Ef501C64597613FBB7aEdED9) |
| Dendreh Light Client | Gnosis Chain | [0x983df74d1ef68b4ff1fff11a28c06e5c097435da](https://gnosisscan.io/address/0x983df74d1ef68b4ff1fff11a28c06e5c097435da) |
| Yaho | Goerli | [0xaC790dbd0130dC8f1f998b58Dd4d6710E858BD92](https://goerli.etherscan.io/address/0xac790dbd0130dc8f1f998b58dd4d6710e858bd92) |
| Yaru | Goerli | [0x27c646d33de54cFE327AD277986d3965fb75b579](https://goerli.etherscan.io/address/0x27c646d33de54cFE327AD277986d3965fb75b579) |
| HeaderStorage | Goerli | [0x4cd014ac64aaa899b46bf3a477b68bb67e33edc4](https://goerli.etherscan.io/address/0x4cd014ac64aaa899b46bf3a477b68bb67e33edc4) |
| AMB Header Reporter | Goerli | [0xedc0b1d3de4496e0d917af42f29cb71eb2982319](https://goerli.etherscan.io/address/0xedc0b1d3de4496e0d917af42f29cb71eb2982319) |
| AMB Message Relay | Goerli | [0x8B28114DE935206217d799916170d9351C882775](https://goerli.etherscan.io/address/0x8b28114de935206217d799916170d9351c882775) |
| AMB | Goerli | [0x01268DB05965CeAc2a89566c42CD550ED7eE5ECD](https://goerli.etherscan.io/address/0x01268DB05965CeAc2a89566c42CD550ED7eE5ECD) |
| Hashi | Goerli | [0x6a948572432818DeBbb04A0b82b6c12ec5Ca15B5](https://goerli.etherscan.io/address/0x6a948572432818DeBbb04A0b82b6c12ec5Ca15B5) |
| Sygma Header Reporter | Goerli | [0x2f96d347c932ac73b56e9352ecc0707e25173d88](https://goerli.etherscan.io/address/0x2f96d347c932ac73b56e9352ecc0707e25173d88) |
| Sygma | Goerli | [0x5cEA5130c49dCd262B9482E0A76eCE8b23Ae45Df](https://goerli.etherscan.io/address/0x5cEA5130c49dCd262B9482E0A76eCE8b23Ae45Df) |

Expand Down
11 changes: 11 additions & 0 deletions docs/bridges/tokenbridge/amb-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ Once the user initiate cross-chain method via AMB on Ethereum, it will take ~12

For more details, check out [Telepathy Validator for Omnibridge](https://hackmd.io/@wdyZgTm3RrOsm-rhXDXEHA/BJ_7ExKgn) and https://docs.telepathy.xyz/.

### How to check if AMB is down (not relaying message)

In certain circumstances, i.e. hardfork, AMB will be planned for downtime (not relaying message) to ensure security of the bridge. Planned downtime will be announced in public channel like Discord and Twitter, prior to the event.
There is also another way to check whether the AMB is down or not by reading `maxGasPerTx` value on AMB contract.

In the current configuration, `maxGasPerTx` is set to 4000000 on [Ethereum](https://etherscan.io/address/0x4C36d2919e407f0Cc2Ee3c993ccF8ac26d9CE64e#readProxyContract) and 2000000 on [Gnosis Chain](https://gnosisscan.io/address/0x75Df5AF045d91108662D8080fD1FEFAd6aA0bb59#readProxyContract).

The AMB is down when `maxGasPerTx` is set to 0, only by owner of the contract.

By setting `maxGasPerTx` to 0, the [condition in `_sendMessage()`](https://github.com/gnosischain/tokenbridge-contracts/blob/master/contracts/upgradeable_contracts/arbitrary_message/MessageDelivery.sol#L40) will not pass, meaning, the bridge is down/stopped.

### Security Considerations for Receiving a Call

| Concern | Remediation |
Expand Down
2 changes: 1 addition & 1 deletion docs/bridges/tutorials/using-omnibridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ These screenshots were taken back when Basic Attention Token (BAT) was first bri
Viewing the ALM app:
![](/img/bridges/omni-tokentransfer6.jpg)
:::note
Back when BAT was first bridged, only 2/3 confirmations were required. Now the validator set has expanded so 4/7 confirmations are required.
Back when BAT was first bridged, only 2/3 confirmations were required. Now the validator set has expanded so 4/8 confirmations are required.
::: 6. After a successful transfer, you can check the token on BlockScout to see that it exists. Check Bridged tokens at https://blockscout.com/xdai/mainnet/bridged-tokens.
![](/img/bridges/omni-tokentransfer7.jpg) 7. Note the contract address and be sure to [add the token to your wallet](https://metamask.zendesk.com/hc/en-us/articles/360015489031-How-to-add-unlisted-tokens-custom-tokens-in-MetaMask#h_01FWH492CHY60HWPC28RW0872H).

Expand Down
Binary file modified static/img/bridges/hashi/Hashi-Goerli-GC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 35 additions & 35 deletions updates/2023/01-25-core-devs-call.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Core Devs Call - 25/01/2023
title: Core Devs Call - 2023/01/25
authors: [alebanzas, armaganercan]
tags: [CoreDevsCall, gnosis]
---
Expand All @@ -8,7 +8,6 @@ tags: [CoreDevsCall, gnosis]

![](https://i.imgur.com/i8hjL8X.png)


## Call Info

Hello everyone from the weekly Gnosis Core Devs Call. This meeting is repeated on Wednesday every week. Watch on [Gnosis Chain YouTube channel](https://www.youtube.com/watch?v=UUDl-Zyl6pA)
Expand All @@ -17,53 +16,54 @@ Participants: Erigon, Gateway, Nethermind, Gnosis DevOps, Gnosis Core Devs, Gnos

### Topics:

* Shanghai upgrades details from Nethermind
* RPC updates from Gateway
* Suggestion from Stefan: Increase base fee to 1GWEI?
- Shanghai upgrades details from Nethermind
- RPC updates from Gateway
- Suggestion from Stefan: Increase base fee to 1GWEI?

Let's take a look at the core devs call updates.

## Erigon

* Chiado: Might be finished this month
* Mainnet: Erigon got stuck while syncing mainnet twice, reboot helped
* Also affects other networks
* Not seen in 2.36.1 yet
* Work going on for withdrawals (for Ethereum mainnet)
* We should review the specs for Gnosis when everyone is back, because there’s some new context
- Chiado: Might be finished this month
- Mainnet: Erigon got stuck while syncing mainnet twice, reboot helped
- Also affects other networks
- Not seen in 2.36.1 yet
- Work going on for withdrawals (for Ethereum mainnet)
- We should review the specs for Gnosis when everyone is back, because there’s some new context

## Gateway

* Launched archival RPC (Gnosis mainnet)
* Will launch a website with the new public RPC
* Launching checkpoint sync for Chiado (probably today)
* Fixed an issue with the rate limiter that was too eager
* Looking into looking a bridge validator on Chiado, and then on mainnet
* Waiting for Giacomo to accept traffic on the RPC
- Launched archival RPC (Gnosis mainnet)
- Will launch a website with the new public RPC
- Launching checkpoint sync for Chiado (probably today)
- Fixed an issue with the rate limiter that was too eager
- Looking into looking a bridge validator on Chiado, and then on mainnet
- Waiting for Giacomo to accept traffic on the RPC

## Nethermind

* Implementation for withdrawals on Gnosis (and mainnet)
* Only missing part is the smart contract used for withdrawals
* Stefan: Ihor will write the contracts (WIP, ETA: 1 month)
- Implementation for withdrawals on Gnosis (and mainnet)
- Only missing part is the smart contract used for withdrawals
- Stefan: Ihor will write the contracts (WIP, ETA: 1 month)

### Stefan: Increase base fee to 1GWEI? ‍
* Allows us to make constant spamming very costly. Currently it is too cheap.
* Current base fee: 7 wei -> extremely cheap to spam the network for a long time
* Increasing the base fee to 1 gwei would make it expensive to spam the network even for 10 minutes
* Would require a simple hard fork, which could be included in another hard fork
#### Jorge (Nethermind)‍
* No strong opinion
* The computation limit is bound by the gas limit anyways
* Sustained loads would increase the gas price exponentially as per EIP-1559
* On Chiado, a spam of 30 - 60 minutes increased the base fee to hundreds of gwei
* The main idea is to prevent nefarious actors to put relevant transactions on hold for some time, which would degrade user experience

## Gnosis DevOps
- Allows us to make constant spamming very costly. Currently it is too cheap.
- Current base fee: 7 wei -> extremely cheap to spam the network for a long time
- Increasing the base fee to 1 gwei would make it expensive to spam the network even for 10 minutes
- Would require a simple hard fork, which could be included in another hard fork

* Chiado RPC routing implemented (testing with Gateway), then mainnet
* 2 Chiado long-term bootnodes
* Update configs
#### Jorge (Nethermind)‍

- No strong opinion
- The computation limit is bound by the gas limit anyways
- Sustained loads would increase the gas price exponentially as per EIP-1559
- On Chiado, a spam of 30 - 60 minutes increased the base fee to hundreds of gwei
- The main idea is to prevent nefarious actors to put relevant transactions on hold for some time, which would degrade user experience

## Gnosis DevOps

- Chiado RPC routing implemented (testing with Gateway), then mainnet
- 2 Chiado long-term bootnodes
- Update configs
Loading

0 comments on commit e4d0fcb

Please sign in to comment.