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

[Feat] Added support for Ethereum Classic network #120

Merged
merged 1 commit into from
Jun 28, 2024
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
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/"
}
}
}
];
Loading