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

chore: remove goerli #832

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npm run dev

`NET` is used for setting the default network, setting it to `mainnet` uses the public Ethereum network. If it is not set it defaults to Sepolia testnet.
It can also take any network names that Ethers.JS supports, such as `sepolia`, `maticmum`, etc.
However do note that there are only drag & drop demo files provided for main net, goerli(deprecated), sepolia and polygon mumbai.
However do note that there are only drag & drop demo files provided for main net, sepolia and polygon mumbai.

E.g:

Expand Down
7 changes: 4 additions & 3 deletions cms/faq/how-does-tradetrust-utilise-blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ title: "Why does it use public blockchains? "
date: 2020-01-01T16:00:00.000Z
type: Product
---
As TradeTrust is designed to facilitate trusted digital document exchanges used in cross-border trade and logistics processes, our target audiences therefore involve many different parties across different geographies. Blockchain or Distributed Ledger Technology is used as it can demonstrate provenance, which is required for the legitimacy of documents such as Bills of Lading. One of UNCITRAL MLETR’s requirements for electronic transferable records is to ensure singularity of the record. TradeTrust uses Non-Fungible Tokens (NFTs) to satisfy this requirement when dealing with Transferable documents and Blockchain is used to record the NFT transactions.

TradeTrust relies on public blockchain technology (either Ethereum or Polygon) to electronically endorse and transfer the ownership of a trade financing document amongst the stakeholders along a trade flow. TradeTrust’s use of public blockchain was a deliberate choice as in a global setting, there should not be a need for a central authority or body to govern the use of a network and gatekeep participation. Public blockchains also allow for an open and interoperable system that enables all international parties to participate.
As TradeTrust is designed to facilitate trusted digital document exchanges used in cross-border trade and logistics processes, our target audiences therefore involve many different parties across different geographies. Blockchain or Distributed Ledger Technology is used as it can demonstrate provenance, which is required for the legitimacy of documents such as Bills of Lading. One of UNCITRAL MLETR’s requirements for electronic transferable records is to ensure singularity of the record. TradeTrust uses Non-Fungible Tokens (NFTs) to satisfy this requirement when dealing with Transferable documents and Blockchain is used to record the NFT transactions.

TradeTrust relies on public blockchain technology (either Ethereum or Polygon) to electronically endorse and transfer the ownership of a trade financing document amongst the stakeholders along a trade flow. TradeTrust’s use of public blockchain was a deliberate choice as in a global setting, there should not be a need for a central authority or body to govern the use of a network and gatekeep participation. Public blockchains also allow for an open and interoperable system that enables all international parties to participate.

TradeTrust caters to the following blockchain networks.

1. **Mainnet**: <https://www.tradetrust.io>. In the mainnet it supports the Ethereum and Polygon (beta) network.
2. **Testnet**: <https://dev.tradetrust.io>. In the testnet environment, it utilises the goerli, sepolia and Polygon Mumbai network. Please note sepolia and goerli are Ethereum test network. The Polygon Mumbai is the test network for Polygon (beta).
2. **Testnet**: <https://dev.tradetrust.io>. In the testnet environment, it utilises the sepolia and Polygon Mumbai network. Please note sepolia is Ethereum test network. The Polygon Mumbai is the test network for Polygon (beta).
2 changes: 1 addition & 1 deletion src/common/contexts/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// import { MAGIC_API_KEY } from "../../config";

// export const magic = new Magic(MAGIC_API_KEY, {
// network: "goerli", // fix to goerli network only
// network: "sepolia", // fix to sepolia network only
// });

const dummyMagic: unknown = {}; // HOT FIX (removal of magic demo until we make a decision whether to kill it or not)
Expand Down
2 changes: 1 addition & 1 deletion src/components/CertificateViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const CertificateViewer: FunctionComponent<CertificateViewerProps> = ({ i
const { currentChainId } = useProviderContext();

/* Update the certificate when network is changed UNLESS:
- it is Magic Demo certificate, as the network does not change for it (fixed at Goerli).
- it is Magic Demo certificate, as the network does not change for it (fixed at Sepolia).
- it is Sample certificate, as it is already updated when user changed network from network selector dropdown provided by website UI (not the metamask extension network selector)
*/
useEffect(() => {
Expand Down
7 changes: 1 addition & 6 deletions src/config/chain-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,4 @@ export const MAIN_NETWORKS = [
/**
* Supported networks in development environment
*/
export const TEST_NETWORKS = [
ChainId.Goerli, // Deprecated
ChainId.Sepolia,
ChainId.PolygonMumbai,
ChainId.APOTHEM,
];
export const TEST_NETWORKS = [ChainId.Sepolia, ChainId.PolygonMumbai, ChainId.APOTHEM];
9 changes: 0 additions & 9 deletions src/constants/chain-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export enum ChainId {
Ethereum = 1,

// Ethereum Testnet
Goerli = 5,
Sepolia = 11155111,

// Polygon
Expand Down Expand Up @@ -60,14 +59,6 @@ export const ChainInfo: ChainInfo = {
networkLabel: "Ethereum",
explorerUrl: "https://etherscan.io",
},
[ChainId.Goerli]: {
label: "Goerli",
chainId: ChainId.Goerli,
iconImage: "/static/images/networks/ethereum.gif",
networkName: "goerli",
networkLabel: "Goerli",
explorerUrl: "https://goerli.etherscan.io",
},
[ChainId.Sepolia]: {
label: "Sepolia",
chainId: ChainId.Sepolia,
Expand Down
2 changes: 1 addition & 1 deletion src/services/verify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const customVerifier = (provider: providers.Provider | undefined) =>
verificationBuilder([...openAttestationVerifiers, openAttestationDidIdentityProof], verificationOption(provider));

const demoVerifier = verificationBuilder([...openAttestationVerifiers, openAttestationDidIdentityProof], {
network: "goerli",
network: "sepolia",
});

export const verifyDocument = async (
Expand Down
Loading