8000 Feat - shutter network, UI changes, bridges update and validators by vanshika-srivastava · Pull Request #695 · gnosischain/documentation · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat - shutter network, UI changes, bridges update and validators #695

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

Merged
merged 54 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 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 8000
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
riccardoda 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
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
1 change: 1 addition & 0 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
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
< AE96 /div>
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.',
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.
Loading
0