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 4a6aa7005..3403eedfa 100644 --- a/src/config/chain-config.ts +++ b/src/config/chain-config.ts @@ -7,9 +7,16 @@ 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, ChainId.StabilityTestnet]; +export const TEST_NETWORKS = [ + ChainId.Sepolia, + ChainId.PolygonMumbai, + ChainId.APOTHEM, + ChainId.StabilityTestnet, + ChainId.HederaTestnet, +]; diff --git a/src/constants/chain-info.ts b/src/constants/chain-info.ts index 9a3ff02e6..59bef869d 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; @@ -42,6 +42,10 @@ export enum ChainId { // Stability StabilityTestnet = 20180427, + + //Hedera Network + HederaMainnet = 295, + HederaTestnet = 296, } export const ChainInfo: ChainInfo = { @@ -146,4 +150,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, + }, + }, };