diff --git a/public/static/images/networks/Hedera.png b/public/static/images/networks/Hedera.png new file mode 100644 index 000000000..1ed643c7f Binary files /dev/null and b/public/static/images/networks/Hedera.png differ diff --git a/src/config/chain-config.ts b/src/config/chain-config.ts index 7cdc1736b..58c9b66e8 100644 --- a/src/config/chain-config.ts +++ b/src/config/chain-config.ts @@ -7,9 +7,10 @@ export const MAIN_NETWORKS = [ ChainId.Ethereum, // ChainId.Polygon, ChainId.XDC, + ChainId.HederaMainnet, ]; /** * Supported networks in development environment */ -export const TEST_NETWORKS = [ChainId.Sepolia, ChainId.PolygonMumbai, ChainId.APOTHEM]; +export const TEST_NETWORKS = [ChainId.Sepolia, ChainId.PolygonMumbai, ChainId.APOTHEM, ChainId.HederaTestnet]; diff --git a/src/constants/chain-info.ts b/src/constants/chain-info.ts index 851f4678f..7e363f0ee 100644 --- a/src/constants/chain-info.ts +++ b/src/constants/chain-info.ts @@ -18,7 +18,7 @@ export interface ChainInfoObject { export const InitialAddress = "0x0000000000000000000000000000000000000000"; export const BurnAddress = "0x000000000000000000000000000000000000dEaD"; -export const AvailableBlockChains = ["ETH", "MATIC", "XDC"]; +export const AvailableBlockChains = ["ETH", "MATIC", "XDC", "HBAR"]; type ChainInfo = Record; @@ -39,6 +39,10 @@ export enum ChainId { // XDC Network XDC = 50, APOTHEM = 51, + + //Hedera Network + HederaMainnet = 295, + HederaTestnet = 296, } export const ChainInfo: ChainInfo = { @@ -129,4 +133,32 @@ export const ChainInfo: ChainInfo = { decimals: 18, }, }, + [ChainId.HederaMainnet]: { + label: "Hedera Mainnet", + chainId: ChainId.HederaMainnet, + iconImage: "/static/images/networks/hedera.png", + networkName: "hederamainnet", + networkLabel: "Hedera Mainnet", + explorerUrl: "https://hashscan.io/mainnet", + rpcUrl: "https://mainnet.hashio.io/api", + nativeCurrency: { + name: "HBAR", + symbol: "HBAR", + decimals: 18, + }, + }, + [ChainId.HederaTestnet]: { + label: "Hedera Testnet", + chainId: ChainId.HederaTestnet, + iconImage: "/static/images/networks/hedera.png", + networkName: "hederatestnet", + networkLabel: "Hedera Testnet", + explorerUrl: "https://hashscan.io/testnet", + rpcUrl: "https://testnet.hashio.io/api", + nativeCurrency: { + name: "HBAR", + symbol: "HBAR", + decimals: 18, + }, + }, };