Skip to content

Commit

Permalink
Feat - shutter network, UI changes, bridges update and validators (#695)
Browse files Browse the repository at this point in the history
* Merge main into dev (#665)

* Core Devs Call Notes April 18, 2024 (#660)

* Add files via upload

* new bridges draft - 1

* change bridge architecture

* bridges section update

* updated legacy links for bridges

* dev links updated

* links for bridges

* screenshots

* bridges ss

* fix(bridges): typo

* Core Devs Call April 3, 2024 (#654)

* fix: using datadir instead of validator-dir (#647)

* node structure and updates (#648)

* metadata test

* thumbnail

* thumbnail

* thumbnail fix

* thumbnail fix

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* minor fixes

* Solve conflicts

* Add files via upload

* Update README.md

updated and edited some part

* Update depositWithdrawalReward.md

* Update generalQuestions.md

* hard-fork info

* governance summary added

* fixing validator section

* config for redirects

* fixed node structure

* Update _category_.json

---------

Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: Armagan Ercan <armaggan@pm.me>

* Add files via upload (#650)

* Bridge UI related changes for docs (#652)

* Add files via upload

* new bridges draft - 1

* change bridge architecture

* bridges section update

* updated legacy links for bridges

* dev links updated

* links for bridges

* screenshots

* bridges ss

---------

Co-authored-by: Vanshika

---------

Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Vanshika Srivastava <vanshikasrivastava.business@gmail.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>

* Add files via upload

* added new provider for data indexing, some minor link changes

* fixed redirect for media kit

* added zerodev segment

* resolve configuration error

* Add CI for manual deployments to production, rename deploy.yml to dev_deploy.yml which handles deploys to dev/staging only (#658)

Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>

* Add slack_release_notifications.yml (#659)

Co-authored-by: Giacomo Licari <giacomo@gnosis.io>

* Add files via upload

* Update authors.yml

* fix: build error

* bridge: add governance proposal (unlocked EURe due to bridge UI issue)

* Added RPC nodes to moralis section (#662)

---------

Co-authored-by: Vanshika <vanshikasrivastava.business@gmail.com>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>
Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: giacomognosis <157793591+giacomognosis@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.io>
Co-authored-by: Filip Martinsson <martinsson.filip@gmail.com>

* Added RPC nodes to moralis section (#662) (#664)

* Add files via upload

* new bridges draft - 1

* change bridge architecture

* bridges section update

* updated legacy links for bridges

* dev links updated

* links for bridges

* screenshots

* bridges ss

* fix(bridges): typo

* Core Devs Call April 3, 2024 (#654)

* fix: using datadir instead of validator-dir (#647)

* node structure and updates (#648)

* metadata test

* thumbnail

* thumbnail

* thumbnail fix

* thumbnail fix

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* added image for metadata

* minor fixes

* Solve conflicts

* Add files via upload

* Update README.md

updated and edited some part

* Update depositWithdrawalReward.md

* Update generalQuestions.md

* hard-fork info

* governance summary added

* fixing validator section

* config for redirects

* fixed node structure

* Update _category_.json

---------

Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: Armagan Ercan <armaggan@pm.me>

* Add files via upload (#650)

* Bridge UI related changes for docs (#652)

* Add files via upload

* new bridges draft - 1

* change bridge architecture

* bridges section update

* updated legacy links for bridges

* dev links updated

* links for bridges

* screenshots

* bridges ss

---------

Co-authored-by: Vanshika

---------

Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Vanshika Srivastava <vanshikasrivastava.business@gmail.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>

* Add files via upload

* added new provider for data indexing, some minor link changes

* fixed redirect for media kit

* added zerodev segment

* resolve configuration error

* Add CI for manual deployments to production, rename deploy.yml to dev_deploy.yml which handles deploys to dev/staging only (#658)

Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>

* Add slack_release_notifications.yml (#659)

Co-authored-by: Giacomo Licari <giacomo@gnosis.io>

* Add files via upload

* Update authors.yml

* fix: build error

* bridge: add governance proposal (unlocked EURe due to bridge UI issue)

* Added RPC nodes to moralis section (#662)

---------

Co-authored-by: Armagan Ercan <armaggan@pm.me>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>
Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: giacomognosis <157793591+giacomognosis@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.io>
Co-authored-by: Filip Martinsson <martinsson.filip@gmail.com>

* CI: fix tag regex

* CI: fix tag name in tag release

* CI: fix missing permissions

---------

Co-authored-by: Armagan Ercan <armaggan@pm.me>
Co-authored-by: Vanshika <vanshikasrivastava.business@gmail.com>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>
Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: Filip Martinsson <martinsson.filip@gmail.com>

* Update README, add instructions on deployments to production (#667)

* Core Devs Call April 24, 2024

* chore: update hardforks info (#668)

* chore: update clients versions

* chore: add dancun hardfork hashes

* chore: add shapella schedule table

* small fix

* grammar fixes

* Add files via upload

* Update README.md

updated cover image

* fix for developer broken page link

* chore: update bridges addresses info

* Feature/improve ci (#675)

* CI: update actions, improve tag fetching

* CI: add cache invalidation

* chore: update bridges FAQ

* chore: update Sepolia-Chiado testnet bridges addresses

* Add files via upload

* fix broken mdx files

* broken links, package updates

* remove mGNO related content

* Add files via upload

* refactor(bridges): remove outdated content and consolidate bridge validator & bridge governance into bridge management (#680)

* refactor(bridge): refactor 'Understanding Token Bridgess'

* chore(bridge): update Hashi-related info

* chore(bridges): move all bridge governance and validators contents under 'bridge management'

* chore(bridges): remove outdated content and update info

* Added Option 3: "Running Your Own Deposit UI Instance Locally" (#672)

* added links to third party bridges and update legacy UI section

* bridges update

* reconfigure bridge segment

* new segment form

* fix a broken link

* faq: update bridge FAQs

* Add files via upload

* Update 06-19-core-devs-call.md

* updated docs on The Graph (#683)

* add pyth to oracle (#686)

* Add Chronicle to Oracles list (#685)

* Add Chronicle to Oracles list

* Add link for support

* Add files via upload

* added api3 updated docs

* fixed accorn error

* chore(bridge): add AMB Helper contract adddress for Chiado & remove duplicated governance content

* fix(bridge): swap Gateway validator address

* Update README.md

added optional hardwares

* add: concurrency config to workflows

* setup shutterized gc nav bar and id

* Update Covalent content to reflect rebrand to GoldRush (#694)

* shutterized network gnosis specifications added

* add a network component button and render in md file

* add a network component button and render in md file

* change shutter network navig

* feat(bridge): add Hashi-Gnosis contracts audits

* tweak the css of feature card && add shutter card

* updated shutter network details, minor changes for validator page

* changenetwork.js file updated

* fix:spacing

---------

Co-authored-by: giacomognosis <157793591+giacomognosis@users.noreply.github.com>
Co-authored-by: Armagan Ercan <armaggan@pm.me>
Co-authored-by: zengzengzenghuy <tayzh2799@gmail.com>
Co-authored-by: cgi-bin/ <6095048+sven-hash@users.noreply.github.com>
Co-authored-by: Giacomo Licari <giacomo@gnosis.pm>
Co-authored-by: Filip Martinsson <martinsson.filip@gmail.com>
Co-authored-by: 4rgon4ut <59182467+4rgon4ut@users.noreply.github.com>
Co-authored-by: zengzengzenghuy <85567868+zengzengzenghuy@users.noreply.github.com>
Co-authored-by: Felix <95569029+xdecentralix@users.noreply.github.com>
Co-authored-by: AK <alikim@gmail.com>
Co-authored-by: Aditya Arora <arora.aditya520@gmail.com>
Co-authored-by: biancabuzea200 <34369307+biancabuzea200@users.noreply.github.com>
Co-authored-by: Armagan Ercan <armagan.ercan@gnosis.io>
Co-authored-by: riccardo <106812074+riccardo-gnosis@users.noreply.github.com>
Co-authored-by: Harish Raisinghani <harishraisinghani@users.noreply.github.com>
Co-authored-by: ilge.ustun <153606956+ilge-ustun@users.noreply.github.com>
  • Loading branch information
17 people authored Jul 17, 2024
1 parent 854a492 commit 5adfe5b
Show file tree
Hide file tree
Showing 16 changed files with 107 additions and 57 deletions.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.

0 comments on commit 5adfe5b

Please sign in to comment.