Skip to content

Commit

Permalink
feat: removal of hedera network (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongquan1 authored Dec 3, 2024
1 parent 9f780af commit b2b8ca9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 62 deletions.
25 changes: 12 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@tradetrust-tt/tt-verify": "^9.1.0"
"@tradetrust-tt/tt-verify": "^9.2.0"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
Expand Down
4 changes: 1 addition & 3 deletions src/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export const networks = [
"sepolia",
"xdc",
"xdcapothem",
"hederatestnet",
"hederamainnet",
"stabilitytestnet",
"stability",
"astron",
Expand All @@ -18,4 +16,4 @@ export type networkName = (typeof networks)[number];

export type networkType = "production" | "test" | "development";

export type networkCurrency = "ETH" | "MATIC" | "XDC" | "HBAR" | "FREE" | "ASTRON";
export type networkCurrency = "ETH" | "MATIC" | "XDC" | "FREE" | "ASTRON";
9 changes: 0 additions & 9 deletions src/constants/supportedChains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ describe("supportedChains", () => {
expect(currency).toBe("XDC");
expect(explorerUrl).toBe("https://apothem.xdcscan.io");
});
it("should hederatestnet chain info correctly", () => {
const { id, name, type, currency, explorerUrl } = SUPPORTED_CHAINS[CHAIN_ID.hederatestnet];

expect(id).toBe(CHAIN_ID.hederatestnet);
expect(name).toBe("hederatestnet");
expect(type).toBe("test");
expect(currency).toBe("HBAR");
expect(explorerUrl).toBe("https://hashscan.io/testnet");
});
it("should stabilitytestnet chain info correctly", () => {
const { id, name, type, currency, explorerUrl } = SUPPORTED_CHAINS[CHAIN_ID.stabilitytestnet];

Expand Down
34 changes: 1 addition & 33 deletions src/constants/supportedChains.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { networkName, networkType, networkCurrency } from "./network";
import { iconEthereum, iconHedera, iconPolygon, iconStability, iconXDC, iconAstron } from "../static/icons";
import { iconEthereum, iconPolygon, iconStability, iconXDC, iconAstron } from "../static/icons";
import "dotenv/config";

export enum CHAIN_ID {
Expand All @@ -10,8 +10,6 @@ export enum CHAIN_ID {
sepolia = "11155111",
xdc = "50",
xdcapothem = "51",
hederatestnet = "296",
hederamainnet = "295",
stabilitytestnet = "20180427",
stability = "101010",
astron = "1338",
Expand Down Expand Up @@ -133,36 +131,6 @@ export const SUPPORTED_CHAINS: supportedChains = {
decimals: 18,
},
},
[CHAIN_ID.hederatestnet]: {
id: CHAIN_ID.hederatestnet,
label: "Hedera Testnet Network",
name: "hederatestnet",
type: "test",
currency: "HBAR",
iconImage: iconHedera,
explorerUrl: "https://hashscan.io/testnet",
rpcUrl: "https://testnet.hashio.io/api",
nativeCurrency: {
name: "HBAR",
symbol: "HBAR",
decimals: 18,
},
},
[CHAIN_ID.hederamainnet]: {
id: CHAIN_ID.hederamainnet,
label: "Hedera MainNet Network",
name: "hederamainnet",
type: "production",
currency: "HBAR",
iconImage: iconHedera,
explorerUrl: "https://hashscan.io/mainnet",
rpcUrl: "https://mainnet.hashio.io/api",
nativeCurrency: {
name: "HBAR",
symbol: "HBAR",
decimals: 18,
},
},
[CHAIN_ID.stabilitytestnet]: {
id: CHAIN_ID.stabilitytestnet,
label: "Stability Testnet Network",
Expand Down
Loading

0 comments on commit b2b8ca9

Please sign in to comment.