Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Validator Deposits section #697

Merged
merged 58 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
8e496a7
Merge main into dev (#665)
giacomognosis Apr 26, 2024
4df65ae
Update README, add instructions on deployments to production (#667)
giacomognosis Apr 29, 2024
d7f981e
Core Devs Call April 24, 2024
0xarmagan Apr 29, 2024
c789778
chore: update hardforks info (#668)
4rgon4ut May 3, 2024
d2de8bd
small fix
vanshika-srivastava May 10, 2024
035adcc
grammar fixes
vanshika-srivastava May 10, 2024
3d44379
Add files via upload
0xarmagan May 13, 2024
6614732
Update README.md
0xarmagan May 15, 2024
22def27
fix for developer broken page link
vanshika-srivastava May 17, 2024
2093180
chore: update bridges addresses info
zengzengzenghuy May 27, 2024
6580138
Feature/improve ci (#675)
giacomognosis May 27, 2024
2b85238
chore: update bridges FAQ
zengzengzenghuy May 28, 2024
5e3a647
chore: update Sepolia-Chiado testnet bridges addresses
zengzengzenghuy May 28, 2024
d36e72c
Add files via upload
0xarmagan May 31, 2024
d1be1ed
fix broken mdx files
vanshika-srivastava May 31, 2024
4a0d72d
broken links, package updates
vanshika-srivastava Jun 3, 2024
82893c0
remove mGNO related content
vanshika-srivastava Jun 4, 2024
91bf248
Add files via upload
0xarmagan Jun 12, 2024
174524a
refactor(bridges): remove outdated content and consolidate bridge val…
zengzengzenghuy Jun 12, 2024
bf157f8
Added Option 3: "Running Your Own Deposit UI Instance Locally" (#672)
xdecentralix Jun 12, 2024
e124f76
added links to third party bridges and update legacy UI section
vanshika-srivastava Jun 12, 2024
fb93a20
bridges update
vanshika-srivastava Jun 12, 2024
d38065c
reconfigure bridge segment
vanshika-srivastava Jun 13, 2024
5dfc47b
new segment form
vanshika-srivastava Jun 14, 2024
1ce4a90
fix a broken link
vanshika-srivastava Jun 14, 2024
7f1e237
small fixes
vanshika-srivastava Jun 14, 2024
325af30
faq: update bridge FAQs
zengzengzenghuy Jun 19, 2024
f3f84f2
Add files via upload
0xarmagan Jun 20, 2024
a6da00c
Update 06-19-core-devs-call.md
0xarmagan Jun 20, 2024
51cf172
updated docs on The Graph (#683)
alinobrasil Jun 21, 2024
7bf33f0
add pyth to oracle (#686)
aditya520 Jun 26, 2024
3867703
Add Chronicle to Oracles list (#685)
biancabuzea200 Jun 26, 2024
49da592
Add files via upload
0xarmagan Jun 26, 2024
4393131
added api3 updated docs
vanshika-srivastava Jun 27, 2024
acd8356
fixed accorn error
vanshika-srivastava Jun 27, 2024
df388a9
chore(bridge): add AMB Helper contract adddress for Chiado & remove d…
zengzengzenghuy Jul 1, 2024
5d8471e
Merge branch 'main' into dev
vanshika-srivastava Jul 2, 2024
cceb811
fix(bridge): swap Gateway validator address
zengzengzenghuy Jul 3, 2024
3faed5b
Update README.md
0xarmagan Jul 8, 2024
5c7cd15
add: concurrency config to workflows
riccardo-gnosis Jul 10, 2024
ee848d0
setup shutterized gc nav bar and id
vanshika-srivastava Jul 10, 2024
538c395
Finalize merge from origin/dev
vanshika-srivastava Jul 10, 2024
6180f2a
Update Covalent content to reflect rebrand to GoldRush (#694)
harishraisinghani Jul 11, 2024
0cd401f
shutterized network gnosis specifications added
vanshika-srivastava Jul 11, 2024
cac5465
setup shutterized gc nav bar and id
vanshika-srivastava Jul 11, 2024
65b8876
add a network component button and render in md file
vanshika-srivastava Jul 11, 2024
6ef6cce
add a network component button and render in md file
vanshika-srivastava Jul 11, 2024
a542cf0
change shutter network navig
vanshika-srivastava Jul 17, 2024
8682ccb
feat(bridge): add Hashi-Gnosis contracts audits
zengzengzenghuy Jul 17, 2024
b4c3d68
tweak the css of feature card && add shutter card
ilge-ustun Jul 17, 2024
1228adf
updated shutter network details, minor changes for validator page
vanshika-srivastava Jul 17, 2024
8b37e10
Merge branch 'main' into dev
vanshika-srivastava Jul 17, 2024
a4e1086
changenetwork.js file updated
vanshika-srivastava Jul 17, 2024
aa184e5
fix:spacing
zengzengzenghuy Jul 17, 2024
f027620
fix: update Validator Deposits section (#696)
Wagalidoom Jul 18, 2024
20c655f
typo
vanshika-srivastava Jul 18, 2024
fd2adc8
Merge branch 'main' into dev
vanshika-srivastava Jul 18, 2024
861810f
chore(bridge): upload Hashi Gnosis Final Audit Reports
zengzengzenghuy Jul 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/bridges/audits.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ keywords: [omnibridge audit, xdai bridge audit, security audit]

The OmniBridge and xDai Bridge have undergone multiple independent security audits and assessments. We have engaged in the auditing process after introducing major functionality, and have acknowledged and/or fixed all issues found during these audits. Audit results are presented starting with the most recent.

## Hashi integration by Omega, g0, Least Authority

The scope for auditing includes the following repos:

1. https://github.com/gnosis/hashi except for GiriGiriBashi.sol
2. AMB: https://github.com/crosschain-alliance/tokenbridge-contracts/tree/feat/hashi-integration-amb
3. XDAI: https://github.com/crosschain-alliance/tokenbridge-contracts/tree/feat/hashi-integration-xdai-bridge

### Omega

**Completed**: June 27, 2024
**Conclusion**: 1 high severity issues, 4 low severity issues, 10 info issues. All issues has been resolved or acknowledged.
**Audit Report**:[Omega-Gnosis-Hashi Final Audit Report](../../static/files/Omega-Gnosis-Hashi%20Final%20Report.pdf)

### g0

(intermediate reports, final pending)

**Completed**: June 28, 2024
**Conclusion**: 1 critical issue, 3 medium issues, 4 minor issues, 4 note issues. All issues has been resolved or acknowledged.
**Audit Report**:[g0-Gnosis-Hashi Audit Report](../../static/files//g0%20-%20Gnosis%20Hashi%20Audit%20Report.pdf)

### Least Authority

(intermediate reports, final pending)

**Completed**: June 12, 2024
**Conclusion**: 4 issues, 13 suggestions. All issues has been resolved or acknowledged.
**Audit Report**:[Least Authority-Gnosis-Hashi Audit Report](../../static/files/Least%20Authority-Gnosis%20Hash%20Audit%20Report.pdf)

## xDAI bridge upgrade Audit by Omega and ChainSafe

### Omega
Expand Down
34 changes: 21 additions & 13 deletions docs/node/manual/validator/deposit.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Validator Deposits
sidebar_position : 2
---

## Overview
Expand Down Expand Up @@ -33,7 +34,7 @@ In this example we use MetaMask.

![](/img/node/UI-1A.png)

![](/img/node/UI-2A.png)
![](/img/node/UI-2A.jpg)

### Step 2: Upload `deposit_data.json`

Expand All @@ -43,23 +44,23 @@ In this example we use MetaMask.
If you can't upload the file, you may want to check the file permissions to make sure the user account you are logged in as has read permissions. You can grant permissions using the `sudo chmod` command.
:::

<img src="/img/node/upload-info1.png" width="500" />
![](/img/node/upload-info1.jpg)

### Step 3: Validate Deposit data

3. The app will validate the json file and list the number of validator deposits you are making and the required GNO to deposit. Click **Deposit** to continue.

<img src="/img/node/deposit-2.png" width="500" />
![](/img/node/deposit-2.png)

### Step 4: Acknowledge Risks
<!-- ### Step 4: Acknowledge Risks

4. Check that you understand the risks and [ensure you are interacting with the correct contract](#step-5-verify-transaction-parameters) before proceeding.

<img src="/img/node/deposit-3.png" width="500" />
<br />
<img src="/img/node/deposit-4.png" width="500" />
<img src="/img/node/deposit-4.png" width="500" /> -->

### Step 5: Verify Transaction Parameters
### Step 4: Verify Transaction Parameters

You are responsible for the transaction. Fraudulent websites might try to lure you into sending funds to them, instead of the official deposit contract. Make sure that you are sending the transaction with the correct data.

Expand Down Expand Up @@ -90,15 +91,15 @@ Check that the transaction's data includes the Deposit Contract address ([0x0B98

:::

### Step 6: Complete Deposit
### Step 5: Complete Deposit

5. Complete the deposit.
4. Complete the deposit.

![](/img/node/confirm.png)

![](/img/node/dep-made.png)

### Step 7: Validator Activation
### Step 6: Validator Activation

:::tip

Expand All @@ -110,6 +111,13 @@ It will take about 1.5 hours for your validators to start proposing and attestin
- This is roughly 1 hour and 25 minutes before the validators start proposing and attesting blocks on the Gnosis Chain.
- Once live, you can view your validator(s) on the explorer. Copy the pubkey(s) listed in the deposit_data.json file (a key will be generated for each validator as "pubkey": "&lt;your-public-key&gt;") and paste into the search box at [https://gnosischa.in/](https://gnosischa.in/).

### Step 7 (optional): Subscribe Autoclaim

5. Select the Autoclaim Rewards tab. Set the frequency and minimum threshold for automatic token claims based on your preference. After configuring, click **Register** to continue.


![](/img/node/autoclaim.jpg)

## Option 2: Direct interaction with Contracts

A modification to the Gnosis Chain deposit contract allows you to deposit in batches (this functionality is not available for the ETH2 deposit contract). One transaction can be used to initiate deposits for up to 128 validators. The assumption is that every validator deposits 1 GNO in every entry of the batch. The following script simplifies the process.
Expand Down Expand Up @@ -241,8 +249,8 @@ It will take about 1.5 hours for your validators to start proposing and attestin

Required:

1. Chiado Testnet xDai: https://faucet.chiadochain.net/
2. Chiado Testnet GNO: This can be obtained from discord upon request
1. Chiado Testnet xDai and GNO: https://faucet.chiadochain.net/
2. Connect to Deposit UI [https://deposit.gnosischain.com/](https://deposit.gnosischain.com) using Gnosis Chiado Testnet and follow the Option 1: Deposit UI.

You can run the [deposit UI](https://deposit.gnosischain.com) locally following its repository `README` instructions:
[https://github.com/gnosischain/gbc-deposit-ui#gnosis-beacon-chain-deposit-ui](https://github.com/gnosischain/gbc-deposit-ui#gnosis-beacon-chain-deposit-ui)
<!-- You can run the [deposit UI](https://deposit.gnosischain.com) locally following its repository `README` instructions:
[https://github.com/gnosischain/gbc-deposit-ui#gnosis-beacon-chain-deposit-ui](https://github.com/gnosischain/gbc-deposit-ui#gnosis-beacon-chain-deposit-ui) -->
2 changes: 2 additions & 0 deletions docs/node/manual/validator/generate-keys/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Generate Validator Keys
sidebar_position : 1

---

The purpose of the validator private key is to actively sign on-chain operations such as block proposals and attestations.
Expand Down
12 changes: 3 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,16 @@ const config = {
to: "updates",
position: "left",
label: "Updates",
},
{
type: "docSidebar",
position: "left",
sidebarId: "shutterizedgc",
label: "Shutterized Gnosis Chain",
},
},
{
type: "docSidebar",
position: "right",
position: "left",
sidebarId: "faq",
label: "FAQ",
},
{
href: "https://ecosystem.gnosischain.com/",
position: "right",
position: "left",
label: "Ecosystem",
},
{
Expand Down
28 changes: 16 additions & 12 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';

const FeatureList = [
const FeatureList = [
{
id: 0,
title: 'Build on Gnosis Chain',
Expand All @@ -13,7 +13,8 @@ const FeatureList = [
{
id: 1,
title: 'Bridge to Gnosis',
subtitle: 'Use Gnosis Bridges to bridge tokens from different chains and vice versa',
subtitle:
'Use Gnosis Bridges to bridge tokens from different chains and vice versa',
link: '/bridges',
Svg: require('@site/static/img/features/bridge.svg').default,
},
Expand All @@ -26,25 +27,28 @@ const FeatureList = [
},
{
id: 3,
title : 'Tools for Builders',
link : '/tools',
subtitle: 'RPC Providers, Faucets, etc. Everything you need to to develop on Gnosis.',
title: 'Tools for Builders',
link: '/tools',
subtitle:
'RPC Providers, Faucets, etc. Everything you need to to develop on Gnosis.',
vanshika-srivastava marked this conversation as resolved.
Show resolved Hide resolved
Svg: require('@site/static/img/features/tools.svg').default,
},
{
id: 4,
title: 'Technical guide for Developer integrations',
subtitle: 'Learn how to build interactive dApps on Gnosis chain with different developer integration, SDKs and APIs',
title: 'Technical guides',
subtitle:
'Check out different developer integrations, SDKs on Gnosis Chain',
link: '/technicalguides',
Svg: require('@site/static/img/features/guide.svg').default,
},
{
id: 5,
title : 'Contribute to Gnosis developer ecosystem',
subtitle: 'Coming up soon.',
link : '/',
Svg: require('@site/static/img/features/ecosystem.svg').default,
}
title: 'Shutterized Gnosis Chain',
subtitle:
'Learn about Shutterized Gnosis Chain, RPC details and more.',
link: '/shutterized-gc',
Svg: require('@site/static/img/features/shutter.svg').default,
},
];

function Feature({Svg, title, subtitle, link}) {
Expand Down
19 changes: 15 additions & 4 deletions src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

.featureCard {
background: #F0EBDE;
background: rgba(255, 255, 255, 0.10); /* #F0EBDE; */
border-radius: 20px;
padding: 1rem 1rem 1rem 1rem;
max-width: 350px;
Expand All @@ -45,6 +45,7 @@
width: 95%;
text-align: center;
min-width: 300px;
color: #F0EBDE;
}

@media screen and (max-width: 320px) {
Expand All @@ -64,35 +65,45 @@
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 1rem;
color: #F0EBDE;
}

.featureCard h5 {
flex-grow: 1;
font-size: 1rem;
color: #F0EBDE;
}

.featureCard p {
margin-bottom: 0;
text-decoration: underline;
font-size: 1rem;
font-weight: bold;
color: #F0EBDE;
}

.featureImg {
height: 140px;
width: 140px;
display: flex;
flex-direction: column;
justify-content: center; /* Center horizontally */
align-items: center;
border-radius: 50%;
background-color: #F0EBDE;
padding: 15px;
margin: 5px;
}

.featureSvg {
height: 140px;
width: 140px;
height: 100%;
width: 100%;
}

.featureCard h3,
.featureCard h5,
.featureCard p {
color: #3E6957;
color: #F0EBDE;
}

/* [data-theme='dark'] .featureCard h3,h5,p {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.homePage h5,
.homePage span {
font-family: 'GT Planar', sans-serif;
color: white;
color: #F0EBDE;
}

.container {
Expand Down
50 changes: 19 additions & 31 deletions src/utils/changeNetwork.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,31 @@
import React from 'react';
import Button from '@site/src/components/Button';

// JavaScript function for changing or adding the network
export async function changeOrAddNetwork() {
const chainId = '0x64';
if (window.ethereum) {
try {
// Try to switch to the network
const chainParams = {
chainId: chainId,
rpcUrls: ["https://erpc.gnosis.shutter.network"],
chainName: "Shutterized Gnosis Chain",
nativeCurrency: {
name: "XDAI",
symbol: "XDAI",
decimals: 18
},
blockExplorerUrls: ["https://www.gnosisscan.io"]
};

console.log('Attempting to add network:', chainParams.chainName); // Debugging

await window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: chainId }],
method: 'wallet_addEthereumChain',
params: [chainParams],
});
console.log('Switched to the network with chainId:', chainId);
} catch (switchError) {
if (switchError.code === 4902) {
try {
const chainParams = {
chainId: chainId,
rpcUrls: ["https://erpc.gnosis.shutter.network"],
chainName: "Shutterized Gnosis Chain",
nativeCurrency: {
name: "xDai",
symbol: "xDAI",
decimals: 18
},
blockExplorerUrls: ["https://www.gnosisscan.com"]
};

await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [chainParams],
});
console.log('Network added and switched to:', chainParams.chainName);
} catch (addError) {
console.error('Failed to add the network:', addError);
}
} else {
console.error('Failed to switch the network:', switchError);
}
console.log('Network added and switched to:', chainParams.chainName); // Debugging
} catch (addError) {
console.error('Failed to add the network:', addError);
}
} else {
console.error('MetaMask is not installed!');
Expand Down
Binary file not shown.
Binary file added static/files/Omega-Gnosis-Hashi Final Report.pdf
Binary file not shown.
Binary file added static/files/g0 - Gnosis Hashi Audit Report.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions static/img/features/shutter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/node/UI-1A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/node/UI-2A.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/node/UI-2A.png
Binary file not shown.
Binary file added static/img/node/autoclaim.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/node/confirm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/node/dep-made.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/node/deposit-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/node/upload-info1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/node/upload-info1.png
Binary file not shown.
Loading