Skip to content

Commit

Permalink
[Feat] Added support for Ethereum Classic network (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-singh09 authored Jun 28, 2024
1 parent d50eaac commit 489eb8b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codepreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
if: ${{ (github.head_ref || github.ref_name) != 'main' }}
run: CI=false npm run build:sepolia-testnet

# CI=false disables reporting warnings as errors
- name: Prepare build (pr)
if: ${{ (github.head_ref || github.ref_name) != 'main' }}
run: CI=false npm run build:ethereum-classic-mordor

# CI=false disables reporting warnings as errors
- name: Prepare build (main)
if: ${{ (github.head_ref || github.ref_name) == 'main' }}
Expand Down
19 changes: 19 additions & 0 deletions env/ethereum-classic-mordor.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
###############
# APPLICATION #
###############
REACT_APP_BLOCKCHAIN_URI=https://rpc.mordor.etccooperative.org
REACT_APP_CHAIN_ID=63
REACT_APP_DJED_ADDRESS=0xD4548F4b6d08852B56cdabC6be7Fd90953179d68
REACT_APP_FEE_UI=0
REACT_APP_UI=0x0232556C83791b8291E9b23BfEa7d67405Bd9839
REACT_APP_EXPLORER=https://etc-mordor.blockscout.com/
REACT_APP_BC=Ethereum Classic Mordor
REACT_APP_PROTOCOL_CHAIN_DESCRIPTION=Ethereum Classic originated from a hard fork of the original Ethereum blockchain in July 2016, maintaining the untampered history of the Ethereum network.
REACT_APP_CHAIN_COIN=ETC
REACT_APP_SC_NAME=Ethereum Classic Stable Dollar
REACT_APP_SC_SYMBOL=ECSD
REACT_APP_RC_NAME=Ethereum Classic Reserve Surplus Share
REACT_APP_RC_SYMBOL=ECRS
REACT_APP_LIMIT_PER_TXN=10000
REACT_APP_EVM_RESERVECOIN_ADDRESS=0x8d2C17FAd02B7bb64139109c6533b7C2b9CADb81
REACT_APP_EVM_STABLECOIN_ADDRESS=0xffD4505B3452Dc22f8473616d50503bA9E1710Ac
21 changes: 21 additions & 0 deletions src/utils/web3/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,26 @@ export const supportedChains = [
blockExplorers: {
etherscan: { name: "", url: "https://sepolia.etherscan.io/" }
}
},
{
id: 63,
name: "Ethereum Classic Mordor",
network: "Ethereum Classic Mordor",
nativeCurrency: {
name: "METC",
symbol: "METC",
decimals: 18
},
rpcUrls: {
public: { http: ["https://rpc.mordor.etccooperative.org/"] },
default: { http: ["https://rpc.mordor.etccooperative.org/"] }
},
blockExplorers: {
etherscan: { name: "", url: "" },
default: {
name: "Blockscout",
url: "https://etc-mordor.blockscout.com/"
}
}
}
];

1 comment on commit 489eb8b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview ready at https://main.djed.codepreview.io

Powered by https://codepreview.io community edition.

Please sign in to comment.