From 5cd0306266fa282084e9fa2e610fa5e182d9b3f3 Mon Sep 17 00:00:00 2001 From: piruthivi2 Date: Mon, 4 Dec 2023 15:02:10 +0530 Subject: [PATCH 1/2] feat(hedera): added support for hedera network added mainnet and testnet hedera network configurations. --- public/static/images/networks/Hedera.png | Bin 0 -> 1684 bytes src/config/chain-config.ts | 3 +- src/constants/chain-info.ts | 34 ++++++++++++++++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 public/static/images/networks/Hedera.png diff --git a/public/static/images/networks/Hedera.png b/public/static/images/networks/Hedera.png new file mode 100644 index 0000000000000000000000000000000000000000..1ed643c7fca6929cd139b349b3d55104232e6864 GIT binary patch literal 1684 zcmV;F25b3=P)guGVrLC>5+1c4#U0zU8Q$3~n{&sr+00rPlL_t(&fyGgi0)w(7U$2O$nU)@LoCh(d7`T@Rpk^_K0tel!6 z@s(ETp!tv^1P#TI zeuZ8UJikGG=OQHtvGos)`N*C3^}1>00{783@G8a?Cej3QwV` z5rbnARWej`?>-DT>V&0g9C7U_!rq;(&bTm*Dw#91jpjn1*jN#qoJTP(y|CguyLA5! z?^M0ux5k%L{t$QH@&UgS)e(8%u>_1&@$JdkZ8F7TF;>KhS~Um_!{$V198Ao+2D^e; z1y32)K5CLx&+V?ekIrnj*kG4wmiXN_R(mwkua5OB_CXQjVg*9DM~ZJT3Tq{`JY8GZ zCet`krtwB#IlGeYK5!4ShF~oktI(Yp?UCvmXUf^kz`m1j${Wj-m_cc5)ex-3e2C>Y zMLn;ZsAn?-yYg#Qx@G;C$ygPjOu`0DDYLvymvxweUD1S{x-N}Es@1RoJD4_~2VkQe zm2&kXT-$AjQo>??Ge9Zshh^d6lVzObA3d;D8DW6d{jedGGE{3LbswAPWVfGC4C{qm z?ODurxfnd$tPd-PR;5v)_`#D)tcOVOjk5So+pe3N;DK z>b48RvYq{Z33P4Dw- zv28V}y_S}tj_6;C2uqhtJo@<3Z_B0&M6Bw_q`YuBY|-N1ffxV&tJJwsiBaff5?An!=IDYE53VVX}nd@xQ zAGS$Hi~9Y+OcFDXAC-pnFPocJr}<>qGgkUVEQc=aLqk6Hqx zNi`$FJL`V?MFWI>w{t_L+dZT9rCaIODT&|VJY~zwgIO;&- zlB^B8Uob;7sZGmRQ<^`mDXn^eW+z1*dbcBh%;scf{)!uZzNMx#0=6T6YRjl#~1M&bK(!?<+XqI<6^ zghASB1xNGp6jc-We)Cl5*$OrVG+VLXtR{1_1;=gye_Gz5h~n!r2&#_v=QWPOj>$w<(CHf8>)R>qOIKbN2d0uuC0V!U ewR6R6GM9g-M`l27m?2pJ0000; @@ -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, + }, + }, }; From e5a179ffd18f575b3ebda78d52607d8271dacb5a Mon Sep 17 00:00:00 2001 From: piruthivi2 Date: Tue, 12 Dec 2023 11:19:41 +0530 Subject: [PATCH 2/2] feat(hedera): added support for hedera network added mainnet and testnet hedera network configurations. --- src/constants/chain-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/chain-info.ts b/src/constants/chain-info.ts index a57d7c20b..7e363f0ee 100644 --- a/src/constants/chain-info.ts +++ b/src/constants/chain-info.ts @@ -39,7 +39,7 @@ export enum ChainId { // XDC Network XDC = 50, APOTHEM = 51, - + //Hedera Network HederaMainnet = 295, HederaTestnet = 296,